From 676d53c18a800c1070754ab65bfb5dd5b3e19973 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Oct 2011 14:32:32 +0200 Subject: [PATCH] xbps-src: added a waf build helper. --- xbps-src/helpers/waf.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 xbps-src/helpers/waf.sh diff --git a/xbps-src/helpers/waf.sh b/xbps-src/helpers/waf.sh new file mode 100644 index 0000000000..dbf72314c8 --- /dev/null +++ b/xbps-src/helpers/waf.sh @@ -0,0 +1,26 @@ +# +# This helper is for templates using WAF to build/install. +# +do_configure() { + if [ -z "$configure_script" ]; then + configure_script="./waf" + fi + ${configure_script} configure --prefix=/usr ${configure_args} +} + +do_build() { + if [ -z "$make_cmd" ]; then + make_cmd="./waf" + fi + ${make_cmd} build ${make_build_args} +} + +do_install() { + if [ -z "$make_cmd" ]; then + make_cmd="./waf" + fi + if [ -z "$make_install_args" ]; then + make_install_args="--destdir=$DESTDIR" + fi + ${make_cmd} install ${make_install_args} +}