summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-01-25 10:31:24 +0000
committerjperkin <jperkin@pkgsrc.org>2018-01-25 10:31:24 +0000
commit775f36b80b1763f024b294182bc4231f5b1e641e (patch)
tree29762d422a3adbcbd5fa0926ab654908e1634dc0 /print
parent3bb6f857211a6e07a761f29779be138c16bc5896 (diff)
downloadpkgsrc-775f36b80b1763f024b294182bc4231f5b1e641e.tar.gz
ghostscript-agpl: Add _XOPEN_SOURCE workaround.
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-agpl/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/print/ghostscript-agpl/Makefile b/print/ghostscript-agpl/Makefile
index 2c906de217a..8ccd47b755f 100644
--- a/print/ghostscript-agpl/Makefile
+++ b/print/ghostscript-agpl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2017/11/12 16:03:35 khorben Exp $
+# $NetBSD: Makefile,v 1.29 2018/01/25 10:31:24 jperkin Exp $
DISTNAME= ghostscript-${GS_VERSION}
PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/}
@@ -62,6 +62,11 @@ SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g"
CFLAGS+= -fPIC
.endif
+# Not ideal but too many files hardcode _XOPEN_SOURCE=500.
+.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
+CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
+.endif
+
# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't
# require linking against libiconv when it should do so.
BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv