Fri Apr 26 15:19:18 2019 UTC ()
ghostscript-agpl: Require freetype2>=2.10.0

The latest version of ghostscript-agpl calls functions that were
introduced in freetype2 version 2.10.0, and the build fails when
building against an earlier version.


(gavan)
diff -r1.41 -r1.42 pkgsrc/print/ghostscript-agpl/Makefile

cvs diff -r1.41 -r1.42 pkgsrc/print/ghostscript-agpl/Makefile (expand / switch to unified diff)

--- pkgsrc/print/ghostscript-agpl/Makefile 2019/04/17 08:28:44 1.41
+++ pkgsrc/print/ghostscript-agpl/Makefile 2019/04/26 15:19:18 1.42
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.41 2019/04/17 08:28:44 adam Exp $ 1# $NetBSD: Makefile,v 1.42 2019/04/26 15:19:18 gavan Exp $
2 2
3DISTNAME= ghostscript-${GS_VERSION} 3DISTNAME= ghostscript-${GS_VERSION}
4PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} 4PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/}
5CATEGORIES= print 5CATEGORIES= print
6MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/}
7GITHUB_PROJECT= ghostpdl-downloads 7GITHUB_PROJECT= ghostpdl-downloads
8GITHUB_RELEASE= gs${GS_VERSION:S/.//} 8GITHUB_RELEASE= gs${GS_VERSION:S/.//}
9EXTRACT_SUFX= .tar.xz 9EXTRACT_SUFX= .tar.xz
10 10
11MAINTAINER= pkgsrc-users@NetBSD.org 11MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= https://ghostscript.com/ 12HOMEPAGE= https://ghostscript.com/
13COMMENT= Postscript interpreter 13COMMENT= Postscript interpreter
14 14
@@ -71,26 +71,28 @@ CFLAGS+= -fPIC @@ -71,26 +71,28 @@ CFLAGS+= -fPIC
71.endif 71.endif
72 72
73# Not ideal but too many files hardcode _XOPEN_SOURCE=500. 73# Not ideal but too many files hardcode _XOPEN_SOURCE=500.
74.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang) 74.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
75CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ 75CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
76.else 76.else
77CPPFLAGS.SunOS+= -D__C99FEATURES__ 77CPPFLAGS.SunOS+= -D__C99FEATURES__
78.endif 78.endif
79 79
80# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't 80# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't
81# require linking against libiconv when it should do so. 81# require linking against libiconv when it should do so.
82BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv 82BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv
83 83
 84BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.10.0
 85
84.include "options.mk" 86.include "options.mk"
85 87
86post-extract: 88post-extract:
87 ${MKDIR} ${WRKSRC}/bin 89 ${MKDIR} ${WRKSRC}/bin
88 ${MKDIR} ${WRKSRC}/obj 90 ${MKDIR} ${WRKSRC}/obj
89 ${RM} -rf ${WRKSRC}/freetype 91 ${RM} -rf ${WRKSRC}/freetype
90 ${RM} -rf ${WRKSRC}/jbig2dec 92 ${RM} -rf ${WRKSRC}/jbig2dec
91 ${RM} -rf ${WRKSRC}/jpeg 93 ${RM} -rf ${WRKSRC}/jpeg
92 ${RM} -rf ${WRKSRC}/lcms2 94 ${RM} -rf ${WRKSRC}/lcms2
93 ${RM} -rf ${WRKSRC}/libpng 95 ${RM} -rf ${WRKSRC}/libpng
94 ${RM} -rf ${WRKSRC}/openjpeg 96 ${RM} -rf ${WRKSRC}/openjpeg
95 ${RM} -rf ${WRKSRC}/tiff 97 ${RM} -rf ${WRKSRC}/tiff
96 ${RM} -rf ${WRKSRC}/zlib 98 ${RM} -rf ${WRKSRC}/zlib