xbps-src: added a cmake build helper.

This commit is contained in:
Juan RP 2011-10-24 15:08:06 +02:00
parent 329fdbfe6a
commit 277300c11a
1 changed files with 11 additions and 0 deletions

11
xbps-src/helpers/cmake.sh Normal file
View File

@ -0,0 +1,11 @@
#
# This helper is for templates using cmake.
#
do_configure() {
[ -z "$configure_script" ] && configure_script=cmake
${configure_script} -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ${configure_args}
}
# cmake scripts use make(1) to build/install.
. $XBPS_HELPERSDIR/gnu-makefile.sh