View | Details | Raw Unified | Return to bug 21083
Collapse All | Expand All

(-)print/ghostscript6/Makefile (-31 / +23 lines)
Lines 15-34 Link Here
15
		ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/
15
		ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/
16
DISTFILES=	${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
16
DISTFILES=	${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
17
		${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV}
17
		${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV}
18
EXTRACT_ONLY=	${GS_SOURCES} ${HPDJ_DRV}
18
19
19
MAINTAINER=	andreas@FreeBSD.org
20
MAINTAINER=	andreas@FreeBSD.org
20
21
21
Y2K=		http://www.cs.wisc.edu/~ghost/aladdin/y2k.html
22
BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract
22
23
BUILD_DEPENDS=	/nonexistent:${PORTSDIR}/graphics/jpeg:extract
24
LIB_DEPENDS=	png.4:${PORTSDIR}/graphics/png
23
LIB_DEPENDS=	png.4:${PORTSDIR}/graphics/png
25
24
26
PLIST_SUB=	GS_VERSION=${PORTVERSION}
25
Y2K=		http://www.cs.wisc.edu/~ghost/aladdin/y2k.html
27
USE_XLIB=	yes
26
28
EXTRACT_ONLY=	${GS_SOURCES} ${HPDJ_DRV}
29
WRKSRC=		${WRKDIR}/gs${PORTVERSION}
27
WRKSRC=		${WRKDIR}/gs${PORTVERSION}
28
USE_XLIB=	yes
29
USE_GMAKE=	yes
30
MAKEFILE=	src/unix-gcc.mak
30
MAKEFILE=	src/unix-gcc.mak
31
CFLAGS+=	-I${PREFIX}/include
31
PLIST_SUB=	GS_VERSION=${PORTVERSION}
32
# Note: the order that the manpages are listed here matters because
32
# Note: the order that the manpages are listed here matters because
33
# some of them are symbolic links
33
# some of them are symbolic links
34
MAN1=		gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \
34
MAN1=		gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \
Lines 58-69 Link Here
58
CONTRIB_UPP=	lqx70ch.upp lqx70cl.upp lqx70cm.upp \
58
CONTRIB_UPP=	lqx70ch.upp lqx70cl.upp lqx70cm.upp \
59
		stc740ih.upp stc740p.upp stc740pl.upp
59
		stc740ih.upp stc740p.upp stc740pl.upp
60
60
61
# encrypted PDF support.  can't be packaged due to export control issues.
61
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
62
.if defined(PDFENCRYPT)
62
DECRYPT_PDF=	pdf_sec.ps
63
MASTER_SITES+=	http://www.ozemail.com.au/~geoffk/pdfencrypt/
64
DISTFILES+=	pdf_sec.ps
65
RESTRICTED=	"Crypto; export controlled, RC4 in PostScript code included"
66
.endif
67
63
68
.if defined(A4)
64
.if defined(A4)
69
CFLAGS+=	-DA4
65
CFLAGS+=	-DA4
Lines 79-88 Link Here
79
post-extract:
75
post-extract:
80
	@${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \
76
	@${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \
81
		${WRKSRC}/jpeg
77
		${WRKSRC}/jpeg
82
	@cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HP8XX_DRV}
78
	@${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HP8XX_DRV}
83
	@cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HPDJ_DRV}
79
	@${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HPDJ_DRV}
84
	# additional HPDJ driver
80
# additional HPDJ driver
85
	@${TAR} -xf ${WRKDIR}/hpdj-2.6/hpdj.tar -C ${WRKSRC}/src
81
	@${TAR} -C ${WRKSRC}/src -xf ${WRKDIR}/hpdj-2.6/hpdj.tar
86
	@${CAT} ${WRKSRC}/src/contrib.mak-5.94.add >> ${WRKSRC}/src/contrib.mak
82
	@${CAT} ${WRKSRC}/src/contrib.mak-5.94.add >> ${WRKSRC}/src/contrib.mak
87
	@${PATCH} -d ${WRKSRC}/src --forward --quiet -E \
83
	@${PATCH} -d ${WRKSRC}/src --forward --quiet -E \
88
		< ${WRKSRC}/src/zmedia2.c-5.50.diff
84
		< ${WRKSRC}/src/zmedia2.c-5.50.diff
Lines 100-130 Link Here
100
96
101
pre-install:
97
pre-install:
102
	@${MKDIR} ${PREFIX}/share/ghostscript
98
	@${MKDIR} ${PREFIX}/share/ghostscript
103
	@(cd ${PREFIX}/share/ghostscript ; \
99
	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD}
104
			${TAR} -xzf ${DISTDIR}/${GS_FONTS_STD})
100
	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER}
105
	@(cd ${PREFIX}/share/ghostscript ; \
106
			${TAR} -xzf ${DISTDIR}/${GS_FONTS_OTHER})
107
101
108
post-install:
102
post-install:
109
	@strip ${PREFIX}/bin/gs
103
	@strip ${PREFIX}/bin/gs
110
	@${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin
104
	${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin
111
	@${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin
105
	${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin
112
	@${MKDIR} ${PREFIX}/libexec/lpr
106
	@${MKDIR} ${PREFIX}/libexec/lpr
113
	@${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr
107
	${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr
114
	@${INSTALL_DATA} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1
108
	${INSTALL_MAN} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1
115
.for i in ${CONTRIB_UPP}
109
.for i in ${CONTRIB_UPP}
116
	@${INSTALL_DATA} ${FILESDIR}/$i \
110
	${INSTALL_DATA} ${FILESDIR}/${i} \
117
		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
111
		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
118
.endfor
112
.endfor
119
.if defined(PDFENCRYPT)
113
	${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \
120
	@${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \
121
		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
114
		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
122
.endif
115
.if !defined(NOPORTDOCS)
123
.if !defined(NOPORTDOC)
124
	@${MKDIR} ${PREFIX}/share/ghostscript/hpdj
116
	@${MKDIR} ${PREFIX}/share/ghostscript/hpdj
125
.for i in LGPL.txt NEWS README.hpdj example.mdf hpdj.html margins-A4.ps \
117
.for i in LGPL.txt NEWS README.hpdj example.mdf hpdj.html margins-A4.ps \
126
	margins-A4Rotated.ps margins-Letter.ps margins-LetterRotated.ps
118
	margins-A4Rotated.ps margins-Letter.ps margins-LetterRotated.ps
127
	@ cd ${WRKSRC}/src; ${INSTALL_DATA} $i ${PREFIX}/share/ghostscript/hpdj
119
	${INSTALL_DATA} ${WRKSRC}/src/${i} ${PREFIX}/share/ghostscript/hpdj
128
120
129
.endfor
121
.endfor
130
.endif
122
.endif
(-)print/ghostscript6/patches/patch-aa (-4 / +4 lines)
Lines 53-59 Link Here
53
 # See libpng.mak for more information.
53
 # See libpng.mak for more information.
54
 
54
 
55
-PSRCDIR=libpng
55
-PSRCDIR=libpng
56
+PSRCDIR=${PREFIX}/include
56
+PSRCDIR=${LOCALBASE}/include
57
 PVERSION=10005
57
 PVERSION=10005
58
 
58
 
59
 # Choose whether to use a shared version of the PNG library, and if so,
59
 # Choose whether to use a shared version of the PNG library, and if so,
Lines 97-103 Link Here
97
 # giving the full path names of the shared library directories.
97
 # giving the full path names of the shared library directories.
98
 # XLDFLAGS can be set from the command line.
98
 # XLDFLAGS can be set from the command line.
99
-XLDFLAGS=
99
-XLDFLAGS=
100
+XLDFLAGS=-L$(prefix)/lib
100
+XLDFLAGS=-L${LOCALBASE}/lib
101
 
101
 
102
 LDFLAGS=$(XLDFLAGS) -fno-common
102
 LDFLAGS=$(XLDFLAGS) -fno-common
103
 
103
 
Lines 115-121 Link Here
115
 # not in $(XINCLUDE).
115
 # not in $(XINCLUDE).
116
 
116
 
117
-XINCLUDE=-I/usr/local/X/include
117
-XINCLUDE=-I/usr/local/X/include
118
+XINCLUDE=-I$(X11BASE)/include -I$(PREFIX)/include
118
+XINCLUDE=-I${X11BASE}/include
119
 
119
 
120
 # Define the directory/ies and library names for the X11 library files.
120
 # Define the directory/ies and library names for the X11 library files.
121
 # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
121
 # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
Lines 128-134 Link Here
128
 
128
 
129
 #XLIBDIRS=-L/usr/local/X/lib
129
 #XLIBDIRS=-L/usr/local/X/lib
130
-XLIBDIRS=-L/usr/X11/lib
130
-XLIBDIRS=-L/usr/X11/lib
131
+XLIBDIRS=-L$(X11BASE)/lib
131
+XLIBDIRS=-L${X11BASE}/lib
132
 XLIBDIR=
132
 XLIBDIR=
133
-XLIBS=Xt Xext X11
133
-XLIBS=Xt Xext X11
134
+#XLIBS=Xt Xext X11
134
+#XLIBS=Xt Xext X11
(-)print/ghostscript6/pkg/PLIST (+2 lines)
Lines 28-33 Link Here
28
bin/sysvlp.sh
28
bin/sysvlp.sh
29
bin/unix-lpr.sh
29
bin/unix-lpr.sh
30
bin/wftopfa
30
bin/wftopfa
31
libexec/lpr/if-hpdj
31
share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm
32
share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm
32
share/ghostscript/%%GS_VERSION%%/doc/C-style.htm
33
share/ghostscript/%%GS_VERSION%%/doc/C-style.htm
33
share/ghostscript/%%GS_VERSION%%/doc/Commprod.htm
34
share/ghostscript/%%GS_VERSION%%/doc/Commprod.htm
Lines 444-446 Link Here
444
@dirrm share/ghostscript/fonts
445
@dirrm share/ghostscript/fonts
445
@dirrm share/ghostscript/hpdj
446
@dirrm share/ghostscript/hpdj
446
@dirrm share/ghostscript
447
@dirrm share/ghostscript
448
@unexec rmdir %D/libexec/lpr 2>/dev/null || true

Return to bug 21083