diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2005-05-16 14:11:39 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2005-05-16 14:11:39 +0000 |
commit | a3a6eafc2a28caecff8b71966c1fe8cd7613a827 (patch) | |
tree | e42bb885ef87d5348c71a6f0f1df72919ce8fcdb /devel/pth | |
parent | Update to version 2.0.4, the latest from GNU. (diff) |
- Adjust Makefile header slightly
- Mute in-place patching and unmute script install
- Do not pass CFLAGS twice in !OPTIMIZED_CFLAGS case
- Utilize OPTIONS
Notes
Notes:
svn path=/head/; revision=135365
Diffstat (limited to 'devel/pth')
-rw-r--r-- | devel/pth/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/devel/pth/Makefile b/devel/pth/Makefile index 2990ac0589e5..ecd1fe6bf4b8 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> |