1997-06-11 08:20:47 +02: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 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1997-06-11 08:20:47 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 19:50:59 +02:00
|
|
|
PORTNAME= ghostscript
|
2001-11-04 08:35:38 +01:00
|
|
|
PORTVERSION= 6.52
|
2002-02-01 15:07:17 +01:00
|
|
|
PORTREVISION= 5
|
1997-06-11 08:20:47 +02:00
|
|
|
CATEGORIES= print
|
2002-04-02 23:38:47 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:S/$/:fonts/} \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:S/$/:DEFAULT,gimp_print,hpijs/} \
|
2002-03-09 01:27:21 +01:00
|
|
|
http://members.ozemail.com.au/~geoffk/pdfencrypt/:pdf \
|
|
|
|
http://www.gelhaus.net/hp880c/1.4beta/:gdevcd \
|
|
|
|
http://home.t-online.de/home/Martin.Lottermoser/pcl3dist/:hpdj_pcl3 \
|
|
|
|
http://www.harsch.net/Download/:gdevdj \
|
2001-11-04 08:35:38 +01:00
|
|
|
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs652/ \
|
2002-04-02 23:38:47 +02:00
|
|
|
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/:fonts \
|
2002-04-03 22:49:37 +02:00
|
|
|
ftp://gatekeeper.dec.com/pub/GNU/ghostscript/:gatekeeper,DEFAULT,fonts,gimp_print,hpijs
|
2002-04-02 23:38:47 +02:00
|
|
|
# gatekeeper is an exception, it is the only GNU site which carries
|
|
|
|
# some of the other files, so add it although it is listed inside
|
|
|
|
# MASTER_SITE_GNU
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME} gimp-print/:gimp_print hpinkjet/:hpijs
|
2001-09-27 20:03:32 +02:00
|
|
|
PKGNAMESUFFIX= -gnu
|
2002-04-03 22:49:37 +02:00
|
|
|
DISTFILES= ${GS_SOURCES}:DEFAULT \
|
2002-04-02 23:38:47 +02:00
|
|
|
${GS_FONTS_STD}:fonts \
|
2002-04-03 22:49:37 +02:00
|
|
|
${GS_FONTS_OTHER}:fonts \
|
2002-03-09 01:27:21 +01:00
|
|
|
${DECRYPT_PDF}:pdf \
|
|
|
|
${HP8XX_DRV}:gdevcd \
|
|
|
|
${HPDJ_SRC}:hpdj_pcl3 \
|
|
|
|
${PCL3_SRC}:hpdj_pcl3 \
|
|
|
|
${HP970_DRV}:gdevdj \
|
2002-04-03 22:49:37 +02:00
|
|
|
${GPRINT_SRC}:gimp_print \
|
|
|
|
${HPIJS_SRC}:hpijs
|
2001-09-27 20:03:32 +02:00
|
|
|
DIST_SUBDIR= ghostscript
|
2000-08-24 23:20:30 +02:00
|
|
|
EXTRACT_ONLY= ${GS_SOURCES}
|
1998-12-03 09:24:21 +01:00
|
|
|
|
2001-07-06 12:35:32 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract
|
2001-09-11 04:59:20 +02:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2001-12-27 17:47:06 +01:00
|
|
|
MAKE_ENV= CC="${CC}" CXX="${CXX}" XCFLAGS="${XCFLAGS}"
|
2001-09-11 21:12:20 +02:00
|
|
|
MAKEFILE= src/unix-gcc.mak
|
2001-12-27 17:47:06 +01:00
|
|
|
ALL_TARGET= all pcl3opts
|
2001-09-11 21:12:20 +02:00
|
|
|
PLIST_SUB= GS_VERSION=${PORTVERSION}
|
2001-06-20 07:11:51 +02:00
|
|
|
|
2001-12-27 17:47:06 +01:00
|
|
|
MAN1= dvipdf.1 eps2eps.1 font2c.1 gs-hpdj.1 gs-pcl3.1 \
|
2001-09-11 21:12:20 +02:00
|
|
|
gs.1 gslp.1 gsnd.1 pcl3opts.1 pdf2dsc.1 pdf2ps.1 pdfopt.1 \
|
|
|
|
pf2afm.1 pfbtopfa.1 printafm.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 \
|
|
|
|
ps2pdfwr.1 ps2ps.1 wftopfa.1
|
|
|
|
MLINKS= gslp.1 gsbj.1 \
|
|
|
|
gslp.1 gsdj.1 \
|
|
|
|
gslp.1 gsdj500.1 \
|
|
|
|
gslp.1 gslj.1 \
|
|
|
|
ps2pdf.1 ps2pdf12.1 \
|
|
|
|
ps2pdf.1 ps2pdf13.1
|
2000-08-24 23:20:30 +02:00
|
|
|
|
2001-12-27 17:47:06 +01:00
|
|
|
XCFLAGS= -DUPD_SIGNAL=0
|
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
.if defined(A4)
|
2001-12-27 17:47:06 +01:00
|
|
|
XCFLAGS+= -DA4
|
2001-09-11 21:12:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_X11)
|
2000-08-24 23:20:30 +02:00
|
|
|
USE_XLIB= yes
|
2001-09-11 21:12:20 +02:00
|
|
|
.else
|
2001-09-27 20:03:32 +02:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11
|
2001-10-06 19:24:19 +02:00
|
|
|
MAKE_ENV+= WITHOUT_X11="${WITHOUT_X11}"
|
2001-09-11 21:12:20 +02:00
|
|
|
.endif
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
GS_SOURCES= ${DISTNAME}${EXTRACT_SUFX}
|
1997-06-11 08:20:47 +02: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 23:20:30 +02: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 08:20:47 +02:00
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
# Additional Drivers:
|
|
|
|
|
|
|
|
# Ghostscript Driver for HP DeskJet 812C/815C/832C/880C/882C/895C
|
|
|
|
# http://www.gelhaus.net/hp880c/
|
|
|
|
HP8XX= cdj880
|
|
|
|
HP8XX_DRV= gdevcd8.tar.gz
|
|
|
|
|
|
|
|
# HPDJ, additional driver for HP PCL3 Printers, by Martin Lottermoser
|
|
|
|
# still present, just for the case pcl3 is missing some hpdj feature
|
|
|
|
# http://home.t-online.de/home/Martin.Lottermoser/pcl3.html
|
|
|
|
HPDJ= hpdj
|
|
|
|
HPDJ_VERS= 2.6
|
|
|
|
HPDJ_NAME= ${HPDJ}-${HPDJ_VERS}
|
|
|
|
HPDJ_SRC= ${HPDJ_NAME}.tar.gz
|
|
|
|
HPDJ_MAN1= gs-hpdj.1
|
|
|
|
|
|
|
|
# PCL3 (hpdj successor now in RELEASE quality)
|
|
|
|
# additional driver for HP PCL3 Printers, by Martin Lottermoser
|
|
|
|
# http://home.t-online.de/home/Martin.Lottermoser/pcl3.html
|
|
|
|
PCL3= pcl3
|
2001-11-04 08:35:38 +01:00
|
|
|
PCL3_VERS= 3.3
|
2001-09-11 21:12:20 +02:00
|
|
|
PCL3_NAME= ${PCL3}-${PCL3_VERS}
|
|
|
|
PCL3_SRC= ${PCL3_NAME}.tar.gz
|
|
|
|
PCL3_MAN1= gs-pcl3.1 pcl3opts.1
|
|
|
|
|
|
|
|
# additional driver for HP DeskJet 970, supports duplex printing
|
|
|
|
# http://www.harsch.net/Ghostscript/ghostscript.html
|
|
|
|
HP970_DRV= gdevdj9.c.gz
|
|
|
|
|
2002-01-22 04:08:18 +01:00
|
|
|
# Gimp-Print - very high quality driver for Epson, HPs,...
|
2001-09-11 21:12:20 +02:00
|
|
|
# http://gimp-print.sourceforge.net/
|
2001-12-27 17:47:06 +01:00
|
|
|
GPRINT= gimp-print
|
|
|
|
GPRINT_VERS= 4.2.0
|
2001-09-11 21:12:20 +02:00
|
|
|
GPRINT_NAME= ${GPRINT}-${GPRINT_VERS}
|
|
|
|
GPRINT_SRC= ${GPRINT_NAME}.tar.gz
|
|
|
|
|
|
|
|
# HPinkjet - HP developed printer driver for PhotoSmart/DeskJet series
|
|
|
|
# http://hpinkjet.sourceforge.net/
|
|
|
|
HPIJS= hpijs
|
2002-01-22 04:08:18 +01:00
|
|
|
HPIJS_VERS= 1.0.2
|
2001-12-27 17:47:06 +01:00
|
|
|
HPIJS_NAME= ${HPIJS}-${HPIJS_VERS}
|
2001-09-11 21:12:20 +02:00
|
|
|
HPIJS_SRC= ${HPIJS_NAME}.tar.gz
|
|
|
|
|
|
|
|
# contributed uniprint profiles
|
|
|
|
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \
|
|
|
|
stc740ih.upp stc740p.upp stc740pl.upp
|
1997-08-27 08:52:44 +02:00
|
|
|
|
2000-09-11 21:07:36 +02:00
|
|
|
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
|
|
|
|
DECRYPT_PDF= pdf_sec.ps
|
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
.SILENT:
|
|
|
|
|
2001-09-11 22:18:29 +02:00
|
|
|
pre-everything::
|
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 11:36:31 +02:00
|
|
|
.if !defined(A4)
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} "Type \"make A4=yes\" if you want -DA4 for compilation."
|
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 11:36:31 +02:00
|
|
|
.else
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} "Using -DA4 for compilation."
|
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 11:36:31 +02:00
|
|
|
.endif
|
|
|
|
|
1997-06-11 08:20:47 +02:00
|
|
|
post-extract:
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> in post-extract ..."
|
2002-01-01 15:07:39 +01:00
|
|
|
${LN} -sf `cd ${PORTSDIR}/graphics/jpeg && ${MAKE} -V WRKSRC` \
|
2001-09-11 21:12:20 +02:00
|
|
|
${WRKSRC}/jpeg
|
|
|
|
# ** 3rd party driver **
|
|
|
|
# Note: don't forget to add those devices in scripts/configure and
|
|
|
|
# configure.batch, which update unix-gcc.mak to build gs with these
|
|
|
|
# new devices !
|
|
|
|
#
|
|
|
|
# for HP8XX driver
|
|
|
|
${ECHO_MSG} ">>> extracting ${HP8XX_DRV} ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${HP8XX_DRV}
|
2001-09-11 21:12:20 +02:00
|
|
|
# for HPDJ driver
|
|
|
|
${ECHO_MSG} ">>> extracting ${HPDJ_SRC} ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${HPDJ_SRC}
|
2001-09-11 21:12:20 +02:00
|
|
|
${TAR} -C ${WRKSRC}/src -xf ${WRKSRC}/${HPDJ_NAME}/${HPDJ}.tar
|
|
|
|
# for PCL3 driver
|
|
|
|
${ECHO_MSG} ">>> extracting ${PCL3_SRC} ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${PCL3_SRC}
|
2001-09-11 21:12:20 +02:00
|
|
|
${LN} -sf ${PCL3_NAME} ${WRKSRC}/pcl3
|
|
|
|
${TAR} -C ${WRKSRC}/${PCL3_NAME} -xf \
|
|
|
|
${WRKSRC}/${PCL3_NAME}/${PCL3}.tar
|
|
|
|
# for HP DeskJet 970 driver
|
|
|
|
${ECHO_MSG} ">>> extracting ${HP970_DRV} ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/${HP970_DRV} ${WRKSRC}/src
|
2001-09-11 21:12:20 +02:00
|
|
|
${GUNZIP_CMD} ${WRKSRC}/src/${HP970_DRV}
|
2001-12-27 17:47:06 +01:00
|
|
|
# for Gimp-Print driver
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${GPRINT_SRC} ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GPRINT_SRC}
|
2001-09-11 21:12:20 +02:00
|
|
|
# for HPinkjet driver
|
|
|
|
${ECHO_MSG} ">>> extracting ${HPIJS_SRC} ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${HPIJS_SRC}
|
2001-09-11 21:12:20 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${PERL} -pi -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
|
|
|
${WRKSRC}/src/unix-gcc.mak
|
|
|
|
# for HPinkjet driver
|
2002-01-19 05:28:19 +01:00
|
|
|
${PERL} -pi -e 's|CFLAGS="-O2 -Wall"|CFLAGS="\$$CFLAGS"|g ; \
|
|
|
|
s|CXXFLAGS="-O2 -Wall"|CXXFLAGS="\$$CXXFLAGS"|g' \
|
|
|
|
${WRKSRC}/${HPIJS_NAME}/configure
|
2002-01-22 04:08:18 +01:00
|
|
|
${PERL} -pi -e 's|#include <malloc.h>||g' \
|
|
|
|
${WRKSRC}/${HPIJS_NAME}/platform.h
|
2001-09-11 21:12:20 +02:00
|
|
|
|
|
|
|
# here we apply the modifications necessary to build the 3rd party drivers
|
|
|
|
# advantage: you see unmodified makefiles after a pure make extract
|
|
|
|
pre-configure:
|
|
|
|
${ECHO_MSG} ">>> in pre-configure ..."
|
|
|
|
# for HPDJ driver
|
|
|
|
${ECHO_MSG} ">>> adding ${HPDJ} driver to contrib.mak ..."
|
|
|
|
${CAT} ${WRKSRC}/src/contrib.mak-5.94.add \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for PCL3 driver
|
|
|
|
${ECHO_MSG} ">>> adding ${PCL3} driver to contrib.mak ..."
|
2001-11-04 08:35:38 +01:00
|
|
|
${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-6.51.add \
|
2001-09-11 21:12:20 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2001-12-27 17:47:06 +01:00
|
|
|
# for Gimp-Print driver
|
|
|
|
${ECHO_MSG} ">>> adding ${GPRINT} driver to contrib.mak ..."
|
|
|
|
${CAT} ${FILESDIR}/stp.contrib.mak \
|
2001-09-11 21:12:20 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for HPinkjet driver
|
|
|
|
${ECHO_MSG} ">>> adding ${HPIJS} driver to contrib.mak ..."
|
|
|
|
${CAT} ${FILESDIR}/hpijs.contrib.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
1997-06-11 08:20:47 +02:00
|
|
|
|
|
|
|
do-configure:
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> in do-configure ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
2001-09-11 21:12:20 +02:00
|
|
|
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.batch
|
1997-06-11 08:20:47 +02:00
|
|
|
.else
|
2001-09-11 21:12:20 +02:00
|
|
|
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
|
1997-06-11 08:20:47 +02:00
|
|
|
.endif
|
|
|
|
|
2001-12-27 17:47:06 +01:00
|
|
|
post-configure:
|
|
|
|
${ECHO_MSG} ">>> in post-configure ..."
|
|
|
|
# for Gimp-Print driver
|
|
|
|
${ECHO_MSG} ">>> running configure script for ${GPRINT} driver ..."
|
|
|
|
cd ${WRKSRC}/${GPRINT_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./configure \
|
|
|
|
--without-cups --without-translated-ppds \
|
|
|
|
--with-ghost --without-foomatic \
|
|
|
|
--without-gimp --without-samples \
|
|
|
|
--without-user-guide --disable-escputil \
|
|
|
|
--disable-nls --disable-shared \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
# for HPinkjet driver
|
|
|
|
${ECHO_MSG} ">>> running configure script for ${HPIJS} driver ..."
|
|
|
|
cd ${WRKSRC}/${HPIJS_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./configure \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
|
1998-12-03 09:24:21 +01:00
|
|
|
pre-build:
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> in pre-build ..."
|
|
|
|
${ECHO_MSG} ">>> creating directories for compilation ..."
|
1998-12-03 09:24:21 +01:00
|
|
|
${MKDIR} ${WRKSRC}/obj
|
2001-09-11 21:12:20 +02:00
|
|
|
${MKDIR} ${WRKSRC}/bin
|
2001-12-27 17:47:06 +01:00
|
|
|
# for Gimp-Print driver
|
|
|
|
${ECHO_MSG} ">>> building ${GPRINT} library ..."
|
|
|
|
cd ${WRKSRC}/${GPRINT_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
|
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${GPRINT} ..."
|
|
|
|
${LN} -sf ${WRKSRC}/${GPRINT_NAME}/include/gimp-print \
|
|
|
|
${WRKSRC}/src
|
|
|
|
${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/ghost/*.[ch] \
|
|
|
|
${WRKSRC}/src
|
|
|
|
${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/main/.libs/libgimpprint.a \
|
|
|
|
${WRKSRC}/obj
|
2001-09-11 21:12:20 +02:00
|
|
|
# for HPinkjet driver
|
2001-12-27 17:47:06 +01:00
|
|
|
${ECHO_MSG} ">>> building ${HPIJS} server ..."
|
2001-09-11 21:12:20 +02:00
|
|
|
cd ${WRKSRC}/${HPIJS_NAME} ; \
|
2001-12-27 17:47:06 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
|
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${HPIJS} ..."
|
|
|
|
.for file in gdevijs.[ch] ijs.[ch] ijs_client.[ch] ijs_exec_unix.c unistd_.h
|
|
|
|
${LN} -sf ${WRKSRC}/${HPIJS_NAME}/${file} \
|
|
|
|
${WRKSRC}/src
|
|
|
|
.endfor
|
1998-12-03 09:24:21 +01:00
|
|
|
|
1997-06-11 08:20:47 +02:00
|
|
|
pre-install:
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> in pre-install ..."
|
|
|
|
${ECHO_MSG} ">>> creating ghostscript destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ghostscript fonts..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${TAR} -C ${DATADIR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GS_FONTS_STD}
|
|
|
|
${TAR} -C ${DATADIR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GS_FONTS_OTHER}
|
1997-06-11 08:20:47 +02:00
|
|
|
|
|
|
|
post-install:
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> in post-install ..."
|
|
|
|
${ECHO_MSG} ">>> stripping gs ..."
|
1997-06-11 08:20:47 +02:00
|
|
|
strip ${PREFIX}/bin/gs
|
2001-09-11 21:12:20 +02:00
|
|
|
# for HPDJ driver
|
|
|
|
${ECHO_MSG} ">>> installing ${HPDJ} manpages ..."
|
|
|
|
.for i in ${HPDJ_MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/${i} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
${ECHO_MSG} ">>> creating ${HPDJ} destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DATADIR}/${PORTVERSION}/hpdj
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> installing files in ${HPDJ} destdir ..."
|
|
|
|
.for i in README.hpdj example.mdf margins-A4.ps margins-A4Rotated.ps \
|
|
|
|
margins-Letter.ps margins-LetterRotated.ps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DATADIR}/${PORTVERSION}/hpdj
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
# for PCL3 driver
|
2001-11-04 08:35:38 +01:00
|
|
|
${ECHO_MSG} ">>> installing ${PCL3} manpages ..."
|
2001-09-11 21:12:20 +02:00
|
|
|
.for i in ${PCL3_MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PCL3_NAME}/doc/${i} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
# other pcl3 stuff, which might be interesting for runtime
|
|
|
|
${ECHO_MSG} ">>> creating ${PCL3} destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DATADIR}/${PORTVERSION}/pcl3
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> installing files in ${PCL3} destdir ..."
|
|
|
|
.for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
|
|
|
|
ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
|
|
|
|
ps/margins-A4Rotated.ps ps/margins-Env10Rotated.ps \
|
|
|
|
ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
|
|
|
|
ps/margins-LetterRotated.ps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DATADIR}/${PORTVERSION}/pcl3
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
2001-12-27 17:47:06 +01:00
|
|
|
# for Gimp-Print driver
|
|
|
|
${ECHO_MSG} ">>> creating ${GPRINT} destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DATADIR}/${PORTVERSION}/gimp-print
|
2001-12-27 17:47:06 +01:00
|
|
|
${ECHO_MSG} ">>> installing files in ${GPRINT} destdir ..."
|
2001-09-11 21:12:20 +02:00
|
|
|
.for i in README
|
2001-12-27 17:47:06 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${GPRINT_NAME}/src/ghost/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DATADIR}/${PORTVERSION}/gimp-print
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
# for HPinkjet driver
|
2001-12-27 17:47:06 +01:00
|
|
|
${ECHO_MSG} ">>> installing ${HPIJS} server in bindir ..."
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${HPIJS_NAME}/hpijs ${PREFIX}/bin
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> creating ${HPIJS} destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DATADIR}/${PORTVERSION}/hpijs
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> installing files in ${HPIJS} destdir ..."
|
2001-12-27 17:47:06 +01:00
|
|
|
.for i in hpijs_readme.html gs_hpijs.png printerdb_append append_db.sh
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${HPIJS_NAME}/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DATADIR}/${PORTVERSION}/hpijs
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
# contributed UPP driver
|
|
|
|
${ECHO_MSG} ">>> installing contributed UPP profiles ..."
|
|
|
|
.for i in ${CONTRIB_UPP}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DATADIR}/${PORTVERSION}/lib
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
# for reading encrypted PDFs
|
|
|
|
${ECHO_MSG} ">>> installing support for encrypted PDF files ..."
|
2001-10-12 06:02:59 +02:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DECRYPT_PDF} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DATADIR}/${PORTVERSION}/lib
|
2001-09-11 21:12:20 +02:00
|
|
|
#
|
|
|
|
# now NOPORTDOCS dependend stuff
|
|
|
|
#
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${ECHO_MSG} ">>> installing PORTDOC stuff ..."
|
|
|
|
# install hpdj docu, not necessary for runtime
|
|
|
|
# note: old hpdj driver has its files in ${WRKSRC}/src
|
|
|
|
${ECHO_MSG} ">>> creating ${HPDJ} docu destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${PORTVERSION}/hpdj
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> installing files in ${HPDJ} docu destdir ..."
|
|
|
|
.for i in NEWS hpdj.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DOCSDIR}/${PORTVERSION}/hpdj
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
# install pcl3 docu, not necessary for runtime
|
|
|
|
# note: new pcl3 driver has a subdir of its own
|
|
|
|
${ECHO_MSG} ">>> creating ${PCL3} docu destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${PORTVERSION}/pcl3
|
2001-09-11 21:12:20 +02:00
|
|
|
${ECHO_MSG} ">>> installing files in ${PCL3} docu destdir ..."
|
|
|
|
.for i in NEWS doc/gs-pcl3.html doc/how-to-report.txt doc/pcl3opts.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
|
2001-10-06 19:24:19 +02:00
|
|
|
${DOCSDIR}/${PORTVERSION}/pcl3
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
${ECHO_MSG} "> post-installation tasks completed."
|
|
|
|
|
2001-10-06 19:24:19 +02:00
|
|
|
.include <bsd.port.mk>
|