qt: playlist: use item title if available
[vlc.git] / contrib / src / mpcdec / rules.mak
blob32ee57d5affdb8ad4f51e47cdeeb6d4de0b71b6d
1 # Musepack decoder
3 PKGS += mpcdec
5 #MUSE_VERSION := 1.2.6
6 #MUSE_URL := http://files.musepack.net/source/libmpcdec-$(MUSE_VERSION).tar.bz2
7 #MUSE_URL := http://files2.musepack.net/source/libmpcdec-$(MUSE_VERSION).tar.bz2
9 MUSE_REV := 481
10 MUSE_URL := $(CONTRIB_VIDEOLAN)/mpcdec/musepack_src_r$(MUSE_REV).tar.gz
12 $(TARBALLS)/musepack_src_r$(MUSE_REV).tar.gz:
13 $(call download_pkg,$(MUSE_URL),mpcdec)
15 #MUSE_REV := 481
16 #MUSE_SVN := http://svn.musepack.net/libmpc/trunk/
18 #$(TARBALLS)/musepack_src_r$(MUSE_REV).tar.gz:
19 # rm -Rf musepack_src_r$(MUSE_REV)
20 # $(SVN) export $(MUSE_SVN) -r $(MUSE_REV) musepack_src_r$(MUSE_REV)
21 # tar czv musepack_src_r$(MUSE_REV) > $@
23 .sum-mpcdec: musepack_src_r$(MUSE_REV).tar.gz
24 # $(warning $@ not implemented)
25 # touch $@
27 musepack: musepack_src_r$(MUSE_REV).tar.gz .sum-mpcdec
28 $(UNPACK)
29 $(APPLY) $(SRC)/mpcdec/musepack-no-cflags-clobber.patch
30 $(APPLY) $(SRC)/mpcdec/musepack-no-binaries.patch
31 ifdef HAVE_VISUALSTUDIO
32 $(APPLY) $(SRC)/mpcdec/musepack-asinh-msvc.patch
33 endif
34 sed -i.orig \
35 -e 's,^add_subdirectory(mpcgain),,g' \
36 -e 's,^add_subdirectory(mpcchap),,g' \
37 $(UNPACK_DIR)/CMakeLists.txt
38 ifdef HAVE_MACOSX
39 cd $(UNPACK_DIR) && \
40 sed -e 's%-O3 -Wall%-O3 -Wall $(CFLAGS)%' CMakeLists.txt
41 endif
42 $(MOVE)
44 .mpcdec: musepack toolchain.cmake
45 cd $< && $(HOSTVARS_PIC) $(CMAKE) -DSHARED=OFF .
46 cd $< && $(CMAKEBUILD) . --target install
47 mkdir -p -- "$(PREFIX)/lib"
48 # Use globbing to work around cmake's change of destination file
49 cd $< && cp libmpcdec/*mpcdec_static.* "$(PREFIX)/lib/libmpcdec.a"
50 touch $@