Commit 438669dd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: add helper to invoke CMake

parent 47f1b032
......@@ -181,6 +181,9 @@ UNPACK_DIR = $(basename $(basename $(notdir $<)))
APPLY = (cd $(UNPACK_DIR) && patch -p1) <
MOVE = mv $(UNPACK_DIR) $@ && touch $@
CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
-DCMAKE_INSTALL_PREFIX=$(PREFIX)
#
# Per-package build rules
#
......
......@@ -38,10 +38,8 @@ endif
touch $@
.mpcdec: musepack toolchain.cmake
cd $< && cmake . \
-DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake \
-DCMAKE_INSTALL_PREFIX="$(PREFIX)"
cd $< && make
cd $< && $(CMAKE) .
cd $< && $(MAKE)
mkdir -p -- "$(PREFIX)/lib"
ifdef HAVE_WIN32
cd $< && cp libmpcdec/libmpcdec_static.a "$(PREFIX)/lib/libmpcdec.a"
......
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