2000-03-05 13:30:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2000/03/05 18:30:40 espie Exp $
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
# Original from: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
|
|
|
|
DISTNAME= ghostscript-5.50
|
|
|
|
CATEGORIES= print
|
2000-03-05 13:30:21 -05:00
|
|
|
NEED_VERSION= 1.223
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
|
2000-02-20 12:18:59 -05:00
|
|
|
DIR= gnu/gs550
|
|
|
|
|
|
|
|
# Eventually, the FSF should wake up...
|
|
|
|
MASTER_SITE_SUBDIR= ghostscript
|
|
|
|
MASTER_SITES= ${GS_SITES} ${MASTER_SITE_GNU}
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.cs.wisc.edu/%7Eghost/
|
|
|
|
|
|
|
|
MASTER_SITES0= http://www.erdw.ethz.ch/%7Ebonk/ftp/gs-driver-distrib/
|
|
|
|
|
|
|
|
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
|
|
|
|
${HP850_DRV}:0
|
|
|
|
|
|
|
|
DIST_SUBDIR= gs
|
|
|
|
|
|
|
|
# png and jpeg sources are under a BSD license
|
|
|
|
LICENSE_TYPE= GPL BSD
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
|
|
|
MAINTAINER= ports@openbsd.org
|
|
|
|
|
2000-03-05 13:30:21 -05:00
|
|
|
JPEGDIR=graphics/jpeg
|
|
|
|
PNGDIR=graphics/png
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= /nonexistent:${JPEGDIR}:extract \
|
|
|
|
/nonexistent:${PNGDIR}:extract \
|
2000-03-05 13:30:21 -05:00
|
|
|
unzip:archivers/unzip \
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS= png.1.3:${PNGDIR}
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${GS_SOURCES}
|
|
|
|
WRKDIST= ${WRKDIR}/gs5.50
|
|
|
|
MAKE_FLAGS= INSTALL_PROGRAM='${INSTALL_SCRIPT}' \
|
|
|
|
INSTALL_DATA='${INSTALL_DATA}' \
|
|
|
|
prefix=${PREFIX} \
|
|
|
|
SHARE_LIBPNG=1 \
|
|
|
|
SHARE_ZLIB=1 \
|
|
|
|
XLDFLAGS=-L${PREFIX}/lib \
|
|
|
|
XINCLUDE=-I${X11BASE}/include \
|
|
|
|
XCFLAGS='${CFLAGS}' \
|
|
|
|
XLIBS='Xt SM ICE Xext X11' \
|
|
|
|
XLIBDIRS=-L${X11BASE}/lib \
|
|
|
|
GLOBJDIR=./objects \
|
|
|
|
GLGENDIR=./objects \
|
|
|
|
PSOBJDIR=./objects \
|
|
|
|
PSGENDIR=./objects \
|
2000-02-19 19:57:18 -05:00
|
|
|
DEVICE_DEVS="`cat ${FILESDIR}/devices`"
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
|
|
|
|
|
2000-02-22 12:08:31 -05:00
|
|
|
MAKE_FILE= unixansi.mak
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
MAN1= gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 ps2ps.1
|
|
|
|
|
|
|
|
GS_SOURCES= gnu-gs-5.50.tar.gz
|
|
|
|
# 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.
|
|
|
|
GS_FONTS_STD= gnu-gs-fonts-std-5.50.tar.gz
|
|
|
|
GS_FONTS_OTHER= gnu-gs-fonts-other-5.50.tar.gz
|
|
|
|
|
|
|
|
# Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
|
|
|
|
HP850_DRV= hp8xxs13.zip
|
|
|
|
|
|
|
|
# The pdf_sec.ps non-stub version has been moved to a separate package
|
|
|
|
|
|
|
|
.if defined(A4)
|
|
|
|
CFLAGS+= -DA4
|
|
|
|
PKGNAME=${DISTNAME}-A4
|
|
|
|
.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
|
|
|
|
|
|
|
|
post-extract:
|
2000-03-05 13:30:21 -05:00
|
|
|
ln -s `cd ${PORTSDIR} && cd ${JPEGDIR} && make show VARNAME=WRKDIST` ${WRKSRC}/jpeg
|
|
|
|
ln -s `cd ${PORTSDIR} && cd ${PNGDIR} && make show VARNAME=WRKDIST` ${WRKSRC}/libpng
|
New ghostscript port, living in a subdir.
Important changes:
- prodded by Nikolay Sturm to do the upgrade,
- Gnu-ghostscript is now 5.50, packaging changed slightly,
- most patches have been integrated,
- use MAKE_FLAGS to remove Makefile patches and gnu-make dependency,
- pull pdf_encrypt out from the main package so that gs can be distributed
on CD-Rom,
- simplify DEVICE_DEVS (get list from NetBSD), removed interactive script
for now, as it wasn't reliably upgraded,
- infrastructure allows for Aladdin ghostscript along-side.
2000-02-19 12:40:42 -05:00
|
|
|
cd ${WRKSRC} && unzip -Lao ${FULLDISTDIR}/${HP850_DRV} -x devs.mak
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
mkdir -p ${WRKSRC}/objects
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/ghostscript
|
|
|
|
@${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
|
|
|
|
@${INSTALL_MAN_DIR} ${PREFIX}/man/man1
|
|
|
|
cd ${PREFIX}/share/ghostscript && \
|
|
|
|
tar xzf ${FULLDISTDIR}/${GS_FONTS_STD}
|
|
|
|
cd ${PREFIX}/share/ghostscript/fonts && \
|
|
|
|
tar xzf ${FULLDISTDIR}/${GS_FONTS_OTHER}
|
|
|
|
|
|
|
|
# install the readme and license file of the hp8xxx driver as well
|
|
|
|
post-install:
|
|
|
|
strip ${PREFIX}/bin/gs
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/unix-lpr.sh ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lprsetup.sh ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/license.hp8 \
|
|
|
|
${PREFIX}/share/ghostscript/5.50/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.hp8 \
|
|
|
|
${PREFIX}/share/ghostscript/5.50/doc
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|