pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/netpbm
Module Name: pkgsrc
Committed By: jperkin
Date: Wed May 24 16:10:24 UTC 2017
Modified Files:
pkgsrc/graphics/netpbm: Makefile
Log Message:
Add workarounds for SunOS GCC 7.1 build.
To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 pkgsrc/graphics/netpbm/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/netpbm/Makefile
diff -u pkgsrc/graphics/netpbm/Makefile:1.211 pkgsrc/graphics/netpbm/Makefile:1.212
--- pkgsrc/graphics/netpbm/Makefile:1.211 Thu Feb 23 23:13:42 2017
+++ pkgsrc/graphics/netpbm/Makefile Wed May 24 16:10:24 2017
@@ -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 -
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:
Home |
Main Index |
Thread Index |
Old Index