| @@ -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 | |
3 | DISTNAME= ghostscript-${GS_VERSION} | | 3 | DISTNAME= ghostscript-${GS_VERSION} |
4 | PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} | | 4 | PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} |
5 | CATEGORIES= print | | 5 | CATEGORIES= print |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/} |
7 | GITHUB_PROJECT= ghostpdl-downloads | | 7 | GITHUB_PROJECT= ghostpdl-downloads |
8 | GITHUB_RELEASE= gs${GS_VERSION:S/.//} | | 8 | GITHUB_RELEASE= gs${GS_VERSION:S/.//} |
9 | EXTRACT_SUFX= .tar.xz | | 9 | EXTRACT_SUFX= .tar.xz |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= https://ghostscript.com/ | | 12 | HOMEPAGE= https://ghostscript.com/ |
13 | COMMENT= Postscript interpreter | | 13 | COMMENT= 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) |
75 | CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ | | 75 | CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
76 | .else | | 76 | .else |
77 | CPPFLAGS.SunOS+= -D__C99FEATURES__ | | 77 | CPPFLAGS.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. |
82 | BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv | | 82 | BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv |
83 | | | 83 | |
| | | 84 | BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.10.0 |
| | | 85 | |
84 | .include "options.mk" | | 86 | .include "options.mk" |
85 | | | 87 | |
86 | post-extract: | | 88 | post-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 |