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

(-)print/ghostscript-afpl/Makefile (-26 / +20 lines)
Lines 51-64 Link Here
51
		ps2ps.1 eps2eps.1
51
		ps2ps.1 eps2eps.1
52
52
53
.if defined(A4)
53
.if defined(A4)
54
MAKE_ENV+=	A4=${A4}
54
MAKE_ENV+=	A4="${A4}"
55
.endif
55
.endif
56
56
57
.if !defined(WITHOUT_X11)
57
.if !defined(WITHOUT_X11)
58
USE_XLIB=	yes
58
USE_XLIB=	yes
59
.else
59
.else
60
PKGNAMESUFFIX:=	${PKGNAMESUFFIX}-nox11
60
PKGNAMESUFFIX:=	${PKGNAMESUFFIX}-nox11
61
MAKE_ENV+=	WITHOUT_X11=${WITHOUT_X11}
61
MAKE_ENV+=	WITHOUT_X11="${WITHOUT_X11}"
62
.endif
62
.endif
63
63
64
GS_SOURCES=	${DISTNAME}${EXTRACT_SUFX}
64
GS_SOURCES=	${DISTNAME}${EXTRACT_SUFX}
Lines 121-132 Link Here
121
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
121
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
122
DECRYPT_PDF=	pdf_sec.ps
122
DECRYPT_PDF=	pdf_sec.ps
123
123
124
.include <bsd.port.pre.mk>
125
126
.if ${ARCH} == "i386"
127
CFLAGS+=	-D_LITTLE_ENDIAN
128
.endif
129
130
.SILENT:
124
.SILENT:
131
125
132
pre-everything::
126
pre-everything::
Lines 239-248 Link Here
239
pre-install:
233
pre-install:
240
	${ECHO_MSG} ">>> in pre-install ..."
234
	${ECHO_MSG} ">>> in pre-install ..."
241
	${ECHO_MSG} ">>>   creating ghostscript destdir ..."
235
	${ECHO_MSG} ">>>   creating ghostscript destdir ..."
242
	${MKDIR} ${PREFIX}/share/ghostscript
236
	${MKDIR} ${DATADIR}
243
	${ECHO_MSG} ">>>   extracting ghostscript fonts..."
237
	${ECHO_MSG} ">>>   extracting ghostscript fonts..."
244
	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${_DISTDIR}/${GS_FONTS_STD}
238
	${TAR} -C ${DATADIR} -xzf ${_DISTDIR}/${GS_FONTS_STD}
245
	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${_DISTDIR}/${GS_FONTS_OTHER}
239
	${TAR} -C ${DATADIR} -xzf ${_DISTDIR}/${GS_FONTS_OTHER}
246
240
247
post-install:
241
post-install:
248
	${ECHO_MSG} ">>> in post-install ..."
242
	${ECHO_MSG} ">>> in post-install ..."
Lines 254-265 Link Here
254
	${INSTALL_MAN} ${WRKSRC}/src/${i} ${PREFIX}/man/man1
248
	${INSTALL_MAN} ${WRKSRC}/src/${i} ${PREFIX}/man/man1
255
.endfor
249
.endfor
256
	${ECHO_MSG} ">>>   creating ${HPDJ} destdir ..."
250
	${ECHO_MSG} ">>>   creating ${HPDJ} destdir ..."
257
	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/hpdj
251
	${MKDIR} ${DATADIR}/${PORTVERSION}/hpdj
258
	${ECHO_MSG} ">>>   installing files in ${HPDJ} destdir ..."
252
	${ECHO_MSG} ">>>   installing files in ${HPDJ} destdir ..."
259
.for i in README.hpdj example.mdf margins-A4.ps margins-A4Rotated.ps \
253
.for i in README.hpdj example.mdf margins-A4.ps margins-A4Rotated.ps \
260
	margins-Letter.ps margins-LetterRotated.ps
254
	margins-Letter.ps margins-LetterRotated.ps
261
	${INSTALL_DATA} ${WRKSRC}/src/${i} \
255
	${INSTALL_DATA} ${WRKSRC}/src/${i} \
262
		${PREFIX}/share/ghostscript/${PORTVERSION}/hpdj
256
		${DATADIR}/${PORTVERSION}/hpdj
263
.endfor
257
.endfor
264
# for PCL3 driver
258
# for PCL3 driver
265
	${ECHO_MSG} ">>> installing ${PCL3} manpages ..."
259
	${ECHO_MSG} ">>> installing ${PCL3} manpages ..."
Lines 268-274 Link Here
268
.endfor
262
.endfor
269
# other pcl3 stuff, which might be interesting for runtime
263
# other pcl3 stuff, which might be interesting for runtime
270
	${ECHO_MSG} ">>>   creating ${PCL3} destdir ..."
264
	${ECHO_MSG} ">>>   creating ${PCL3} destdir ..."
271
	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/pcl3
265
	${MKDIR} ${DATADIR}/${PORTVERSION}/pcl3
272
	${ECHO_MSG} ">>>   installing files in ${PCL3} destdir ..."
266
	${ECHO_MSG} ">>>   installing files in ${PCL3} destdir ..."
273
.for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
267
.for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
274
	ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
268
	ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
Lines 276-282 Link Here
276
	ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
270
	ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
277
	ps/margins-LetterRotated.ps
271
	ps/margins-LetterRotated.ps
278
	${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
272
	${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
279
		${PREFIX}/share/ghostscript/${PORTVERSION}/pcl3
273
		${DATADIR}/${PORTVERSION}/pcl3
280
.endfor
274
.endfor
281
# for gimp-print driver
275
# for gimp-print driver
282
	${ECHO_MSG} ">>>   installing ${GPRINT_DESC} escputil in bindir ..."
276
	${ECHO_MSG} ">>>   installing ${GPRINT_DESC} escputil in bindir ..."
Lines 287-318 Link Here
287
		${PREFIX}/man/man1
281
		${PREFIX}/man/man1
288
.endfor
282
.endfor
289
	${ECHO_MSG} ">>>   creating ${GPRINT_DESC} destdir ..."
283
	${ECHO_MSG} ">>>   creating ${GPRINT_DESC} destdir ..."
290
	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/gimp-print
284
	${MKDIR} ${DATADIR}/${PORTVERSION}/gimp-print
291
	${ECHO_MSG} ">>>   installing files in gimp-print destdir ..."
285
	${ECHO_MSG} ">>>   installing files in gimp-print destdir ..."
292
.for i in README
286
.for i in README
293
	${INSTALL_DATA} ${WRKSRC}/${GPRINT_NAME}/Ghost/${i} \
287
	${INSTALL_DATA} ${WRKSRC}/${GPRINT_NAME}/Ghost/${i} \
294
		${PREFIX}/share/ghostscript/${PORTVERSION}/gimp-print
288
		${DATADIR}/${PORTVERSION}/gimp-print
295
.endfor
289
.endfor
296
# for HPinkjet driver
290
# for HPinkjet driver
297
	${ECHO_MSG} ">>>   installing ${HPIJS} server in libexecdir ..."
291
	${ECHO_MSG} ">>>   installing ${HPIJS} server in libexecdir ..."
298
	${INSTALL_PROGRAM} ${WRKSRC}/${HPIJS_NAME}/hpijs ${PREFIX}/libexec
292
	${INSTALL_PROGRAM} ${WRKSRC}/${HPIJS_NAME}/hpijs ${PREFIX}/libexec
299
	${ECHO_MSG} ">>>   creating ${HPIJS} destdir ..."
293
	${ECHO_MSG} ">>>   creating ${HPIJS} destdir ..."
300
	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/hpijs
294
	${MKDIR} ${DATADIR}/${PORTVERSION}/hpijs
301
	${ECHO_MSG} ">>>   installing files in ${HPIJS} destdir ..."
295
	${ECHO_MSG} ">>>   installing files in ${HPIJS} destdir ..."
302
.for i in hpijs_readme.html
296
.for i in hpijs_readme.html
303
	${INSTALL_DATA} ${WRKSRC}/${HPIJS}/${i} \
297
	${INSTALL_DATA} ${WRKSRC}/${HPIJS}/${i} \
304
		${PREFIX}/share/ghostscript/${PORTVERSION}/hpijs
298
		${DATADIR}/${PORTVERSION}/hpijs
305
.endfor
299
.endfor
306
# contributed UPP driver
300
# contributed UPP driver
307
	${ECHO_MSG} ">>> installing contributed UPP profiles ..."
301
	${ECHO_MSG} ">>> installing contributed UPP profiles ..."
308
.for i in ${CONTRIB_UPP}
302
.for i in ${CONTRIB_UPP}
309
	${INSTALL_DATA} ${FILESDIR}/${i} \
303
	${INSTALL_DATA} ${FILESDIR}/${i} \
310
		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
304
		${DATADIR}/${PORTVERSION}/lib
311
.endfor
305
.endfor
312
# for reading encrypted PDFs
306
# for reading encrypted PDFs
313
	${ECHO_MSG} ">>> installing support for encrypted PDF files ..."
307
	${ECHO_MSG} ">>> installing support for encrypted PDF files ..."
314
	${INSTALL_DATA} ${_DISTDIR}/${DECRYPT_PDF} \
308
	${INSTALL_DATA} ${_DISTDIR}/${DECRYPT_PDF} \
315
		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
309
		${DATADIR}/${PORTVERSION}/lib
316
#
310
#
317
# now NOPORTDOCS dependend stuff
311
# now NOPORTDOCS dependend stuff
318
#
312
#
Lines 321-342 Link Here
321
# install hpdj docu, not necessary for runtime
315
# install hpdj docu, not necessary for runtime
322
# note: old hpdj driver has its files in ${WRKSRC}/src
316
# note: old hpdj driver has its files in ${WRKSRC}/src
323
	${ECHO_MSG} ">>>   creating ${HPDJ} docu destdir ..."
317
	${ECHO_MSG} ">>>   creating ${HPDJ} docu destdir ..."
324
	${MKDIR} ${PREFIX}/share/doc/ghostscript/${PORTVERSION}/hpdj
318
	${MKDIR} ${DOCSDIR}/${PORTVERSION}/hpdj
325
	${ECHO_MSG} ">>>   installing files in ${HPDJ} docu destdir ..."
319
	${ECHO_MSG} ">>>   installing files in ${HPDJ} docu destdir ..."
326
.for i in NEWS hpdj.html
320
.for i in NEWS hpdj.html
327
	${INSTALL_DATA} ${WRKSRC}/src/${i} \
321
	${INSTALL_DATA} ${WRKSRC}/src/${i} \
328
		${PREFIX}/share/doc/ghostscript/${PORTVERSION}/hpdj
322
		${DOCSDIR}/${PORTVERSION}/hpdj
329
.endfor
323
.endfor
330
# install pcl3 docu, not necessary for runtime
324
# install pcl3 docu, not necessary for runtime
331
# note: new pcl3 driver has a subdir of its own
325
# note: new pcl3 driver has a subdir of its own
332
	${ECHO_MSG} ">>>   creating ${PCL3} docu destdir ..."
326
	${ECHO_MSG} ">>>   creating ${PCL3} docu destdir ..."
333
	${MKDIR} ${PREFIX}/share/doc/ghostscript/${PORTVERSION}/pcl3
327
	${MKDIR} ${DOCSDIR}/${PORTVERSION}/pcl3
334
	${ECHO_MSG} ">>>   installing files in ${PCL3} docu destdir ..."
328
	${ECHO_MSG} ">>>   installing files in ${PCL3} docu destdir ..."
335
.for i in NEWS doc/gs-pcl3.html doc/how-to-report.txt doc/pcl3opts.html
329
.for i in NEWS doc/gs-pcl3.html doc/how-to-report.txt doc/pcl3opts.html
336
	${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
330
	${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
337
		${PREFIX}/share/doc/ghostscript/${PORTVERSION}/pcl3
331
		${DOCSDIR}/${PORTVERSION}/pcl3
338
.endfor
332
.endfor
339
.endif
333
.endif
340
	${ECHO_MSG} "> post-installation tasks completed."
334
	${ECHO_MSG} "> post-installation tasks completed."
341
335
342
.include <bsd.port.post.mk>
336
.include <bsd.port.mk>
(-)print/ghostscript-afpl/files/patch-hpijs:platform.h (+13 lines)
Line 0 Link Here
1
--- hpijs/platform.h.orig	Wed Oct  3 03:56:37 2001
2
+++ hpijs/platform.h	Wed Oct  3 04:20:33 2001
3
@@ -13,3 +13,10 @@
4
 #include <string.h>
5
 #include <stdio.h>
6
 #include <math.h>
7
+
8
+#ifdef __FreeBSD__
9
+#include <machine/endian.h>
10
+#if BYTE_ORDER == LITTLE_ENDIAN
11
+#define _LITTLE_ENDIAN
12
+#endif
13
+#endif

Return to bug 31077