aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cdrtools
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-09-18 01:09:34 +0800
committerMarius Strobl <marius@FreeBSD.org>2010-09-18 01:09:34 +0800
commit1a4a339547cc93409bd2e9db97a9a76fc51d037a (patch)
tree04f99acef5295abb7a6aeefe78e5faf5c6d85cbb /sysutils/cdrtools
parent79c4fdadd91f5c811282e9a44e6dedb468f1cc3d (diff)
downloadfreebsd-ports-gnome-1a4a339547cc93409bd2e9db97a9a76fc51d037a.tar.gz
freebsd-ports-gnome-1a4a339547cc93409bd2e9db97a9a76fc51d037a.tar.zst
freebsd-ports-gnome-1a4a339547cc93409bd2e9db97a9a76fc51d037a.zip
Add a hack allowing to building with TARGET and TARGET_ARCH set in the
environment as done by the release building scripts. The former causes some targets in the Makefiles of the port to be overridden and the later is added to the default COMPILE.c variable by gmake. Arguably the release building scripts should be fixed to not set TARGET and TARGET_ARCH when compiling the cdrtools port in case of a cross-release but for reasons beyond me this just worked with cdrtools 2.01 Approved by: netchild
Diffstat (limited to 'sysutils/cdrtools')
-rw-r--r--sysutils/cdrtools/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile
index 49f605446979..1d8bc9690f72 100644
--- a/sysutils/cdrtools/Makefile
+++ b/sysutils/cdrtools/Makefile
@@ -69,6 +69,11 @@ PKGNAMESUFFIX= -rscsi
PLIST_SUB= RSCSI="@comment "
.endif
+# Hack to allow building with TARGET and TARGET_ARCH set in the environment
+# as done by the release building scripts.
+MAKE_ARGS= -R
+SETENV= /usr/bin/env -i -P ${PATH}
+
MAKE_ENV= CCOM=cc GMAKE_NOWARN=true INS_BASE=${LOCALBASE} \
INS_RBASE=${LOCALBASE}
CDRTLSTARGET= ${ARCH}-freebsd-cc