aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cdrtools-devel
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-09-17 17:09:34 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-09-17 17:09:34 +0000
commit1a4a339547cc93409bd2e9db97a9a76fc51d037a (patch)
tree04f99acef5295abb7a6aeefe78e5faf5c6d85cbb /sysutils/cdrtools-devel
parent79c4fdadd91f5c811282e9a44e6dedb468f1cc3d (diff)
downloadports-1a4a339547cc93409bd2e9db97a9a76fc51d037a.tar.gz
ports-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
Notes
Notes: svn path=/head/; revision=261338
Diffstat (limited to 'sysutils/cdrtools-devel')
-rw-r--r--sysutils/cdrtools-devel/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysutils/cdrtools-devel/Makefile b/sysutils/cdrtools-devel/Makefile
index fce5406f8838..61ff3915f8fd 100644
--- a/sysutils/cdrtools-devel/Makefile
+++ b/sysutils/cdrtools-devel/Makefile
@@ -74,6 +74,11 @@ PLIST_SUB= RSCSI="@comment "
.endif
PKGNAMESUFFIX?= -devel
+# 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