Commit 6ae95f45 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: build and install mpcdec statically on all platforms

parent 0bade2cd
......@@ -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 $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment