| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.42 2019/04/26 15:19:18 gavan Exp $ | | 1 | # $NetBSD: Makefile,v 1.43 2019/04/26 15:28:17 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,49 +71,48 @@ CFLAGS+= -fPIC | | | @@ -71,49 +71,48 @@ 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 | | | | |
86 | .include "options.mk" | | 84 | .include "options.mk" |
87 | | | 85 | |
88 | post-extract: | | 86 | post-extract: |
89 | ${MKDIR} ${WRKSRC}/bin | | 87 | ${MKDIR} ${WRKSRC}/bin |
90 | ${MKDIR} ${WRKSRC}/obj | | 88 | ${MKDIR} ${WRKSRC}/obj |
91 | ${RM} -rf ${WRKSRC}/freetype | | 89 | ${RM} -rf ${WRKSRC}/freetype |
92 | ${RM} -rf ${WRKSRC}/jbig2dec | | 90 | ${RM} -rf ${WRKSRC}/jbig2dec |
93 | ${RM} -rf ${WRKSRC}/jpeg | | 91 | ${RM} -rf ${WRKSRC}/jpeg |
94 | ${RM} -rf ${WRKSRC}/lcms2 | | 92 | ${RM} -rf ${WRKSRC}/lcms2 |
95 | ${RM} -rf ${WRKSRC}/libpng | | 93 | ${RM} -rf ${WRKSRC}/libpng |
96 | ${RM} -rf ${WRKSRC}/openjpeg | | 94 | ${RM} -rf ${WRKSRC}/openjpeg |
97 | ${RM} -rf ${WRKSRC}/tiff | | 95 | ${RM} -rf ${WRKSRC}/tiff |
98 | ${RM} -rf ${WRKSRC}/zlib | | 96 | ${RM} -rf ${WRKSRC}/zlib |
99 | | | 97 | |
100 | # To allow outside customization, rename cidfmap | | 98 | # To allow outside customization, rename cidfmap |
101 | # (if you look at inside of the file, it is logically empty) | | 99 | # (if you look at inside of the file, it is logically empty) |
102 | .if !empty(PKG_OPTIONS:Mdisable-compile-inits) | | 100 | .if !empty(PKG_OPTIONS:Mdisable-compile-inits) |
103 | (cd ${WRKSRC}/Resource/Init/; ${MV} cidfmap cidfmap.dist) | | 101 | (cd ${WRKSRC}/Resource/Init/; ${MV} cidfmap cidfmap.dist) |
104 | .endif | | 102 | .endif |
105 | | | 103 | |
106 | post-install: | | 104 | post-install: |
107 | ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs | | 105 | ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs |
108 | | | 106 | |
109 | .include "../../devel/libidn/buildlink3.mk" | | 107 | .include "../../devel/libidn/buildlink3.mk" |
110 | .include "../../devel/zlib/buildlink3.mk" | | 108 | .include "../../devel/zlib/buildlink3.mk" |
| | | 109 | BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.10.0 |
111 | .include "../../graphics/freetype2/buildlink3.mk" | | 110 | .include "../../graphics/freetype2/buildlink3.mk" |
112 | .include "../../graphics/jbig2dec/buildlink3.mk" | | 111 | .include "../../graphics/jbig2dec/buildlink3.mk" |
113 | .include "../../graphics/lcms2/buildlink3.mk" | | 112 | .include "../../graphics/lcms2/buildlink3.mk" |
114 | .include "../../graphics/openjpeg/buildlink3.mk" | | 113 | .include "../../graphics/openjpeg/buildlink3.mk" |
115 | .include "../../graphics/png/buildlink3.mk" | | 114 | .include "../../graphics/png/buildlink3.mk" |
116 | .include "../../graphics/tiff/buildlink3.mk" | | 115 | .include "../../graphics/tiff/buildlink3.mk" |
117 | .include "../../print/libpaper/buildlink3.mk" | | 116 | .include "../../print/libpaper/buildlink3.mk" |
118 | .include "../../mk/jpeg.buildlink3.mk" | | 117 | .include "../../mk/jpeg.buildlink3.mk" |
119 | .include "../../mk/bsd.pkg.mk" | | 118 | .include "../../mk/bsd.pkg.mk" |