diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-05-24 16:10:24 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-05-24 16:10:24 +0000 |
commit | c01877c3f68d26a7e88104711eb7526245cf48ec (patch) | |
tree | 681d0b84d2220b8c94cfa3a736dedff06cf33c4b /graphics/netpbm | |
parent | 8818dae6e5281137d781d308fb41164793e78d14 (diff) | |
download | pkgsrc-c01877c3f68d26a7e88104711eb7526245cf48ec.tar.gz |
Add workarounds for SunOS GCC 7.1 build.
Diffstat (limited to 'graphics/netpbm')
-rw-r--r-- | graphics/netpbm/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index a66dee6aa82..edb20aed11d 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.211 2017/02/23 23:13:42 wiz Exp $ +# $NetBSD: Makefile,v 1.212 2017/05/24 16:10:24 jperkin Exp $ DISTNAME= netpbm-10.77.02 CATEGORIES= graphics @@ -66,6 +66,21 @@ MAKE_FLAGS.SunOS+= NETWORKLD="-lsocket -lnsl" MAKE_FLAGS+= NETWORKLD="-lsocket -lresolv" .endif +.include "../../mk/compiler.mk" + +# Ridiculous but they hardcode it in every file so we have no choice. +.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[7-9]*) +SUBST_CLASSES+= xopen +SUBST_STAGE.xopen= pre-configure +SUBST_FILES.xopen= *.c */*.c */*/*.c */*/*/*.c */*/*/*/*.c */*/*/*/*/*.c +SUBST_FILES.xopen+= lib/util/lexheader +SUBST_SED.xopen= -e '/_XOPEN_SOURCE/s/500/600/' +SUBST_SED.xopen+= -e '/_XOPEN_SOURCE/s/1$$/600/' +SUBST_SED.xopen+= -e '/_XOPEN_SOURCE[^0-9]*\//s/SOURCE/SOURCE 600/' +SUBST_SED.xopen+= -e '/_XOPEN_SOURCE$$/s/E$$/E 600/' +SUBST_SED.xopen+= -e '/_POSIX_SOURCE.*fdopen/s/_POSIX_SOURCE/_XOPEN_SOURCE 600/' +.endif + INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 ${PKGMANDIR}/man5 share/netpbm post-extract: |