| git.druid.rocks | index | druid520 | ports | classes/ | cmake.mp |
classes/cmake.mp
pkg_deps="cmake"
build:
mkdir -p mpbuild
cd mpbuild
cmake -DCMAKE_INSTALL_PREFIX=$MP_PREFIX -DCMAKE_INSTALL_LIBDIR=lib $CMAKE_FLAGS ..
make -j$MP_JOBS
install:
cd mpbuild
make install
remove:
# see classes/autotools.mp's own identical guard/comment -- here
# it's the "cd mpbuild" itself that would otherwise hard-fail with
# no checkout present at all.
cd mpbuild 2>/dev/null || exit 0
[ -f install_manifest.txt ] && xargs rm -f < install_manifest.txt