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
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
)
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)
27 musepack
: musepack_src_r
$(MUSE_REV
).
tar.gz .sum-mpcdec
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
35 -e
's,^add_subdirectory(mpcgain),,g' \
36 -e
's,^add_subdirectory(mpcchap),,g' \
37 $(UNPACK_DIR
)/CMakeLists.txt
40 sed
-e
's%-O3 -Wall%-O3 -Wall $(CFLAGS)%' CMakeLists.txt
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"