aboutsummaryrefslogtreecommitdiffstats
path: root/news/husky-base
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-01-23 02:44:01 +0800
committerfjoe <fjoe@FreeBSD.org>2003-01-23 02:44:01 +0800
commit978efdb7b9d5cf0c3efe10b2a3006658609f101c (patch)
treee10a3cdda0391f019642dc13cf01be7b7f725dec /news/husky-base
parentf369206aa2f7416a44d1d5d6b0ee93ba95e9b00d (diff)
downloadfreebsd-ports-graphics-978efdb7b9d5cf0c3efe10b2a3006658609f101c.tar.gz
freebsd-ports-graphics-978efdb7b9d5cf0c3efe10b2a3006658609f101c.tar.zst
freebsd-ports-graphics-978efdb7b9d5cf0c3efe10b2a3006658609f101c.zip
- build (hpt) with perl support by default
(-DWITHOUT_PERL knob can be used to turn it off) - use current ${CC}, ${CXX}, ${CFLAGS}, ${PREFIX} values (not values which were in effect when husky-base port was built)
Diffstat (limited to 'news/husky-base')
-rw-r--r--news/husky-base/Makefile12
-rw-r--r--news/husky-base/Makefile.inc11
2 files changed, 14 insertions, 9 deletions
diff --git a/news/husky-base/Makefile b/news/husky-base/Makefile
index 11d74e0cc13..6069718c1c7 100644
--- a/news/husky-base/Makefile
+++ b/news/husky-base/Makefile
@@ -19,15 +19,9 @@ USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} \
- -e 's^/usr/local^${PREFIX}^' \
- -e 's^CFGDIR=/etc/fido^CFGDIR=${PREFIX}/etc/fido^' \
- -e 's^# INFODIR=/usr/local/info^INFODIR=${PREFIX}/info^' \
- -e 's^#HTMLDIR=$$(PREFIX)/lib/husky^HTMLDIR=${PREFIX}/share/doc/husky^' \
- -e 's^$$(CFGDIR)/msged.cfg^~/.msged^' \
- -e 's^CC=gcc^CC=${CC}^' \
- -e 's^CXX=g++^CXX=${CXX}^' \
- -e 's^MKSHARED=gcc^MKSHARED=${CC}^' \
- -e 's^OPTCFLAGS=^OPTCFLAGS=-c ${CFLAGS}^' \
+ -e 's^CFGDIR=/etc/fido^CFGDIR=$$(PREFIX)/etc/fido^' \
+ -e 's^# INFODIR=/usr/local^INFODIR=$$(PREFIX)^' \
+ -e 's^#HTMLDIR=$$(PREFIX)/lib/husky^HTMLDIR=$$(PREFIX)/share/doc/husky^' \
${WRKSRC}/huskymak.cfg
pre-install:
diff --git a/news/husky-base/Makefile.inc b/news/husky-base/Makefile.inc
index 867a175a225..d42808f66fb 100644
--- a/news/husky-base/Makefile.inc
+++ b/news/husky-base/Makefile.inc
@@ -15,6 +15,17 @@ BUILD_DEPENDS= ${LOCALBASE}/etc/fido/huskymak.cfg:${PORTSDIR}/news/husky-base
USE_GMAKE= yes
+MAKE_ARGS+= PREFIX="${PREFIX}" \
+ CC="${CC}" CXX="${CXX}" GPP="${CXX}" MKSHARED="${CC}" \
+ OPTCFLAGS="-c ${CFLAGS}" WARNFLAGS=""
+
+.if !defined(WITHOUT_PERL)
+MAKE_ARGS+= PERL=1
+USE_PERL5= yes
+.else
+MAKE_ARGS+= PERL=0
+.endif
+
pre-build:
@${LN} -sf ${LOCALBASE}/etc/fido/huskymak.cfg ${WRKDIR}
.endif