aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-05-27 20:13:05 +0800
committerbapt <bapt@FreeBSD.org>2014-05-27 20:13:05 +0800
commitb2071e41d3e59c759baf608d46ac28d3a8f7dafb (patch)
tree1cfdd33c45110f8837c985bfd7985bf22f7b0a9c /Mk
parent6348c6dface36f083c461907de5d11440f9e730b (diff)
downloadfreebsd-ports-gnome-b2071e41d3e59c759baf608d46ac28d3a8f7dafb.tar.gz
freebsd-ports-gnome-b2071e41d3e59c759baf608d46ac28d3a8f7dafb.tar.zst
freebsd-ports-gnome-b2071e41d3e59c759baf608d46ac28d3a8f7dafb.zip
scons expect lots of variables to be set as arguments
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/scons.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mk/Uses/scons.mk b/Mk/Uses/scons.mk
index a2621391c6fe..7282b8492ab9 100644
--- a/Mk/Uses/scons.mk
+++ b/Mk/Uses/scons.mk
@@ -22,9 +22,11 @@ CPPPATH?= ${LOCALBASE}/include
SCONS= ${LOCALBASE}/bin/scons
BUILD_DEPENDS+= ${SCONS}:${PORTSDIR}/devel/scons
MAKE_CMD?= ${SCONS}
-MAKE_ENV+= PKGCONFIGDIR="${PKGCONFIGDIR}" \
- CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" \
- LIBPATH="${LIBPATH}" CPPPATH="${CPPPATH}"
+MAKE_ARGS+= CCFLAGS="${CCFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ LINKFLAGS="${LINKFLAGS}" PKGCONFIGDIR="${PKGCONFIGDIR}" \
+ CPPPATH="${CPPPATH}" LIBPATH="${LIBPATH}" PREFIX="${PREFIX}" \
+ CC="${CC}" CXX="${CXX}"
+
.if !defined(NO_STAGE)
MAKE_ARGS+= ${DESTDIRNAME:tl}=${STAGEDIR}
.endif