| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.49 2020/01/03 23:56:09 sevan Exp $ | | 1 | # $NetBSD: Makefile,v 1.50 2020/01/06 07:23:26 mef 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 | PKGREVISION= 2 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= print | | 6 | CATEGORIES= print |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/} |
8 | GITHUB_PROJECT= ghostpdl-downloads | | 8 | GITHUB_PROJECT= ghostpdl-downloads |
9 | GITHUB_RELEASE= gs${GS_VERSION:S/.//} | | 9 | GITHUB_RELEASE= gs${GS_VERSION:S/.//} |
10 | EXTRACT_SUFX= .tar.xz | | 10 | EXTRACT_SUFX= .tar.xz |
11 | | | 11 | |
12 | MAINTAINER= pkgsrc-users@NetBSD.org | | 12 | MAINTAINER= pkgsrc-users@NetBSD.org |
13 | HOMEPAGE= https://ghostscript.com/ | | 13 | HOMEPAGE= https://ghostscript.com/ |
14 | COMMENT= Postscript interpreter | | 14 | COMMENT= Postscript interpreter |
| @@ -95,26 +95,27 @@ post-extract: | | | @@ -95,26 +95,27 @@ post-extract: |
95 | ${RM} -rf ${WRKSRC}/libpng | | 95 | ${RM} -rf ${WRKSRC}/libpng |
96 | ${RM} -rf ${WRKSRC}/openjpeg | | 96 | ${RM} -rf ${WRKSRC}/openjpeg |
97 | ${RM} -rf ${WRKSRC}/tiff | | 97 | ${RM} -rf ${WRKSRC}/tiff |
98 | ${RM} -rf ${WRKSRC}/zlib | | 98 | ${RM} -rf ${WRKSRC}/zlib |
99 | | | 99 | |
100 | # To allow outside customization, rename cidfmap | | 100 | # To allow outside customization, rename cidfmap |
101 | # (if you look at inside of the file, it is logically empty) | | 101 | # (if you look at inside of the file, it is logically empty) |
102 | .if !empty(PKG_OPTIONS:Mdisable-compile-inits) | | 102 | .if !empty(PKG_OPTIONS:Mdisable-compile-inits) |
103 | (cd ${WRKSRC}/Resource/Init/; ${MV} cidfmap cidfmap.dist) | | 103 | (cd ${WRKSRC}/Resource/Init/; ${MV} cidfmap cidfmap.dist) |
104 | .endif | | 104 | .endif |
105 | | | 105 | |
106 | post-install: | | 106 | post-install: |
107 | ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs | | 107 | ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs |
| | | 108 | ${RM} -f ${DESTDIR}${PREFIX}/share/ghostscript/${PKGVERSION_NOREV}/Resource/Init/gs_ttf.ps.orig |
108 | | | 109 | |
109 | .include "../../devel/libidn/buildlink3.mk" | | 110 | .include "../../devel/libidn/buildlink3.mk" |
110 | .include "../../devel/zlib/buildlink3.mk" | | 111 | .include "../../devel/zlib/buildlink3.mk" |
111 | BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.10.0 | | 112 | BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.10.0 |
112 | .include "../../graphics/freetype2/buildlink3.mk" | | 113 | .include "../../graphics/freetype2/buildlink3.mk" |
113 | # XXX: Strictly speaking jbig2dec>=0.16, however now jbig2dec is only checked | | 114 | # XXX: Strictly speaking jbig2dec>=0.16, however now jbig2dec is only checked |
114 | # XXX: via pkg-config and jbig2dec-0.17 is the first version that provides a | | 115 | # XXX: via pkg-config and jbig2dec-0.17 is the first version that provides a |
115 | # XXX: .pc file. | | 116 | # XXX: .pc file. |
116 | BUILDLINK_API_DEPENDS.jbig2dec+= jbig2dec>=0.17 | | 117 | BUILDLINK_API_DEPENDS.jbig2dec+= jbig2dec>=0.17 |
117 | .include "../../graphics/jbig2dec/buildlink3.mk" | | 118 | .include "../../graphics/jbig2dec/buildlink3.mk" |
118 | .include "../../graphics/lcms2/buildlink3.mk" | | 119 | .include "../../graphics/lcms2/buildlink3.mk" |
119 | .include "../../graphics/openjpeg/buildlink3.mk" | | 120 | .include "../../graphics/openjpeg/buildlink3.mk" |
120 | .include "../../graphics/png/buildlink3.mk" | | 121 | .include "../../graphics/png/buildlink3.mk" |