From e78a61c186641a2be339f9b85994f59cb164362c Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 4 Jul 2011 23:16:29 +0300 Subject: [PATCH] contrib: add gme --- contrib/src/gme/SHA512SUMS | 1 + contrib/src/gme/gme-static.patch | 19 +++++++++++++++++++ contrib/src/gme/rules.mak | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 contrib/src/gme/SHA512SUMS create mode 100644 contrib/src/gme/gme-static.patch create mode 100644 contrib/src/gme/rules.mak diff --git a/contrib/src/gme/SHA512SUMS b/contrib/src/gme/SHA512SUMS new file mode 100644 index 0000000000..041f6b8f3f --- /dev/null +++ b/contrib/src/gme/SHA512SUMS @@ -0,0 +1 @@ +dcf341bf0ab8237a98bceef3b0bc8e8bd11851179f989c561878ff421912158bfdbae4bf613ecc9f6a569b02dce4fbd41acf68a3c9c5ea137938bd5cdc353ff4 game-music-emu-0.5.5.tar.bz2 diff --git a/contrib/src/gme/gme-static.patch b/contrib/src/gme/gme-static.patch new file mode 100644 index 0000000000..38562a0e8f --- /dev/null +++ b/contrib/src/gme/gme-static.patch @@ -0,0 +1,19 @@ +--- game-music-emu-0.5.5/gme/CMakeLists.txt 2009-07-13 06:53:08.000000000 +0200 ++++ game-music-emu-0.5.5.new/gme/CMakeLists.txt 2010-11-01 14:39:13.570651361 +0100 +@@ -148,7 +148,7 @@ + include_directories(${CMAKE_CURRENT_BINARY_DIR}) + + # Add library to be compiled. +-add_library(gme SHARED ${libgme_SRCS}) ++add_library(gme STATIC ${libgme_SRCS}) + + # The version is the release. The "soversion" is the API version. As long + # as only build fixes are performed (i.e. no changes/additions to API) the +@@ -158,6 +158,6 @@ + SOVERSION 0) + + # TODO: Libsuffix for 64-bit? +-install(TARGETS gme LIBRARY DESTINATION lib) ++install(TARGETS gme ARCHIVE DESTINATION lib) + + install(FILES ${EXPORTED_HEADERS} DESTINATION include/gme) diff --git a/contrib/src/gme/rules.mak b/contrib/src/gme/rules.mak new file mode 100644 index 0000000000..9018629e64 --- /dev/null +++ b/contrib/src/gme/rules.mak @@ -0,0 +1,19 @@ +# Game Music Emu + +GME_VERSION := 0.5.5 +GME_URL := http://game-music-emu.googlecode.com/files/game-music-emu-$(GME_VERSION).tbz2 + +$(TARBALLS)/game-music-emu-$(GME_VERSION).tar.bz2: + $(call download,$(GME_URL)) + +.sum-gme: game-music-emu-$(GME_VERSION).tar.bz2 + +game-music-emu: game-music-emu-$(GME_VERSION).tar.bz2 .sum-gme + $(UNPACK) + $(APPLY) $(SRC)/gme/gme-static.patch + $(MOVE) + +.gme: game-music-emu toolchain.cmake + cd $< && $(CMAKE) . + cd $< && $(MAKE) install + touch $@ -- 2.39.2