summaryrefslogtreecommitdiff
path: root/graphics/netpbm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/Makefile')
-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}