summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-09-10 10:54:49 +0000
committerjperkin <jperkin@pkgsrc.org>2014-09-10 10:54:49 +0000
commit73f11130e6df355c621313bc26e0c38fa9795a28 (patch)
tree2a5a00a35472d1a578e4eca766c4b5478f53fd34 /graphics
parent384cf05c3c1748b646ad9e70c57ebeaafc1975f0 (diff)
downloadpkgsrc-73f11130e6df355c621313bc26e0c38fa9795a28.tar.gz
Downgrade _XOPEN_SOURCE=600 back to 500 on SunOS, you can't mix and match
due to conflicting C99 requirements, and we don't need XPG6 for strdup(). Fixes build on SunOS.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/netpbm/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index 9ad1392f09c..8e8f88bad86 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.191 2014/09/08 21:55:04 wiz Exp $
+# $NetBSD: Makefile,v 1.192 2014/09/10 10:54:49 jperkin Exp $
DISTNAME= netpbm-10.67.05
CATEGORIES= graphics
@@ -60,6 +60,18 @@ SUBST_SED.rgb_txt+= -e 's,/usr/share/netpbm/rgb.txt,${PREFIX}/share/netpbm/rgb.t
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+= xopen
+SUBST_STAGE.xopen= pre-configure
+SUBST_FILES.xopen= converter/other/jpeg2000/jpeg2ktopam.c
+SUBST_FILES.xopen+= converter/other/jpeg2000/pamtojpeg2k.c
+SUBST_FILES.xopen+= buildtools/libopt.c
+SUBST_FILES.xopen+= lib/libppmcolor.c lib/libpamcolor.c lib/libpm.c
+SUBST_FILES.xopen+= lib/pmfileio.c lib/libpam.c lib/colorname.c
+SUBST_SED.xopen= -e '/define.*_XOPEN_SOURCE/s/600/500/g'
+.endif
+
+
# only used if NEED_RUNTIME_PATH is set, so set it unconditionally
MAKE_FLAGS+= NETPBMLIB_RUNTIME_PATH=${PREFIX}