]> git.sesse.net Git - vlc/commitdiff
Contribs: add GME target and patch it for static
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 1 Nov 2010 13:50:35 +0000 (14:50 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 1 Nov 2010 13:51:55 +0000 (14:51 +0100)
extras/contrib/src/Patches/gme-static.patch [new file with mode: 0644]
extras/contrib/src/contrib-src.mak
extras/contrib/src/packages.mak

diff --git a/extras/contrib/src/Patches/gme-static.patch b/extras/contrib/src/Patches/gme-static.patch
new file mode 100644 (file)
index 0000000..38562a0
--- /dev/null
@@ -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)
index 82abe1980d28c8484a87927dc988ea3fefe31476..50b21b0653a338bd4389878f38835b07cd013f85 100644 (file)
@@ -2576,6 +2576,24 @@ CLEAN_FILE += .sqlite3
 CLEAN_PKG += sqlite-$(SQLITE_VERSION)
 DISTCLEAN_PKG += sqlite-amalgamation-$(SQLITE_VERSION).tar.gz
 
+# *****************************
+# GME
+# *****************************
+game-music-emu-$(GME_VERSION).tbz2:
+       $(WGET) $(GME_URL)
+
+game-music-emu-$(GME_VERSION): game-music-emu-$(GME_VERSION).tbz2
+       $(EXTRACT_BZ2)
+       patch -p0 < Patches/gme-static.patch
+
+.gme: game-music-emu-$(GME_VERSION)
+       (cd $<; $(HOSTCC) CPPFLAGS="$(CPPFLAGS)" cmake . -DCMAKE_TOOLCHAIN_FILE=../../toolchain.cmake -DCMAKE_INSTALL_PREFIX=$(PREFIX) && make && make install )
+       touch $@
+
+CLEAN_FILE += .gme
+CLEAN_PKG  += game-music-emu-$(GME_VERSION)
+DISTCLEAN_PKG += game-music-emu-$(GME_VERSION).tbz2
+
 # ***************************************************************************
 # Make sure the build tools are built before the other targets
 # ***************************************************************************
index 8d308e2a7a696ea8322777980764a3e8a742f71d..81ba4cccff1565d6524d05029e2db1b952f64994 100644 (file)
@@ -235,5 +235,7 @@ SQLITE_VERSION=3.6.20
 SQLITE_URL=http://www.sqlite.org/sqlite-amalgamation-$(SQLITE_VERSION).tar.gz
 DXVA2_URL=$(CONTRIB_VIDEOLAN)/dxva2api.h
 D2D_URL=http://nodeload.github.com/2of1/d2d1headers/tarball/master
-VPX_VERSION=0.9.0
+VPX_VERSION=0.9.2
 VPX_URL=http://webm.googlecode.com/files/libvpx-$(VPX_VERSION).tar.bz2
+GME_VERSION=0.5.5
+GME_URL=http://game-music-emu.googlecode.com/files/game-music-emu-$(GME_VERSION).tbz2