pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/print/ghostscript-agpl



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Jan 25 10:31:24 UTC 2018

Modified Files:
        pkgsrc/print/ghostscript-agpl: Makefile

Log Message:
ghostscript-agpl: Add _XOPEN_SOURCE workaround.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/print/ghostscript-agpl/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/ghostscript-agpl/Makefile
diff -u pkgsrc/print/ghostscript-agpl/Makefile:1.28 pkgsrc/print/ghostscript-agpl/Makefile:1.29
--- pkgsrc/print/ghostscript-agpl/Makefile:1.28 Sun Nov 12 16:03:35 2017
+++ pkgsrc/print/ghostscript-agpl/Makefile      Thu Jan 25 10:31:24 2018
@@ -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_
 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



Home | Main Index | Thread Index | Old Index