1997-06-11 06:20:47 +00:00
|
|
|
# New ports collection makefile for: ghostscript
|
|
|
|
# Version required: 5.0
|
|
|
|
# Date created: Tue Jun 10 21:58:54 CEST 1997
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
1998-11-28 09:07:24 +00:00
|
|
|
# $Id: Makefile,v 1.23 1998/07/17 20:19:41 andreas Exp $
|
1997-06-11 06:20:47 +00:00
|
|
|
#
|
|
|
|
|
1998-01-03 08:34:33 +00:00
|
|
|
DISTNAME= ghostscript-5.10
|
1997-06-11 06:20:47 +00:00
|
|
|
CATEGORIES= print
|
1998-01-03 08:34:33 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs510/ \
|
- 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
|
|
|
ftp://bonk.ethz.ch/gs-driver-distrib/ \
|
1998-01-25 15:37:10 +00:00
|
|
|
http://www.ozemail.com.au/~geoffk/pdfencrypt/
|
1997-08-27 06:52:44 +00:00
|
|
|
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
|
1998-01-25 15:37:10 +00:00
|
|
|
${HP850_DRV} ${DECRYPT_PDF}
|
1997-10-09 21:04:47 +00:00
|
|
|
MAINTAINER= andreas@FreeBSD.ORG
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1997-10-13 11:22:43 +00:00
|
|
|
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract \
|
|
|
|
/nonexistent:${PORTSDIR}/graphics/png:extract \
|
1997-09-04 14:57:14 +00:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1998-11-28 09:07:24 +00:00
|
|
|
USE_XLIB= yes
|
1997-06-11 06:20:47 +00:00
|
|
|
MAKE_ENV= PORTSDIR=${PORTSDIR}
|
|
|
|
EXTRACT_ONLY= ${GS_SOURCES}
|
1998-01-03 08:34:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/gs5.10
|
1997-06-11 06:20:47 +00:00
|
|
|
MAKEFILE= unix-gcc.mak
|
|
|
|
MAKE_FLAGS= prefix=${PREFIX} zlibc_=-lz CFLAGS="${CFLAGS}" -f
|
|
|
|
MAN1= gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1
|
|
|
|
|
1998-01-03 08:34:33 +00:00
|
|
|
GS_SOURCES= ghostscript-5.10.tar.gz
|
|
|
|
GS_SOURCES+= ghostscript-5.10gnu.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.
|
1998-01-25 15:37:10 +00:00
|
|
|
GS_FONTS_STD= ghostscript-fonts-std-5.10.tar.gz
|
|
|
|
GS_FONTS_OTHER= ghostscript-fonts-other-5.10.tar.gz
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1997-08-27 06:52:44 +00:00
|
|
|
# Additional driver HP 850, see http://bonk.ethz.ch/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
|
|
|
|
1998-01-25 15:37:10 +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:
|
1997-10-04 14:53:11 +00:00
|
|
|
${TOUCH} ${WRKSRC}/adler32.c
|
|
|
|
${TOUCH} ${WRKSRC}/deflate.c
|
|
|
|
${TOUCH} ${WRKSRC}/trees.c
|
|
|
|
${TOUCH} ${WRKSRC}/adler32.o
|
|
|
|
${TOUCH} ${WRKSRC}/deflate.o
|
|
|
|
${TOUCH} ${WRKSRC}/trees.o
|
1998-04-19 18:34:52 +00:00
|
|
|
ln -s ${PORTSDIR}/graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg-6b
|
1998-07-17 20:19:41 +00:00
|
|
|
ln -s ${PORTSDIR}/graphics/png/work/libpng-1.0.2 ${WRKSRC}/libpng
|
- 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
|
|
|
cd ${WRKSRC} && unzip -Lao ${DISTDIR}/${HP850_DRV}
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.if defined(BATCH)
|
|
|
|
@${SETENV} PORTSDIR=${PORTSDIR} WRKSRC=${WRKSRC} \
|
1997-07-13 18:49:31 +00:00
|
|
|
${SH} ${SCRIPTDIR}/configure.batch
|
1997-06-11 06:20:47 +00:00
|
|
|
.else
|
|
|
|
@${SETENV} PORTSDIR=${PORTSDIR} WRKSRC=${WRKSRC} \
|
1997-07-13 18:49:31 +00:00
|
|
|
${SH} ${SCRIPTDIR}/configure
|
1997-06-11 06:20:47 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/ghostscript ${PREFIX}/bin ${PREFIX}/man/man1
|
1997-06-11 06:37:54 +00:00
|
|
|
(cd ${PREFIX}/share/ghostscript ; \
|
|
|
|
tar -xzf ${DISTDIR}/${GS_FONTS_STD})
|
|
|
|
(cd ${PREFIX}/share/ghostscript/fonts ; \
|
|
|
|
tar -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
|
1998-01-25 15:37:10 +00:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DECRYPT_PDF} \
|
|
|
|
${PREFIX}/share/ghostscript/5.10
|
1998-06-05 06:21:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/license.hp8 \
|
- 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
|
|
|
${PREFIX}/share/ghostscript/5.10/doc
|
1998-06-05 06:21:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.hp8 \
|
- 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
|
|
|
${PREFIX}/share/ghostscript/5.10/doc
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|