Lines 1-8
Link Here
|
1 |
PORTNAME= ghostscript |
1 |
PORTNAME= ghostscript |
2 |
DISTVERSION= 10.01.1 |
2 |
DISTVERSION= 10.01.1 |
3 |
PORTREVISION= 2 |
3 |
PORTREVISION= 3 |
4 |
CATEGORIES= print |
4 |
CATEGORIES= print |
5 |
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/ |
5 |
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/ |
|
|
6 |
PKGNAMESUFFIX= ${DISTVERSION:R:R} |
6 |
|
7 |
|
7 |
MAINTAINER= michael.osipov@siemens.com |
8 |
MAINTAINER= michael.osipov@siemens.com |
8 |
COMMENT= PostScript and PDF interpreter |
9 |
COMMENT= PostScript and PDF interpreter |
Lines 23-79
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
Link Here
|
23 |
RUN_DEPENDS= poppler-data>=0.4.9:graphics/poppler-data \ |
24 |
RUN_DEPENDS= poppler-data>=0.4.9:graphics/poppler-data \ |
24 |
urw-base35-fonts>=20200910:x11-fonts/urw-base35-fonts |
25 |
urw-base35-fonts>=20200910:x11-fonts/urw-base35-fonts |
25 |
|
26 |
|
|
|
27 |
FLAVORS= default x11 |
28 |
FLAVOR?= ${FLAVORS:[1]} |
29 |
default_CONFLICTS_INSTALL= ${PORTNAME}${DISTVERSION:R:R}-${FLAVORS:[2]} |
30 |
x11_PKGNAMESUFFIX= ${DISTVERSION:R:R}-${FLAVOR} |
31 |
x11_CONFLICTS_INSTALL= ${PORTNAME}${DISTVERSION:R:R} |
32 |
|
26 |
USES= cpe gmake iconv jpeg localbase pkgconfig tar:xz |
33 |
USES= cpe gmake iconv jpeg localbase pkgconfig tar:xz |
|
|
34 |
USE_LDCONFIG= yes |
27 |
CPE_VENDOR= artifex |
35 |
CPE_VENDOR= artifex |
28 |
|
36 |
|
29 |
CONFLICTS_INSTALL= ghostscript[789]-base \ |
37 |
CONFLICTS_INSTALL= ghostscript[789]-base \ |
30 |
ghostscript[789]-x11 \ |
38 |
ghostscript[789]-x11 \ |
31 |
ghostscript9-agpl-base \ |
39 |
ghostscript9-agpl-base \ |
32 |
ghostscript9-agpl-x11 |
40 |
ghostscript9-agpl-x11 |
|
|
41 |
|
33 |
EXTRACT_AFTER_ARGS= --exclude cups/libs \ |
42 |
EXTRACT_AFTER_ARGS= --exclude cups/libs \ |
34 |
--exclude freetype \ |
43 |
--exclude freetype \ |
35 |
--exclude ijs \ |
44 |
--exclude ijs \ |
36 |
--exclude jbig2dec \ |
45 |
--exclude jbig2dec \ |
37 |
--exclude jpeg \ |
46 |
--exclude jpeg \ |
38 |
--exclude lcms2mt \ |
47 |
--exclude lcms2mt \ |
39 |
--exclude libpng \ |
48 |
--exclude libpng \ |
40 |
--exclude openjpeg \ |
49 |
--exclude openjpeg \ |
41 |
--exclude tiff \ |
50 |
--exclude tiff \ |
42 |
--exclude zlib |
51 |
--exclude zlib |
43 |
|
|
|
44 |
DATADIR= ${PREFIX}/share/${PORTNAME}/${DISTVERSION} |
45 |
|
52 |
|
46 |
GNU_CONFIGURE= yes |
53 |
GNU_CONFIGURE= yes |
47 |
|
54 |
|
48 |
CONFIGURE_ARGS= --disable-compile-inits \ |
55 |
ALL_TARGET= so |
49 |
--disable-dbus \ |
56 |
INSTALL_TARGET= soinstall |
50 |
--disable-gtk \ |
57 |
|
51 |
--disable-dynamic \ |
58 |
.if ${FLAVOR} == default |
52 |
--enable-contrib \ |
59 |
CONFIGURE_ARGS+= --without-x |
53 |
--enable-fontconfig \ |
60 |
.endif |
54 |
--enable-freetype \ |
61 |
.if ${FLAVOR} == x11 |
55 |
--enable-openjpeg \ |
62 |
USES+= xorg |
56 |
--with-fontpath=${LOCALBASE}/share/fonts \ |
63 |
USE_XORG= ice sm x11 xext xt |
57 |
--with-jbig2dec \ |
64 |
CONFIGURE_ARGS+= --with-x |
58 |
--with-libiconv=maybe \ |
65 |
.endif |
59 |
--with-libidn \ |
66 |
|
60 |
--with-libpaper \ |
67 |
DATADIR= ${PREFIX}/share/${PORTNAME}/${DISTVERSION} |
61 |
--with-system-libtiff \ |
68 |
|
62 |
--without-x |
69 |
GS_MINOR_VERSION= ${DISTVERSION:R:E} |
63 |
|
70 |
PLIST_SUB= GS_MINOR_VERSION=${GS_MINOR_VERSION} |
64 |
OPTIONS_DEFINE= CUPS IJS TESSERACT |
71 |
|
65 |
OPTIONS_DEFAULT=CUPS |
72 |
CONFIGURE_ARGS+= --disable-compile-inits \ |
66 |
|
73 |
--disable-dbus \ |
67 |
IJS_DESC= Support libijs based Ghostscript devices |
74 |
--disable-gtk \ |
68 |
TESSERACT_DESC= Enable bundled Tesseract OCR engine |
75 |
--disable-dynamic \ |
69 |
|
76 |
--enable-contrib \ |
70 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
77 |
--enable-fontconfig \ |
71 |
CUPS_CONFIGURE_ENABLE= cups |
78 |
--enable-freetype \ |
72 |
|
79 |
--enable-openjpeg \ |
73 |
IJS_LIB_DEPENDS= libijs.so:print/libijs |
80 |
--with-fontpath=${LOCALBASE}/share/fonts \ |
74 |
IJS_CONFIGURE_WITH= ijs |
81 |
--with-jbig2dec \ |
75 |
|
82 |
--with-libiconv=maybe \ |
76 |
TESSERACT_USES= compiler:c++17-lang |
83 |
--with-libidn \ |
|
|
84 |
--with-libpaper \ |
85 |
--with-system-libtiff |
86 |
|
87 |
OPTIONS_DEFINE= CUPS IJS TESSERACT |
88 |
OPTIONS_DEFAULT= CUPS |
89 |
|
90 |
IJS_DESC= Support libijs based Ghostscript devices |
91 |
TESSERACT_DESC= Enable bundled Tesseract OCR engine |
92 |
|
93 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
94 |
CUPS_CONFIGURE_ENABLE= cups |
95 |
|
96 |
IJS_LIB_DEPENDS= libijs.so:print/libijs |
97 |
IJS_CONFIGURE_WITH= ijs |
98 |
|
99 |
TESSERACT_USES= compiler:c++17-lang |
77 |
TESSERACT_CONFIGURE_WITH= tesseract |
100 |
TESSERACT_CONFIGURE_WITH= tesseract |
78 |
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract |
101 |
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract |
79 |
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490 |
102 |
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490 |
Lines 83-89
post-patch:
Link Here
|
83 |
${PATCH_WRKSRC}/man/gs.1 |
106 |
${PATCH_WRKSRC}/man/gs.1 |
84 |
|
107 |
|
85 |
post-install: |
108 |
post-install: |
86 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs |
109 |
${MV} ${STAGEDIR}${PREFIX}/bin/gsc ${STAGEDIR}${PREFIX}/bin/gs |
|
|
110 |
${RM} ${STAGEDIR}${PREFIX}/bin/gsx |
111 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs \ |
112 |
${STAGEDIR}${PREFIX}/lib/libgs.so.10.${GS_MINOR_VERSION} |
87 |
${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh |
113 |
${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh |
88 |
${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh |
114 |
${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh |
89 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc |
115 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc |