aboutsummaryrefslogtreecommitdiff
path: root/devel/libcwd/Makefile
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-14 02:57:57 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-14 02:57:57 +0000
commit6a05f086fc97997bd47677c1777d0e2e57c7e3a1 (patch)
tree9501b7c89eef3df6a21b14a2cace7b33b18130b1 /devel/libcwd/Makefile
parente780bcfc262c2c723911db92278068692382615c (diff)
downloadports-6a05f086fc97997bd47677c1777d0e2e57c7e3a1.tar.gz
ports-6a05f086fc97997bd47677c1777d0e2e57c7e3a1.zip
Work around bsd.port.mk bug: CC and CXX are not added to MAKE_ENV for
USE_GCC=3.2 and 3.3.
Notes
Notes: svn path=/head/; revision=103939
Diffstat (limited to 'devel/libcwd/Makefile')
-rw-r--r--devel/libcwd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/libcwd/Makefile b/devel/libcwd/Makefile
index 4f1a8b8b03eb..1d6eb25efe52 100644
--- a/devel/libcwd/Makefile
+++ b/devel/libcwd/Makefile
@@ -22,8 +22,15 @@ CONFIGURE_ARGS= --disable-threading
USE_GMAKE= yes
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 501103
+# Work around bsd.port.mk bug: Does not currently set up MAKE_ENV for gcc 3.2 and 3.3
+MAKE_ENV+= CC="${CC}" CXX="${CXX}"
+.endif
+
# dirty hack
post-configure:
@${CP} -f ${WRKSRC}/include/sys.ho ${WRKSRC}/include/sys.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>