1997-06-11 06:20:47 +00:00
|
|
|
# New ports collection makefile for: ghostscript
|
|
|
|
# Date created: Tue Jun 10 21:58:54 CEST 1997
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1997-06-11 06:20:47 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:50:59 +00:00
|
|
|
PORTNAME= ghostscript
|
2000-08-24 21:20:30 +00:00
|
|
|
PORTVERSION= 5.50a
|
1997-06-11 06:20:47 +00:00
|
|
|
CATEGORIES= print
|
2000-08-24 21:20:30 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU} \
|
|
|
|
ftp://ftp.cs.wisc.edu/ghost/gnu/gs550/ \
|
|
|
|
ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/ \
|
2000-09-11 19:07:36 +00:00
|
|
|
http://www.ozemail.com.au/~geoffk/pdfencrypt/ \
|
2000-08-24 21:20:30 +00:00
|
|
|
http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1997-08-27 06:52:44 +00:00
|
|
|
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
|
2000-09-11 19:07:36 +00:00
|
|
|
${DECRYPT_PDF} ${HP850_DRV}
|
2000-08-24 21:20:30 +00:00
|
|
|
EXTRACT_ONLY= ${GS_SOURCES}
|
1998-12-03 08:24:21 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= andreas@FreeBSD.org
|
1997-06-11 06:20:47 +00:00
|
|
|
|
2000-09-11 19:07:36 +00:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract \
|
1997-09-04 14:57:14 +00:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
2000-07-04 07:13:35 +00:00
|
|
|
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1998-12-03 08:24:21 +00:00
|
|
|
WRKSRC= ${WRKDIR}/gs5.50
|
2000-08-24 21:20:30 +00:00
|
|
|
|
|
|
|
USE_XLIB= yes
|
1998-12-03 08:24:21 +00:00
|
|
|
USE_GMAKE= yes
|
1997-06-11 06:20:47 +00:00
|
|
|
MAKEFILE= unix-gcc.mak
|
1998-12-03 08:24:21 +00:00
|
|
|
MAN1= gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 ps2ps.1
|
1997-06-11 06:20:47 +00:00
|
|
|
|
2000-08-24 21:20:30 +00:00
|
|
|
GS_SOURCES= gnu-gs-5.50a.tar.gz
|
1997-06-11 06:20:47 +00:00
|
|
|
# Note: the following two are real files that have symlinks with
|
|
|
|
# later version numbers pointing to them. To avoid unnecessarily
|
|
|
|
# downloading distfiles, do not change these when upgrading the port
|
|
|
|
# unless the files really change.
|
2000-08-24 21:20:30 +00:00
|
|
|
GS_FONTS_STD= gnu-gs-fonts-std-6.0.tar.gz
|
|
|
|
GS_FONTS_OTHER= gnu-gs-fonts-other-6.0.tar.gz
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1998-12-03 08:24:21 +00:00
|
|
|
# Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
|
- Update the additional hp850 driver to newest release 1.3
- Since the author decided to put a version number into his archive,
we can now safely fetch the file from his site.
- patch-ad is useless now
- updated the configure and configure.batch script, to show all possible
drivers
- install hp850 drivers license and readme file in the gs doc dir
- update the DESCR file, mention the two add on packages in this port
- The new driver supports the following additional printers:
Support for HP DeskJet 670, 690, 850, 855, 870, 890, 1100 and 1600,
See announcement on http://bonk.ethz.ch/hp850/hp850.html
Please note, that some of the drivers have certain restrictions
and produce huge output files ... Please read the release notes !!!
The author makes suggestions on his website, what driver to choose
if you need a fast printout, see
http://bonk.ethz.ch/hp850/hp850-readme.1.3.html
1998-06-04 20:11:39 +00:00
|
|
|
HP850_DRV= hp8xxs13.zip
|
1997-08-27 06:52:44 +00:00
|
|
|
|
2000-09-11 19:07:36 +00:00
|
|
|
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
|
|
|
|
DECRYPT_PDF= pdf_sec.ps
|
|
|
|
|
Major cleanup for ghostscript5 port.
- merged patch-af into patch-aa, both patches hacked unix-gcc.mak
- merged the scripts/{configure,configure.batch} changes into
patch-aa, so that unix-gcc.mak is hacked only by patch-aa
- when doing interactive configuration, every device driver is
now turned on, so you have to deselect devices
- when using BATCH compilation, you now get every supported device,
this one is especially for Satoshi, when making gs packages !
- Added a note into unix-gcc.mak, that DEVICE_DEVS now completely
are removed in the makefile, instead of this, the two configure
scripts now completely control, which devices have to be compiled in.
So, the configure target "patches" the unix-gcc.mak Makefile and
puts a DEVICE_DEVS line at line 1. When doing batch compilation
every device is included in this line, or the wanted devices ...
- The compilation option -DA4 is now included if you compile the port
by saying "make A4=yes".
I hope, I didn't forget a driver, look at that long line ;-)
BTW, I didn't create that DEVICE_DEVS line by hand, I did the
interactive installation, which created it automatically, and
after that I "stealed" that DEVICE_DEVS line for inclusion
into configure.batch ;-) So the devices in configure and configure.batch
are exactly the same, you only have to compare devices.mak with one
of the configure scripts.
BTW, should we nuke ghostscript4 ??? Does somebody know if any
port needs gs4 ???
1997-06-14 09:36:31 +00:00
|
|
|
.if defined(A4)
|
1997-06-11 06:20:47 +00:00
|
|
|
CFLAGS+= -DA4
|
Major cleanup for ghostscript5 port.
- merged patch-af into patch-aa, both patches hacked unix-gcc.mak
- merged the scripts/{configure,configure.batch} changes into
patch-aa, so that unix-gcc.mak is hacked only by patch-aa
- when doing interactive configuration, every device driver is
now turned on, so you have to deselect devices
- when using BATCH compilation, you now get every supported device,
this one is especially for Satoshi, when making gs packages !
- Added a note into unix-gcc.mak, that DEVICE_DEVS now completely
are removed in the makefile, instead of this, the two configure
scripts now completely control, which devices have to be compiled in.
So, the configure target "patches" the unix-gcc.mak Makefile and
puts a DEVICE_DEVS line at line 1. When doing batch compilation
every device is included in this line, or the wanted devices ...
- The compilation option -DA4 is now included if you compile the port
by saying "make A4=yes".
I hope, I didn't forget a driver, look at that long line ;-)
BTW, I didn't create that DEVICE_DEVS line by hand, I did the
interactive installation, which created it automatically, and
after that I "stealed" that DEVICE_DEVS line for inclusion
into configure.batch ;-) So the devices in configure and configure.batch
are exactly the same, you only have to compare devices.mak with one
of the configure scripts.
BTW, should we nuke ghostscript4 ??? Does somebody know if any
port needs gs4 ???
1997-06-14 09:36:31 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(A4)
|
|
|
|
@${ECHO_MSG} "Type \"make A4=yes\" if you want -DA4 for compilation."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "Using -DA4 for compilation."
|
|
|
|
.endif
|
|
|
|
|
1997-06-11 06:20:47 +00:00
|
|
|
post-extract:
|
1999-07-15 21:53:15 +00:00
|
|
|
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
|
2000-08-24 21:20:30 +00:00
|
|
|
unzip -L -q -aa -o ${DISTDIR}/${HP850_DRV} -d ${WRKSRC} -x devs.mak
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.if defined(BATCH)
|
1998-12-03 08:24:21 +00:00
|
|
|
@${SETENV} WRKSRC=${WRKSRC} ${SH} ${SCRIPTDIR}/configure.batch
|
1997-06-11 06:20:47 +00:00
|
|
|
.else
|
1998-12-03 08:24:21 +00:00
|
|
|
@${SETENV} WRKSRC=${WRKSRC} ${SH} ${SCRIPTDIR}/configure
|
1997-06-11 06:20:47 +00:00
|
|
|
.endif
|
|
|
|
|
1998-12-03 08:24:21 +00:00
|
|
|
pre-build:
|
|
|
|
${MKDIR} ${WRKSRC}/obj
|
|
|
|
|
1997-06-11 06:20:47 +00:00
|
|
|
pre-install:
|
2000-08-24 21:20:30 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/ghostscript
|
|
|
|
${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD}
|
|
|
|
${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER}
|
1997-06-11 06:20:47 +00:00
|
|
|
|
- Update the additional hp850 driver to newest release 1.3
- Since the author decided to put a version number into his archive,
we can now safely fetch the file from his site.
- patch-ad is useless now
- updated the configure and configure.batch script, to show all possible
drivers
- install hp850 drivers license and readme file in the gs doc dir
- update the DESCR file, mention the two add on packages in this port
- The new driver supports the following additional printers:
Support for HP DeskJet 670, 690, 850, 855, 870, 890, 1100 and 1600,
See announcement on http://bonk.ethz.ch/hp850/hp850.html
Please note, that some of the drivers have certain restrictions
and produce huge output files ... Please read the release notes !!!
The author makes suggestions on his website, what driver to choose
if you need a fast printout, see
http://bonk.ethz.ch/hp850/hp850-readme.1.3.html
1998-06-04 20:11:39 +00:00
|
|
|
# install the readme and license file of the hp8xxx driver as well
|
1997-06-11 06:20:47 +00:00
|
|
|
post-install:
|
|
|
|
strip ${PREFIX}/bin/gs
|
1999-05-15 01:14:35 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/unix-lpr.sh ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lprsetup.sh ${PREFIX}/bin
|
2000-09-11 19:07:36 +00:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \
|
|
|
|
${PREFIX}/share/ghostscript/5.50
|
1998-06-05 06:21:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/license.hp8 \
|
1998-12-03 08:24:21 +00:00
|
|
|
${PREFIX}/share/ghostscript/5.50/doc
|
1998-06-05 06:21:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.hp8 \
|
1998-12-03 08:24:21 +00:00
|
|
|
${PREFIX}/share/ghostscript/5.50/doc
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|