[vlc-commits] contrib: add gme
Rémi Denis-Courmont
git at videolan.org
Mon Jul 4 22:16:49 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 4 23:16:29 2011 +0300| [e78a61c186641a2be339f9b85994f59cb164362c] | committer: Rémi Denis-Courmont
contrib: add gme
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e78a61c186641a2be339f9b85994f59cb164362c
---
contrib/src/gme/SHA512SUMS | 1 +
contrib/src/gme/gme-static.patch | 19 +++++++++++++++++++
contrib/src/gme/rules.mak | 19 +++++++++++++++++++
3 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/contrib/src/gme/SHA512SUMS b/contrib/src/gme/SHA512SUMS
new file mode 100644
index 0000000..041f6b8
--- /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 0000000..38562a0
--- /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 0000000..9018629
--- /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 $@
More information about the vlc-commits
mailing list