diff options
author | abs <abs@pkgsrc.org> | 2003-12-10 18:22:45 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2003-12-10 18:22:45 +0000 |
commit | b5635054e8f9523efe690c543ac0dff3eea6f262 (patch) | |
tree | 48776788c50ce80eb79a6ff193fafd939f7e00ba /www | |
parent | 83373140a22ce379304919a138ae8dce8b62fc2e (diff) | |
download | pkgsrc-b5635054e8f9523efe690c543ac0dff3eea6f262.tar.gz |
Tweak (ugly) post-buildlink: hack to only occur if gcc3 is found. Tested on:
- i386 current (1.6ZE)
- i386 1.6.2_RC3
- i386 1.6.2_RC3 with USE_GCC3
Previous version was committed by accident
No change to generated package, only to if package could be generated at all,
so no PKGREVISION change.
Does not fix, but provides a workaround for PR pkg/23053 and PR pkg/23509
Diffstat (limited to 'www')
-rw-r--r-- | www/galeon/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/www/galeon/Makefile b/www/galeon/Makefile index f45b923f86b..d7fe6e5d1c0 100644 --- a/www/galeon/Makefile +++ b/www/galeon/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.55 2003/11/27 15:03:36 abs Exp $ +# $NetBSD: Makefile,v 1.56 2003/12/10 18:22:45 abs Exp $ DISTNAME= galeon-1.2.13 CATEGORIES= www @@ -53,8 +53,13 @@ LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} pre-install: ${GCONF_PREFIX}/bin/gconftool --shutdown +.if !empty(CC_VERSION:Mgcc-3*) +# Workaround for gcc3 build issue post-buildlink: - perl -pi -e 's:(exec \$$cmd):$$1 -lstdc++ -lm:' work/.buildlink/bin/cc + ${CP} work/.buildlink/bin/cc work/.buildlink/bin/cc.orig + ${SED} 's:\(exec \$$cmd\):\1 -lstdc++ -lm:' work/.buildlink/bin/cc.orig\ + > work/.buildlink/bin/cc +.endif post-install: ${SED} -e "s,@PREFIX@,${PREFIX},g" -e "s,@MOZILLA_PREFIX@,${MOZILLA_PREFIX},g" ${FILESDIR}/galeon.in > ${PREFIX}/bin/galeon |