aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-11-26 01:17:53 +0800
committernaddy <naddy@FreeBSD.org>2002-11-26 01:17:53 +0800
commit10172c3d6316b74a49957b692dc9f50cd0ea1387 (patch)
treeb9772074ef977acaa8a279e7b97f430e28082c2d
parentf34c3c9e7c755fafe55a8ac1a9320b5c54e1cd83 (diff)
downloadfreebsd-ports-gnome-10172c3d6316b74a49957b692dc9f50cd0ea1387.tar.gz
freebsd-ports-gnome-10172c3d6316b74a49957b692dc9f50cd0ea1387.tar.zst
freebsd-ports-gnome-10172c3d6316b74a49957b692dc9f50cd0ea1387.zip
Fix build on -CURRENT and honor CC.
Problem reported by: Gerrit Kuehn <gerrit@pmp.uni-hannover.de>
-rw-r--r--net/mars_nwe/Makefile4
-rw-r--r--net/mars_nwe/files/patch-ac16
2 files changed, 17 insertions, 3 deletions
diff --git a/net/mars_nwe/Makefile b/net/mars_nwe/Makefile
index 0aa8aed64c0c..2045611a7ad7 100644
--- a/net/mars_nwe/Makefile
+++ b/net/mars_nwe/Makefile
@@ -18,14 +18,12 @@ EXTRACT_SUFX= .tgz
MAINTAINER= bp@FreeBSD.org
WRKSRC= ${WRKDIR}/mars_nwe
+MAKE_ENV= CC="${CC}"
PLIST= ${WRKDIR}/PLIST.DYN
NDOCDIR= ${PREFIX}/share/doc/mars_nwe
-do-build:
- @(cd ${WRKSRC} && ${MAKE} all)
-
do-install:
@(cd ${WRKSRC} && ./mk.li install)
@${INSTALL_DATA} ${WRKSRC}/examples/nw.ini ${PREFIX}/etc/nwserv.conf.example
diff --git a/net/mars_nwe/files/patch-ac b/net/mars_nwe/files/patch-ac
new file mode 100644
index 000000000000..4bfe2cddc0e7
--- /dev/null
+++ b/net/mars_nwe/files/patch-ac
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- examples/mk.li.orig Sat Jan 15 12:11:20 2000
++++ examples/mk.li Mon Nov 25 15:12:38 2002
+@@ -97,8 +97,8 @@
+ freebsd)
+ V_VPATH=".."
+ OBJDIR="obj"
+- CC=gcc
+- CPP="gcc -E"
++ CC=${CC:-cc}
++ CPP="cpp -traditional"
+ if [ "x$CFLAGS" = "x" ]; then
+ CFLAGS="native"
+ fi