[vlc-commits] contrib: build and install mpcdec statically on all platforms

Rémi Denis-Courmont git at videolan.org
Mon Jul 4 22:12:11 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul  4 23:09:40 2011 +0300| [6ae95f45d264c0b0a6fe81eb1b11aa61c72f1684] | committer: Rémi Denis-Courmont

contrib: build and install mpcdec statically on all platforms

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ae95f45d264c0b0a6fe81eb1b11aa61c72f1684
---

 contrib/src/mpcdec/rules.mak |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/contrib/src/mpcdec/rules.mak b/contrib/src/mpcdec/rules.mak
index afe01bf..8c87df0 100644
--- a/contrib/src/mpcdec/rules.mak
+++ b/contrib/src/mpcdec/rules.mak
@@ -38,15 +38,8 @@ endif
 	touch $@
 
 .mpcdec: musepack toolchain.cmake
-	cd $< && $(CMAKE) .
-	cd $< && $(MAKE)
+	cd $< && $(CMAKE) -DSHARED=OFF .
+	cd $< && $(MAKE) install
 	mkdir -p -- "$(PREFIX)/lib"
-ifdef HAVE_WIN32
 	cd $< && cp libmpcdec/libmpcdec_static.a "$(PREFIX)/lib/libmpcdec.a"
-endif
-ifdef HAVE_MACOSX
-	cd $< && cp libmpcdec/libmpcdec.dylib "$(PREFIX)/lib/libmpcdec.dylib"
-	install_name_tool -id "$(PREFIX)/lib/libmpcdec.dylib" \
-		"$(PREFIX)/lib/libmpcdec.dylib"
-endif
 	touch $@



More information about the vlc-commits mailing list