From 277300c11aaac59add8f2bdbc36268f8a4fdc16f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Oct 2011 15:08:06 +0200 Subject: [PATCH] xbps-src: added a cmake build helper. --- xbps-src/helpers/cmake.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 xbps-src/helpers/cmake.sh diff --git a/xbps-src/helpers/cmake.sh b/xbps-src/helpers/cmake.sh new file mode 100644 index 00000000000..ac207c137b1 --- /dev/null +++ b/xbps-src/helpers/cmake.sh @@ -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