Lines 1-6
Link Here
|
1 |
PORTNAME= ghostscript |
1 |
PORTNAME= ghostscript |
2 |
DISTVERSION= 10.01.2 |
2 |
DISTVERSION= 10.01.2 |
3 |
PORTREVISION= 1 |
3 |
PORTREVISION= 2 |
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= ${GS_MAJOR_VERSION} |
6 |
PKGNAMESUFFIX= ${GS_MAJOR_VERSION} |
Lines 24-35
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
Link Here
|
24 |
RUN_DEPENDS= poppler-data>=0.4.9:graphics/poppler-data \ |
24 |
RUN_DEPENDS= poppler-data>=0.4.9:graphics/poppler-data \ |
25 |
urw-base35-fonts>=20200910:x11-fonts/urw-base35-fonts |
25 |
urw-base35-fonts>=20200910:x11-fonts/urw-base35-fonts |
26 |
|
26 |
|
27 |
FLAVORS= default x11 |
|
|
28 |
FLAVOR?= ${FLAVORS:[1]} |
29 |
default_CONFLICTS_INSTALL= ${PORTNAME}${GS_MAJOR_VERSION}-${FLAVORS:[2]} |
30 |
x11_PKGNAMESUFFIX= ${GS_MAJOR_VERSION}-${FLAVOR} |
31 |
x11_CONFLICTS_INSTALL= ${PORTNAME}${GS_MAJOR_VERSION} |
32 |
|
33 |
USES= cpe gmake iconv jpeg localbase pkgconfig tar:xz |
27 |
USES= cpe gmake iconv jpeg localbase pkgconfig tar:xz |
34 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
35 |
CPE_VENDOR= artifex |
29 |
CPE_VENDOR= artifex |
Lines 55-69
GNU_CONFIGURE= yes
Link Here
|
55 |
ALL_TARGET= so |
49 |
ALL_TARGET= so |
56 |
INSTALL_TARGET= soinstall |
50 |
INSTALL_TARGET= soinstall |
57 |
|
51 |
|
58 |
.if ${FLAVOR} == default |
|
|
59 |
CONFIGURE_ARGS+= --without-x |
60 |
.endif |
61 |
.if ${FLAVOR} == x11 |
62 |
USES+= xorg |
63 |
USE_XORG= ice sm x11 xext xt |
64 |
CONFIGURE_ARGS+= --with-x |
65 |
.endif |
66 |
|
67 |
DATADIR= ${PREFIX}/share/${PORTNAME}/${DISTVERSION} |
52 |
DATADIR= ${PREFIX}/share/${PORTNAME}/${DISTVERSION} |
68 |
|
53 |
|
69 |
GS_MAJOR_VERSION= ${DISTVERSION:R:R} |
54 |
GS_MAJOR_VERSION= ${DISTVERSION:R:R} |
Lines 86-93
CONFIGURE_ARGS+= --disable-compile-inits \
Link Here
|
86 |
--with-libpaper \ |
71 |
--with-libpaper \ |
87 |
--with-system-libtiff |
72 |
--with-system-libtiff |
88 |
|
73 |
|
89 |
OPTIONS_DEFINE= CUPS IJS TESSERACT |
74 |
OPTIONS_DEFINE= CUPS IJS TESSERACT X11 |
90 |
OPTIONS_DEFAULT= CUPS |
75 |
OPTIONS_DEFAULT= CUPS X11 |
91 |
|
76 |
|
92 |
IJS_DESC= Support libijs based Ghostscript devices |
77 |
IJS_DESC= Support libijs based Ghostscript devices |
93 |
TESSERACT_DESC= Enable bundled Tesseract OCR engine |
78 |
TESSERACT_DESC= Enable bundled Tesseract OCR engine |
Lines 103-108
TESSERACT_CONFIGURE_WITH= tesseract
Link Here
|
103 |
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract |
88 |
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract |
104 |
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490 |
89 |
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490 |
105 |
|
90 |
|
|
|
91 |
X11_CONFIGURE_WITH= x |
92 |
X11_USES= xorg |
93 |
X11_USE= xorg=ice,sm,x11,xext,xt |
94 |
|
106 |
post-patch: |
95 |
post-patch: |
107 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ |
96 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ |
108 |
${PATCH_WRKSRC}/man/gs.1 |
97 |
${PATCH_WRKSRC}/man/gs.1 |
109 |
- |
|
|