1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/print/ghostscript8/Makefile

96 lines
3.0 KiB
Makefile
Raw Normal View History

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>
#
1999-08-31 01:53:22 +00:00
# $FreeBSD$
1997-06-11 06:20:47 +00:00
#
1998-12-03 08:24:21 +00:00
DISTNAME= ghostscript-5.50
1997-06-11 06:20:47 +00:00
CATEGORIES= print
1998-12-03 08:24:21 +00:00
MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ \
http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/ \
http://www.ozemail.com.au/~geoffk/pdfencrypt/
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
${HP850_DRV} ${DECRYPT_PDF}
1998-12-03 08:24:21 +00:00
MAINTAINER= andreas@FreeBSD.org
1997-06-11 06:20:47 +00:00
Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract \
/nonexistent:${PORTSDIR}/graphics/png:extract \
unzip:${PORTSDIR}/archivers/unzip
1999-01-23 07:05:35 +00:00
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
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
EXTRACT_ONLY= ${GS_SOURCES}
1998-12-03 08:24:21 +00:00
WRKSRC= ${WRKDIR}/gs5.50
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
1998-12-03 08:24:21 +00:00
GS_SOURCES= ghostscript-5.50.tar.gz
GS_SOURCES+= ghostscript-5.50gnu.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.
GS_FONTS_STD= ghostscript-fonts-std-5.50.tar.gz
1999-01-04 03:36:01 +00:00
GS_FONTS_OTHER= ghostscript-fonts-other-5.50.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
HP850_DRV= hp8xxs13.zip
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
DECRYPT_PDF= pdf_sec.ps
.if defined(A4)
1997-06-11 06:20:47 +00:00
CFLAGS+= -DA4
.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:
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/png/work/libpng-* ${WRKSRC}/libpng
1998-12-03 08:24:21 +00:00
${MV} ${WRKSRC}/devs.mak ${WRKSRC}/devs.mak.bak
cd ${WRKSRC} && unzip -Lao ${DISTDIR}/${HP850_DRV}
1998-12-03 08:24:21 +00:00
${MV} ${WRKSRC}/devs.mak.bak ${WRKSRC}/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:
@${MKDIR} ${PREFIX}/share/ghostscript ${PREFIX}/bin ${PREFIX}/man/man1
(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
# 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
${INSTALL_SCRIPT} ${WRKSRC}/unix-lpr.sh ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/lprsetup.sh ${PREFIX}/bin
${INSTALL_DATA} ${DISTDIR}/${DECRYPT_PDF} \
1998-12-03 08:24:21 +00:00
${PREFIX}/share/ghostscript/5.50
${INSTALL_DATA} ${WRKSRC}/license.hp8 \
1998-12-03 08:24:21 +00:00
${PREFIX}/share/ghostscript/5.50/doc
${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>