Lines 3-8
DISTVERSION= 10.01.1
Link Here
|
3 |
PORTREVISION= 1 |
3 |
PORTREVISION= 1 |
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= ${PORTVERSION:C/\..*//}-${FLAVOR} |
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 11-16
WWW= https://ghostscript.com/
Link Here
|
11 |
LICENSE= AGPLv3 |
12 |
LICENSE= AGPLv3 |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
|
|
|
15 |
FLAVORS= base x11 |
16 |
FLAVOR?= ${FLAVORS:[1]} |
17 |
|
14 |
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
18 |
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
15 |
libfreetype.so:print/freetype2 \ |
19 |
libfreetype.so:print/freetype2 \ |
16 |
libidn.so:dns/libidn \ |
20 |
libidn.so:dns/libidn \ |
Lines 48-54
GNU_CONFIGURE= yes
Link Here
|
48 |
CONFIGURE_ARGS= --disable-compile-inits \ |
52 |
CONFIGURE_ARGS= --disable-compile-inits \ |
49 |
--disable-dbus \ |
53 |
--disable-dbus \ |
50 |
--disable-gtk \ |
54 |
--disable-gtk \ |
51 |
--disable-dynamic \ |
|
|
52 |
--enable-contrib \ |
55 |
--enable-contrib \ |
53 |
--enable-fontconfig \ |
56 |
--enable-fontconfig \ |
54 |
--enable-freetype \ |
57 |
--enable-freetype \ |
Lines 58-65
CONFIGURE_ARGS= --disable-compile-inits \
Link Here
|
58 |
--with-libiconv=maybe \ |
61 |
--with-libiconv=maybe \ |
59 |
--with-libidn \ |
62 |
--with-libidn \ |
60 |
--with-libpaper \ |
63 |
--with-libpaper \ |
61 |
--with-system-libtiff \ |
64 |
--with-system-libtiff |
62 |
--without-x |
65 |
|
|
|
66 |
|
67 |
GS_VERSION= ${DISTVERSION:S/./ /g:tw:[1..2]:tW:S/ /./} |
68 |
PLIST_SUB= GS_VERSION=${GS_VERSION} |
63 |
|
69 |
|
64 |
OPTIONS_DEFINE= CUPS IJS TESSERACT |
70 |
OPTIONS_DEFINE= CUPS IJS TESSERACT |
65 |
OPTIONS_DEFAULT=CUPS |
71 |
OPTIONS_DEFAULT=CUPS |
Lines 78-89
TESSERACT_CONFIGURE_WITH= tesseract
Link Here
|
78 |
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract |
84 |
# No TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract |
79 |
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490 |
85 |
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490 |
80 |
|
86 |
|
81 |
post-patch: |
87 |
.if !empty(FLAVOR:Mx11) |
|
|
88 |
USES+= xorg |
89 |
USE_XORG= ice sm x11 xext xt |
90 |
CONFIGURE_ARGS+= --with-x \ |
91 |
--disable-hidden-visibility \ |
92 |
--enable-dynamic |
93 |
ALL_TARGET= ./obj/X11.so |
94 |
PLIST_FILES= lib/ghostscript/${DISTVERSION}/X11.so |
95 |
PLIST= |
96 |
INSTALL_TARGET= install-shared |
97 |
.elif !empty(FLAVOR:Mbase) |
98 |
CONFIGURE_ARGS+= --without-x \ |
99 |
--disable-dynamic |
100 |
ALL_TARGET= so |
101 |
INSTALL_TARGET= soinstall |
102 |
.endif |
103 |
|
104 |
post-patch: post-patch-${FLAVOR} |
105 |
post-install: post-install-${FLAVOR} |
106 |
|
107 |
post-patch-base: |
82 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ |
108 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ |
83 |
${PATCH_WRKSRC}/man/gs.1 |
109 |
${PATCH_WRKSRC}/man/gs.1 |
84 |
|
110 |
|
85 |
post-install: |
111 |
post-patch-x11: |
86 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs |
112 |
@: |
|
|
113 |
|
114 |
post-install-base: |
115 |
${MV} ${STAGEDIR}${PREFIX}/bin/gsc ${STAGEDIR}${PREFIX}/bin/gs |
116 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs ${STAGEDIR}${PREFIX}/bin/gsx \ |
117 |
${STAGEDIR}${PREFIX}/lib/libgs.so.${GS_VERSION} |
87 |
${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh |
118 |
${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh |
88 |
${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh |
119 |
${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh |
89 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc |
120 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc |
Lines 99-102
post-install:
Link Here
|
99 |
${RLN} ${STAGEDIR}${PREFIX}/share/cmap \ |
130 |
${RLN} ${STAGEDIR}${PREFIX}/share/cmap \ |
100 |
${STAGEDIR}${DATADIR}/Resource/CMap |
131 |
${STAGEDIR}${DATADIR}/Resource/CMap |
101 |
|
132 |
|
|
|
133 |
post-install-x11: |
134 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ghostscript/${DISTVERSION}/X11.so |
135 |
|
102 |
.include <bsd.port.mk> |
136 |
.include <bsd.port.mk> |