View | Details | Raw Unified | Return to bug 270989 | Differences between
and this patch

Collapse All | Expand All

(-)b/print/ghostscript10/Makefile (-45 / +72 lines)
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_MAJOR_VERSION=${PKGNAMESUFFIX} \
64
OPTIONS_DEFINE=	CUPS IJS TESSERACT
71
			GS_MINOR_VERSION=${GS_MINOR_VERSION}
65
OPTIONS_DEFAULT=CUPS
72
66
73
CONFIGURE_ARGS+=	--disable-compile-inits \
67
IJS_DESC=		Support libijs based Ghostscript devices
74
			--disable-dbus \
68
TESSERACT_DESC=		Enable bundled Tesseract OCR engine
75
			--disable-gtk \
69
76
			--disable-dynamic \
70
CUPS_LIB_DEPENDS=	libcups.so:print/cups
77
			--enable-contrib \
71
CUPS_CONFIGURE_ENABLE=	cups
78
			--enable-fontconfig \
72
79
			--enable-freetype \
73
IJS_LIB_DEPENDS=	libijs.so:print/libijs
80
			--enable-openjpeg \
74
IJS_CONFIGURE_WITH=	ijs
81
			--with-fontpath=${LOCALBASE}/share/fonts \
75
82
			--with-jbig2dec \
76
TESSERACT_USES=		compiler:c++17-lang
83
			--with-libiconv=maybe \
84
			--with-libidn \
85
			--with-libpaper \
86
			--with-system-libtiff
87
88
OPTIONS_DEFINE=		CUPS IJS TESSERACT
89
OPTIONS_DEFAULT=	CUPS
90
91
IJS_DESC=			Support libijs based Ghostscript devices
92
TESSERACT_DESC=			Enable bundled Tesseract OCR engine
93
94
CUPS_LIB_DEPENDS=		libcups.so:print/cups
95
CUPS_CONFIGURE_ENABLE=		cups
96
97
IJS_LIB_DEPENDS=		libijs.so:print/libijs
98
IJS_CONFIGURE_WITH=		ijs
99
100
TESSERACT_USES=			compiler:c++17-lang
77
TESSERACT_CONFIGURE_WITH=	tesseract
101
TESSERACT_CONFIGURE_WITH=	tesseract
78
# No TESSERACT_LIB_DEPENDS=	libtesseract.so:graphics/tesseract
102
# No TESSERACT_LIB_DEPENDS=	libtesseract.so:graphics/tesseract
79
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490
103
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490
Lines 83-89 post-patch: Link Here
83
		${PATCH_WRKSRC}/man/gs.1
107
		${PATCH_WRKSRC}/man/gs.1
84
108
85
post-install:
109
post-install:
86
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs
110
	${MV} ${STAGEDIR}${PREFIX}/bin/gsc ${STAGEDIR}${PREFIX}/bin/gs
111
	${RM} ${STAGEDIR}${PREFIX}/bin/gsx
112
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gs \
113
		${STAGEDIR}${PREFIX}/lib/libgs.so.${PKGNAMESUFFIX}.${GS_MINOR_VERSION}
87
	${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh
114
	${RM} ${STAGEDIR}${PREFIX}/bin/lprsetup.sh
88
	${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh
115
	${RM} ${STAGEDIR}${PREFIX}/bin/unix-lpr.sh
89
	${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc
116
	${MKDIR} ${STAGEDIR}${PREFIX}/share/color/icc
(-)b/print/ghostscript10/pkg-plist (+7 lines)
Lines 22-27 bin/ps2pdf14 Link Here
22
bin/ps2pdfwr
22
bin/ps2pdfwr
23
bin/ps2ps
23
bin/ps2ps
24
bin/ps2ps2
24
bin/ps2ps2
25
include/ghostscript/gdevdsp.h
26
include/ghostscript/gserrors.h
27
include/ghostscript/iapi.h
28
include/ghostscript/ierrors.h
29
lib/libgs.so
30
lib/libgs.so.%%GS_MAJOR_VERSION%%
31
lib/libgs.so.%%GS_MAJOR_VERSION%%.%%GS_MINOR_VERSION%%
25
man/man1/dvipdf.1.gz
32
man/man1/dvipdf.1.gz
26
man/man1/eps2eps.1.gz
33
man/man1/eps2eps.1.gz
27
man/man1/gs.1.gz
34
man/man1/gs.1.gz

Return to bug 270989