summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2005-05-16 14:11:39 +0000
committerdanfe <danfe@FreeBSD.org>2005-05-16 14:11:39 +0000
commitda3917456e78520bca54b85c8a4619ab5f8c8079 (patch)
tree92ec0e1c13d9539e6a20f73b101c1e9cf80db3fd /devel
parent5ca342dd09008755d8096ce607984db0719be1da (diff)
downloadFreeBSD-ports-da3917456e78520bca54b85c8a4619ab5f8c8079.zip
FreeBSD-ports-da3917456e78520bca54b85c8a4619ab5f8c8079.tar.gz
- Adjust Makefile header slightly
- Mute in-place patching and unmute script install - Do not pass CFLAGS twice in !OPTIMIZED_CFLAGS case - Utilize OPTIONS
Diffstat (limited to 'devel')
-rw-r--r--devel/pth/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/devel/pth/Makefile b/devel/pth/Makefile
index 2990ac0..ecd1fe6 100644
--- a/devel/pth/Makefile
+++ b/devel/pth/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: pth
-# Date Created: 23 May 1999
-# Whom: Ralf S. Engelschall
+# New ports collection makefile for: GNU Pth
+# Date Created: 23 May 1999
+# Whom: Ralf S. Engelschall <rse@gnu.org>
#
# $FreeBSD$
#
@@ -29,10 +29,14 @@ USE_REINPLACE= yes
MAN1= pth-config.1 pthread-config.1
MAN3= pth.3 pthread.3
+OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" on
+
+.include <bsd.port.pre.mk>
+
post-patch:
-.if !defined(WITH_OPTIMIZED_CFLAGS) || defined(WITHOUT_OPTIMIZED_CFLAGS)
- ${REINPLACE_CMD} -e \
- 's|-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math|${CFLAGS}|' \
+.if defined(WITHOUT_OPTIMIZED_CFLAGS)
+ @${REINPLACE_CMD} -e \
+ 's|-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math||' \
${WRKSRC}/configure
.endif
@@ -40,9 +44,9 @@ post-build:
@${ECHO_MSG} "===> Use 'make test' to run a quick test suite."
post-install:
- @${INSTALL_SCRIPT} ${FILESDIR}/pth.sh ${PREFIX}/etc/rc.d/000.pth.sh
+ ${INSTALL_SCRIPT} ${FILESDIR}/pth.sh ${PREFIX}/etc/rc.d/000.pth.sh
test:
@cd ${WRKSRC} && ${MAKE} test
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud