xz: update to 5.6.2.
[void-pkg.git] / common / build-style / scons.sh
blobf87c0dcc5304cf0f746743aad5050c6d682f9a48
2 # This helper is for templates using scons.
4 do_build() {
5 : ${make_cmd:=scons}
7 ${make_cmd} ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
8 cc=$CC cxx=$CXX ccflags="$CFLAGS" \
9 CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS" \
10 cxxflags="$CXXFLAGS" linkflags="$LDFLAGS" \
11 RANLIB="$RANLIB" ranlib="$RANLIB" \
12 prefix=/usr \
13 ${scons_use_destdir:+DESTDIR="${DESTDIR}"} \
14 ${scons_use_destdir:+destdir="${DESTDIR}"} \
15 ${make_build_args} ${make_build_target}
17 do_install() {
18 : ${make_cmd:=scons}
19 : ${make_install_target:=install}
21 local _sandbox=
23 if [ -z "$scons_use_destdir" ]; then _sandbox=yes ; fi
25 ${make_cmd} ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
26 cc=$CC cxx=$CXX ccflags="$CFLAGS" \
27 CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS" \
28 cxxflags="$CXXFLAGS" linkflags="$LDFLAGS" \
29 RANLIB="$RANLIB" ranlib="$RANLIB" \
30 prefix=/usr \
31 ${scons_use_destdir:+DESTDIR="${DESTDIR}"} \
32 ${scons_use_destdir:+destdir="${DESTDIR}"} \
33 ${_sandbox:+--install-sandbox="${DESTDIR}"} \
34 ${make_install_args} ${make_install_target}