xbps-src: new "scons" build-style.

This commit is contained in:
Juan RP 2015-09-05 10:22:41 +02:00
parent e726c6fab8
commit f362068f7c
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#
# This helper is for templates using Qt4/Qt5 qmake.
#
do_build() {
: ${make_cmd:=scons}
${make_cmd} ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS" \
prefix=/usr DESTDIR=${DESTDIR} \
${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=scons}
: ${make_install_target:=install}
${make_cmd} ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS" \
prefix=/usr DESTDIR=${DESTDIR} \
${make_install_args} ${make_install_target}
}