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
|
2003-04-28 01:09:13 +02:00
|
|
|
PORTVERSION= ${GS_VERSION}
|
2004-06-27 20:13:39 +02:00
|
|
|
PORTREVISION= ${GS_REVISION}
|
|
|
|
PORTEPOCH= ${GS_EPOCH}
|
1997-06-11 08:20:47 +02:00
|
|
|
CATEGORIES= print
|
2004-01-12 15:34:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gprint,bjc250/} \
|
|
|
|
http://www.gelhaus.net/hp880c/1.4beta/:hp8xx \
|
2005-11-22 17:42:32 +01:00
|
|
|
http://home.vrweb.de/~martin.lottermoser/pcl3dist/:pcl3 \
|
2002-04-04 04:03:09 +02:00
|
|
|
http://www.harsch.net/Download/:dj970 \
|
2005-06-08 12:54:11 +02:00
|
|
|
http://www33.ocn.ne.jp/~higamasa/gdevmd2k/:md2k \
|
2002-08-06 22:34:09 +02:00
|
|
|
${MASTER_SITE_PORTS_JP:S/$/:ports_jp,ports_jp_gs/} \
|
2003-04-28 01:09:13 +02:00
|
|
|
ftp://download.canon-sales.co.jp/pub/driver/lasershot/linux/:cpca \
|
2002-08-06 22:34:09 +02:00
|
|
|
http://www.ucatv.ne.jp/~taeko/software/gs/:lips \
|
2002-04-04 04:03:09 +02:00
|
|
|
http://www.humblesoft.com/pub/:epag \
|
2004-05-09 20:26:18 +02:00
|
|
|
http://www.epkowa3.on.arena.ne.jp/gslpd/data/V${EPLASER_VERS:S/.//g}/:eplaser \
|
2002-04-20 17:38:25 +02:00
|
|
|
http://www.linuxprinting.org/download/printing/samsung-gdi/:gdi \
|
2003-06-08 22:02:23 +02:00
|
|
|
http://www.linuxprinting.org/download/printing/:lxm3200 \
|
|
|
|
http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \
|
2003-04-28 01:09:13 +02:00
|
|
|
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs${GS_VERSION:S/.//}/:gs_srcs
|
2004-01-12 15:34:03 +01:00
|
|
|
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
|
2002-08-20 02:15:59 +02:00
|
|
|
gimp-print/:gprint \
|
2002-08-17 23:36:29 +02:00
|
|
|
bjc250gs/:bjc250 \
|
2002-08-06 22:34:09 +02:00
|
|
|
./:ports_jp
|
2001-09-27 20:03:32 +02:00
|
|
|
PKGNAMESUFFIX= -gnu
|
2002-08-06 22:34:09 +02:00
|
|
|
DISTFILES= ${GS_SRCS}:gs_srcs \
|
2004-01-12 15:34:03 +01:00
|
|
|
${HP8XX_SRCS}:hp8xx \
|
2005-06-08 12:54:11 +02:00
|
|
|
${PCL3_SRCS}:pcl3 \
|
2002-04-04 04:03:09 +02:00
|
|
|
${DJ970_SRCS}:dj970 \
|
2002-08-20 02:15:59 +02:00
|
|
|
${GPRINT_SRCS}:gprint \
|
2002-04-04 04:03:09 +02:00
|
|
|
${MD2K_SRCS}:md2k \
|
2002-08-06 22:34:09 +02:00
|
|
|
${ALPS_SRCS}:ports_jp_gs \
|
|
|
|
${BJ10V_SRCS}:ports_jp_gs \
|
2002-08-17 23:36:29 +02:00
|
|
|
${BJC250_SRCS}:bjc250 \
|
2003-04-28 01:09:13 +02:00
|
|
|
${CPCA_SRCS}:cpca \
|
2002-08-06 22:34:09 +02:00
|
|
|
${LIPS_SRCS}:lips \
|
|
|
|
${DMPRT_SRCS}:ports_jp_gs \
|
2002-04-04 04:03:09 +02:00
|
|
|
${EPAG_SRCS}:epag \
|
|
|
|
${EPLASER_SRCS}:eplaser \
|
|
|
|
${MJC_SRCS}:ports_jp \
|
2003-06-08 22:02:23 +02:00
|
|
|
${GDI_SRCS}:gdi \
|
|
|
|
${LXM3200_SRCS}:lxm3200 \
|
|
|
|
${LX5000_SRCS}:lx5000 \
|
|
|
|
${LEX7000_SRCS}:lx5000
|
2001-09-27 20:03:32 +02:00
|
|
|
DIST_SUBDIR= ghostscript
|
2002-04-04 04:03:09 +02:00
|
|
|
EXTRACT_ONLY= ${GS_SRCS}
|
1998-12-03 09:24:21 +01:00
|
|
|
|
2001-07-06 12:35:32 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= GNU Postscript interpreter
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2002-04-27 20:27:56 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2004-06-17 10:18:55 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2005-06-08 12:54:11 +02:00
|
|
|
# normazile WRKSRC so things like cups-pstoraster may work
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2004-10-16 09:28:34 +02:00
|
|
|
CONFLICTS= ghostscript-afpl* ghostscript-gpl*
|
2001-09-11 21:12:20 +02:00
|
|
|
USE_BZIP2= yes
|
2002-08-06 22:34:09 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-09-11 21:12:20 +02:00
|
|
|
USE_GMAKE= yes
|
2002-04-04 04:03:09 +02:00
|
|
|
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \
|
2003-06-08 22:02:23 +02:00
|
|
|
XCFLAGS="${XCFLAGS}"
|
|
|
|
PLIST_SUB= GS_VERSION="${GS_VERSION}"
|
2001-06-20 07:11:51 +02:00
|
|
|
|
2003-06-08 22:02:23 +02:00
|
|
|
SCRIPTS_ENV= GS_DRIVERS_LIST="${GS_DRIVERS_LIST}" \
|
|
|
|
WITHOUT_X11="${WITHOUT_X11}" \
|
|
|
|
WITH_SVGALIB="${WITH_SVGALIB}"
|
2003-04-28 01:09:13 +02:00
|
|
|
|
|
|
|
MAN1= ansi2knr.1 dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.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
|
2001-09-11 21:12:20 +02:00
|
|
|
MLINKS= gslp.1 gsbj.1 \
|
|
|
|
gslp.1 gsdj.1 \
|
|
|
|
gslp.1 gsdj500.1 \
|
|
|
|
gslp.1 gslj.1 \
|
|
|
|
ps2pdf.1 ps2pdf12.1 \
|
2002-04-27 20:27:56 +02:00
|
|
|
ps2pdf.1 ps2pdf13.1 \
|
|
|
|
ps2ps.1 eps2eps.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
|
|
|
|
|
2003-04-28 01:09:13 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
2001-09-27 20:03:32 +02:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11
|
2005-12-28 00:58:21 +01:00
|
|
|
CONFLICTS+= ghostscript-gnu-[0-9]*
|
2003-04-28 01:09:13 +02:00
|
|
|
.else
|
|
|
|
USE_XLIB= yes
|
2005-12-28 00:58:21 +01:00
|
|
|
CONFLICTS+= ghostscript-gnu-nox11-*
|
2001-09-11 21:12:20 +02:00
|
|
|
.endif
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2003-06-08 22:02:23 +02:00
|
|
|
.if defined(WITH_SVGALIB)
|
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
.endif
|
|
|
|
|
2002-04-27 20:27:56 +02:00
|
|
|
.if defined(WITH_SHLIB)
|
|
|
|
.undef WITHOUT_X11
|
2002-09-02 03:03:49 +02:00
|
|
|
USE_GNOME= gtk12
|
2002-04-27 20:27:56 +02:00
|
|
|
MAKE_ENV+= GS_SHLIB_VER="${SHLIB_VER}"
|
|
|
|
ALL_TARGET= so pcl3opts
|
|
|
|
INSTALL_TARGET= soinstall
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
SHLIB_VER= 1
|
|
|
|
PLIST_SUB+= SHLIB="" SHLIB_VER="${SHLIB_VER}"
|
|
|
|
.else
|
|
|
|
ALL_TARGET= all pcl3opts
|
|
|
|
PLIST_SUB+= SHLIB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-04-04 04:03:09 +02:00
|
|
|
GS_SRCS= ${DISTNAME}${EXTRACT_SUFX}
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
# Additional Drivers:
|
|
|
|
|
2004-01-12 15:34:03 +01:00
|
|
|
# HP8XX - additional driver for HP DeskJet 812C/815C/832C/880C/882C/895C
|
|
|
|
# http://www.gelhaus.net/hp880c/
|
|
|
|
HP8XX= cdj880
|
|
|
|
HP8XX_SRCS= gdevcd8.tar.gz
|
2001-09-11 21:12:20 +02:00
|
|
|
|
2005-06-08 12:54:11 +02:00
|
|
|
# PCL3 - additional driver for HP PCL3 printers, by Martin Lottermoser
|
2005-06-06 17:13:23 +02:00
|
|
|
# http://home.vrweb.de/martin.lottermoser/pcl3.html
|
2001-09-11 21:12:20 +02:00
|
|
|
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}
|
2002-04-04 04:03:09 +02:00
|
|
|
PCL3_SRCS= ${PCL3_NAME}.tar.gz
|
2001-09-11 21:12:20 +02:00
|
|
|
PCL3_MAN1= gs-pcl3.1 pcl3opts.1
|
2003-04-28 01:09:13 +02:00
|
|
|
MAN1+= ${PCL3_MAN1}
|
2001-09-11 21:12:20 +02:00
|
|
|
|
2002-04-04 04:03:09 +02:00
|
|
|
# DJ970 - additional driver for HP DeskJet 970, supports duplex printing
|
2001-09-11 21:12:20 +02:00
|
|
|
# http://www.harsch.net/Ghostscript/ghostscript.html
|
2002-04-04 04:03:09 +02:00
|
|
|
DJ970= gdevdj9
|
|
|
|
DJ970_SRCS= ${DJ970}.c.gz
|
2001-09-11 21:12:20 +02:00
|
|
|
|
2002-08-20 02:15:59 +02:00
|
|
|
# Gimp-Print - very high quality driver for Epson, HPs,...
|
|
|
|
# http://gimp-print.sourceforge.net/
|
|
|
|
#
|
|
|
|
# NOTE:
|
|
|
|
# Support of stp driver interface has already been discontinued, and using
|
|
|
|
# ijs driver with ijsgimpprint (part of print/gimp-print port) is highly
|
|
|
|
# recommended.
|
|
|
|
#
|
|
|
|
# For that reason, integlation of stp driver is disabled by default.
|
|
|
|
GPRINT= gimp-print
|
2005-01-24 21:21:14 +01:00
|
|
|
GPRINT_VERS= 4.2.7
|
2002-08-20 02:15:59 +02:00
|
|
|
GPRINT_NAME= ${GPRINT}-${GPRINT_VERS}
|
|
|
|
GPRINT_SRCS= ${GPRINT_NAME}.tar.gz
|
|
|
|
|
2002-04-04 04:03:09 +02:00
|
|
|
# MD2K - additional driver for Alps MD-2000/2010/4000/1300/1500/5000
|
2005-06-08 12:54:11 +02:00
|
|
|
# http://www33.ocn.ne.jp/~higamasa/gdevmd2k/
|
2002-04-04 04:03:09 +02:00
|
|
|
MD2K= md2k
|
|
|
|
MD2K_VERS= 0.2a
|
|
|
|
MD2K_NAME= gdevmd2k-${MD2K_VERS}
|
|
|
|
MD2K_SRCS= ${MD2K_NAME}.tar.gz
|
|
|
|
|
|
|
|
# ALPS - additional driver for Alps MD-5000
|
|
|
|
ALPS= alps
|
|
|
|
ALPS_VERS= 0.2
|
|
|
|
ALPS_NAME= gdevalps-${ALPS_VERS}
|
|
|
|
ALPS_SRCS= gdevalps-0.21.tar.gz
|
|
|
|
|
|
|
|
# BJ10V - additional driver for Canon BJ-10V
|
|
|
|
BJ10V= bj10v
|
|
|
|
BJ10V_NAME= gdev10v
|
|
|
|
BJ10V_SRCS= ${BJ10V_NAME}.tar.gz
|
|
|
|
|
2002-08-17 23:36:29 +02:00
|
|
|
# BJC250 - additional driver for Canon BJC-210/240/250/265/1000
|
|
|
|
# http://bjc250gs.sourceforge.net/
|
|
|
|
BJC250= bjc250
|
|
|
|
BJC250_VERS= 0.756
|
|
|
|
BJC250_NAME= ${BJC250}-v${BJC250_VERS}
|
|
|
|
BJC250_SRCS= gs7.05-${BJC250_NAME}.diff.gz
|
|
|
|
|
2003-04-28 01:09:13 +02:00
|
|
|
# CPCA - additional driver for Canon CPCA printers
|
|
|
|
# http://cweb.canon.jp/open-mie/technical/index-j.html
|
|
|
|
CPCA= cpca
|
|
|
|
CPCA_VERS= 1.0.0
|
|
|
|
CPCA_NAME= canon-lips4-${CPCA_VERS}
|
|
|
|
CPCA_SRCS= ${CPCA_NAME}-651.tgz
|
|
|
|
|
2002-04-04 04:03:09 +02:00
|
|
|
# LIPS - additional driver for Canon LIPS II+/III/IVc/IV printers
|
2002-08-06 22:34:09 +02:00
|
|
|
# http://www.ucatv.ne.jp/~taeko/software/gs/
|
2002-04-04 04:03:09 +02:00
|
|
|
LIPS= lips
|
|
|
|
LIPS_VERS= 2.4.0
|
|
|
|
LIPS_NAME= gdevlips-${LIPS_VERS}
|
|
|
|
LIPS_SRCS= ${LIPS_NAME}.tar.gz
|
|
|
|
|
|
|
|
# DMPRT - additional driver for generic dot matrix printers
|
|
|
|
DMPRT= dmprt
|
|
|
|
DMPRT_VERS= 2.01
|
|
|
|
DMPRT_NAME= ${DMPRT}-${DMPRT_VERS}
|
|
|
|
DMPRT_SRCS= ${DMPRT_NAME}.tar.gz
|
|
|
|
|
|
|
|
# EPAG - additional driver for Epson ESC/Page printers
|
2002-08-06 22:34:09 +02:00
|
|
|
# http://www.humblesoft.com/gdevepag.html
|
2002-04-04 04:03:09 +02:00
|
|
|
EPAG= epag
|
|
|
|
EPAG_VERS= 3.09
|
|
|
|
EPAG_NAME= ${EPAG}-${EPAG_VERS}
|
|
|
|
EPAG_SRCS= ${EPAG_NAME}.tar.gz
|
|
|
|
|
2005-06-08 12:54:11 +02:00
|
|
|
# EPLASER - additional driver for ESC/Page printers, by EPSON AVASYS Corp.
|
|
|
|
# http://www.avasys.jp/english/linux_e/index.html
|
2002-04-04 04:03:09 +02:00
|
|
|
EPLASER= eplaser
|
2004-06-27 20:13:39 +02:00
|
|
|
EPLASER_VERS= 3.1.4
|
2002-04-04 04:03:09 +02:00
|
|
|
EPLASER_NAME= ${EPLASER}-${EPLASER_VERS}
|
2003-09-27 04:35:24 +02:00
|
|
|
EPLASER_SRCS= ${EPLASER_NAME}-705.tgz
|
2002-04-04 04:03:09 +02:00
|
|
|
|
|
|
|
# MJC - additional driver for Epson MachJet series
|
|
|
|
MJC= mjc
|
|
|
|
MJC_VERS= 0.8
|
|
|
|
MJC_NAME= gdevmjc-${MJC_VERS}
|
|
|
|
MJC_SRCS= ${MJC_NAME}.tar.gz
|
|
|
|
|
|
|
|
# GDI - additional driver for Samsung SmartGDI laser printers
|
|
|
|
GDI= gdi
|
2002-08-06 22:34:09 +02:00
|
|
|
GDI_NAME= Samsung-SmartGDI-all-GS
|
2003-07-21 15:41:52 +02:00
|
|
|
GDI_SRCS= ${GDI_NAME}.orig.tar.gz
|
2001-09-11 21:12:20 +02:00
|
|
|
|
2003-06-08 22:02:23 +02:00
|
|
|
# LXM3200 - additional driver for Lexmark 3200/Z12/Z22/Z31/Z32
|
|
|
|
LXM3200= lxm3200
|
|
|
|
LXM3200_VERS= 20030501
|
|
|
|
LXM3200_NAME= ${LXM3200}-tweaked-${LXM3200_VERS}
|
|
|
|
LXM3200_SRCS= ${LXM3200_NAME}.tar.gz
|
|
|
|
|
|
|
|
# LX5000 - additional driver for Lexmark 5000/Z51/Z82
|
|
|
|
# http://homepage.powerup.com.au/~pbwest/lexmark/lexmark.html
|
|
|
|
LX5000= lx5000
|
|
|
|
LX5000_SRCS= gdevlx50.c
|
|
|
|
|
|
|
|
# LEX7000 - additional driver for Lexmark 2050/3200/5700/7000
|
|
|
|
# http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/
|
|
|
|
LEX7000= lex7000
|
|
|
|
LEX7000_SRCS= gs6.0.lexmark7000.patch
|
|
|
|
|
2001-09-11 21:12:20 +02:00
|
|
|
# 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
|
|
|
|
2004-06-27 20:13:39 +02:00
|
|
|
.include "Makefile.inc"
|
2003-06-08 22:02:23 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-07-21 15:41:52 +02:00
|
|
|
.SILENT:
|
2001-09-11 21:12:20 +02:00
|
|
|
|
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)
|
2003-07-21 15:41:52 +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
|
2003-07-21 15:41:52 +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:
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> in post-extract ..."
|
2005-06-08 12:54:11 +02:00
|
|
|
# normazile WRKSRC so things like cups-pstoraster may work
|
|
|
|
${LN} -sf ${WRKDIR}/${DISTNAME} ${WRKDIR}/${PORTNAME}
|
2001-09-11 21:12:20 +02:00
|
|
|
# ** 3rd party driver **
|
2004-04-10 19:26:55 +02:00
|
|
|
# Note: don't forget to add those devices in scripts/configure,
|
|
|
|
# which update unix-gcc.mak to build gs with these new devices!
|
2001-09-11 21:12:20 +02:00
|
|
|
#
|
2004-01-12 15:34:03 +01:00
|
|
|
# for HP8XX driver
|
|
|
|
${ECHO_MSG} ">>> extracting ${HP8XX_SRCS} ..."
|
|
|
|
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${HP8XX_SRCS}
|
2001-09-11 21:12:20 +02:00
|
|
|
# for PCL3 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${PCL3_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${PCL3_SRCS}
|
|
|
|
${LN} -sf ${PCL3_NAME} ${WRKSRC}/${PCL3}
|
2001-09-11 21:12:20 +02:00
|
|
|
${TAR} -C ${WRKSRC}/${PCL3_NAME} -xf \
|
|
|
|
${WRKSRC}/${PCL3_NAME}/${PCL3}.tar
|
2002-04-04 04:03:09 +02:00
|
|
|
# for DJ970 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${DJ970_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DJ970_SRCS} ${WRKSRC}/src
|
|
|
|
${GUNZIP_CMD} ${WRKSRC}/src/${DJ970_SRCS}
|
2002-08-20 02:15:59 +02:00
|
|
|
# for Gimp-Print driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${GPRINT_SRCS} ..."
|
2002-08-20 02:15:59 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GPRINT_SRCS}
|
2002-04-04 04:03:09 +02:00
|
|
|
# for MD2K driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${MD2K_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${MD2K_SRCS}
|
|
|
|
${LN} -sf ${MD2K_NAME} ${WRKSRC}/${MD2K}
|
|
|
|
# for ALPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${ALPS_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${ALPS_SRCS}
|
|
|
|
${LN} -sf ${ALPS_NAME} ${WRKSRC}/${ALPS}
|
|
|
|
# for BJ10V driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${BJ10V_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${BJ10V_SRCS}
|
2002-08-17 23:36:29 +02:00
|
|
|
# for BJC250 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${BJC250_SRCS} ..."
|
2002-08-17 23:36:29 +02:00
|
|
|
${MKDIR} ${WRKSRC}/${BJC250_NAME}/src
|
|
|
|
${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/${BJC250_SRCS} | \
|
|
|
|
${PATCH} -d ${WRKSRC}/${BJC250_NAME} -f -s -N -E -p1 \
|
|
|
|
2>/dev/null || ${TRUE}
|
2003-04-28 01:09:13 +02:00
|
|
|
${LN} -sf ${BJC250_NAME} ${WRKSRC}/${BJC250}
|
|
|
|
# for CPCA driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${CPCA_SRCS} ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${CPCA_SRCS}
|
2002-04-04 04:03:09 +02:00
|
|
|
# for LIPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${LIPS_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LIPS_SRCS}
|
|
|
|
${LN} -sf ${LIPS_NAME} ${WRKSRC}/${LIPS}
|
|
|
|
# for DMPRT driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${DMPRT_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${DMPRT_SRCS}
|
|
|
|
# for EPAG driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${EPAG_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPAG_SRCS}
|
|
|
|
# for EPLASER driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${EPLASER_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPLASER_SRCS}
|
|
|
|
${LN} -sf ${EPLASER_NAME} ${WRKSRC}/${EPLASER}
|
|
|
|
# for MJC driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${MJC_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${MJC_SRCS}
|
|
|
|
${LN} -sf ${MJC_NAME} ${WRKSRC}/${MJC}
|
|
|
|
# for GDI driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${GDI_SRCS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${GDI_SRCS}
|
2003-06-08 22:02:23 +02:00
|
|
|
# for LXM3200 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${LXM3200_SRCS} ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LXM3200_SRCS}
|
|
|
|
${LN} -sf ${LXM3200_NAME} ${WRKSRC}/${LXM3200}
|
|
|
|
# for LX5000 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${LX5000_SRCS} ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/${LX5000_SRCS} ${WRKSRC}/src
|
|
|
|
# for LEX7000 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> extracting ${LEX7000_SRCS} ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${MKDIR} ${WRKSRC}/${LEX7000}
|
|
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/${LEX7000_SRCS} | \
|
|
|
|
${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \
|
|
|
|
2>/dev/null || ${TRUE}
|
2001-09-11 21:12:20 +02:00
|
|
|
|
|
|
|
post-patch:
|
2002-06-28 01:52:18 +02:00
|
|
|
${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \
|
2001-09-11 21:12:20 +02:00
|
|
|
${WRKSRC}/src/unix-gcc.mak
|
2002-06-28 01:52:18 +02:00
|
|
|
${REINPLACE_CMD} -e 's|\. de|\.|g' \
|
2002-04-27 20:27:56 +02:00
|
|
|
${WRKSRC}/src/unixinst.mak
|
2002-06-28 01:52:18 +02:00
|
|
|
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
|
2002-04-04 04:03:09 +02:00
|
|
|
${WRKSRC}/lib/gs_res.ps
|
|
|
|
# for DMPRT driver
|
2002-06-28 01:52:18 +02:00
|
|
|
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \
|
2003-04-28 01:09:13 +02:00
|
|
|
s|%%GS_VERSION%%|${GS_VERSION}|g' \
|
2002-04-04 04:03:09 +02:00
|
|
|
${WRKSRC}/src/dmp_site.ps
|
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:
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> in pre-configure ..."
|
2004-01-12 15:34:03 +01:00
|
|
|
# for HP8XX driver
|
|
|
|
${ECHO_MSG} ">>> adding ${HP8XX} driver to contrib.mak ..."
|
|
|
|
${CAT} ${FILESDIR}/cdj850.contrib.mak \
|
2003-04-28 01:09:13 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2001-09-11 21:12:20 +02:00
|
|
|
# for PCL3 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${PCL3} driver to contrib.mak ..."
|
2002-04-27 20:27:56 +02:00
|
|
|
${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-7.00.add \
|
2001-09-11 21:12:20 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2002-08-20 02:15:59 +02:00
|
|
|
# for Gimp-Print driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${GPRINT} driver to contrib.mak ..."
|
2002-08-20 02:15:59 +02:00
|
|
|
${CAT} ${FILESDIR}/stp.contrib.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2002-04-04 04:03:09 +02:00
|
|
|
# for MD2K driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${MD2K} driver to contrib.mak ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CAT} ${WRKSRC}/${MD2K_NAME}/gdevmd2k.mak-5.50 \
|
2001-09-11 21:12:20 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2002-04-04 04:03:09 +02:00
|
|
|
# for ALPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${ALPS} driver to contrib.mak ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CAT} ${WRKSRC}/${ALPS_NAME}/gdevalps.mak-5.50 \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for BJ10V driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${BJ10V} driver to contrib.mak ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CAT} ${WRKSRC}/${BJ10V_NAME}/gdev10v.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2002-08-17 23:36:29 +02:00
|
|
|
# for BJC250 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${BJC250} driver to contrib.mak ..."
|
2002-08-17 23:36:29 +02:00
|
|
|
${CAT} ${FILESDIR}/bjc250.contrib.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2003-04-28 01:09:13 +02:00
|
|
|
# for CPCA driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${CPCA} driver to contrib.mak ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${CAT} ${WRKSRC}/src/cpca_gdev.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2002-04-04 04:03:09 +02:00
|
|
|
# for LIPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${LIPS} driver to contrib.mak ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CAT} ${WRKSRC}/${LIPS_NAME}/gdevlips.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for DMPRT driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${DMPRT} driver to contrib.mak ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CAT} ${WRKSRC}/src/gdevdmpr.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for EPAG driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${EPAG} driver to contrib.mak ..."
|
2003-07-11 19:19:57 +02:00
|
|
|
${CAT} ${FILESDIR}/epag.contrib.mak \
|
2002-04-04 04:03:09 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for EPLASER driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${EPLASER} driver to contrib.mak ..."
|
2003-09-27 04:35:24 +02:00
|
|
|
${CAT} ${WRKSRC}/${EPLASER_NAME}/gdevescv7.mak \
|
2002-04-04 04:03:09 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2003-09-27 04:35:24 +02:00
|
|
|
${CAT} ${WRKSRC}/${EPLASER_NAME}/gdevesmv7.mak \
|
2002-04-04 04:03:09 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for MJC driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${MJC} driver to contrib.mak ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${CAT} ${WRKSRC}/${MJC_NAME}/gdevmjc.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for GDI driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${GDI} driver to contrib.mak ..."
|
2002-08-06 22:34:09 +02:00
|
|
|
${CAT} ${WRKSRC}/src/smartgdi-contrib.mak \
|
2001-09-11 21:12:20 +02:00
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
2003-06-08 22:02:23 +02:00
|
|
|
# for LXM3200 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${LXM3200} driver to contrib.mak ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${CAT} ${FILESDIR}/lxm3200.contrib.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for LX5000 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${LX5000} driver to contrib.mak ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${CAT} ${FILESDIR}/lx5000.contrib.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
|
|
|
# for LEX7000 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> adding ${LEX7000} driver to contrib.mak ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${CAT} ${FILESDIR}/lex7000.contrib.mak \
|
|
|
|
>> ${WRKSRC}/src/contrib.mak
|
1997-06-11 08:20:47 +02:00
|
|
|
|
2002-08-20 02:15:59 +02:00
|
|
|
post-configure:
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> in post-configure ..."
|
2002-08-20 02:15:59 +02:00
|
|
|
# for Gimp-Print driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> running configure script for ${GPRINT} library ..."
|
2002-08-20 02:15:59 +02:00
|
|
|
cd ${WRKSRC}/${GPRINT_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ./configure \
|
|
|
|
--without-translated-ppds --with-ghost \
|
|
|
|
--without-gimp --without-samples \
|
2004-06-13 14:36:21 +02:00
|
|
|
--without-cups --without-ijs \
|
2002-08-20 02:15:59 +02:00
|
|
|
--without-user-guide --disable-escputil \
|
|
|
|
--disable-nls --disable-shared \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
|
1998-12-03 09:24:21 +01:00
|
|
|
pre-build:
|
2003-07-21 15:41:52 +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
|
2002-08-20 02:15:59 +02:00
|
|
|
# for Gimp-Print driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> building ${GPRINT} library ..."
|
2002-08-20 02:15:59 +02:00
|
|
|
cd ${WRKSRC}/${GPRINT_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${GPRINT} ..."
|
2002-08-20 02:15:59 +02:00
|
|
|
${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/ghost/*.[ch] \
|
|
|
|
${WRKSRC}/src
|
|
|
|
${MKDIR} ${WRKSRC}/${GPRINT}
|
|
|
|
${LN} -sf ${WRKSRC}/${GPRINT_NAME}/include/gimp-print \
|
|
|
|
${WRKSRC}/${GPRINT}/gimp-print
|
|
|
|
${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/main/.libs/libgimpprint.a \
|
|
|
|
${WRKSRC}/${GPRINT}/libgimpprint.a
|
2002-04-04 04:03:09 +02:00
|
|
|
# for MD2K driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${MD2K} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdevmd2k.c
|
|
|
|
${LN} -sf ${WRKSRC}/${MD2K_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
|
|
|
# for ALPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${ALPS} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdevalps.c
|
|
|
|
${LN} -sf ${WRKSRC}/${ALPS_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
|
|
|
# for BJ10V driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${BJ10V} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdev10v.c
|
|
|
|
${LN} -sf ${WRKSRC}/${BJ10V_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
2002-08-17 23:36:29 +02:00
|
|
|
# for BJC250 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${BJC250} ..."
|
2002-08-17 23:36:29 +02:00
|
|
|
.for i in gdevbjc_.[ch] gdevbjca.c
|
|
|
|
${LN} -sf ${WRKSRC}/${BJC250_NAME}/src/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
2002-04-04 04:03:09 +02:00
|
|
|
# for LIPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${LIPS} ..."
|
2003-07-11 19:19:57 +02:00
|
|
|
.for i in gdevlips.[ch] gdevlprn.[ch] gdevl4r.c gdevl4v.c gdevespg.c \
|
|
|
|
gdevnpdl.c gdevrpdl.c
|
2002-04-04 04:03:09 +02:00
|
|
|
${LN} -sf ${WRKSRC}/${LIPS_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
|
|
|
# for EPAG driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> building ${EPAG} utility ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
cd ${WRKSRC}/${EPAG_NAME} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${EPAG} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdevepag.c
|
|
|
|
${LN} -sf ${WRKSRC}/${EPAG_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
|
|
|
# for EPLASER driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${EPLASER} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdevescv.[ch] gdevesmv.c
|
|
|
|
${LN} -sf ${WRKSRC}/${EPLASER_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
|
|
|
# for MJC driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${MJC} ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdevmjc.c mjbarrie.c mjbksep.c mjespdtc.c mjespdtm.c mjespdty.c \
|
|
|
|
mjgrnsp.c mjgrnsp2.c mjhtocmy.c mjmtx2.c mjvtbl.c
|
|
|
|
${LN} -sf ${WRKSRC}/${MJC_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
2003-06-08 22:02:23 +02:00
|
|
|
# for LXM3200 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${LXM3200} ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
.for i in gdevlx32.c
|
|
|
|
${LN} -sf ${WRKSRC}/${LXM3200_NAME}/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
|
|
|
# for LEX7000 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating symlinks for ${LEX7000} ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
.for i in gdevlx7.c
|
|
|
|
${LN} -sf ${WRKSRC}/${LEX7000}/src/${i} ${WRKSRC}/src
|
|
|
|
.endfor
|
1998-12-03 09:24:21 +01:00
|
|
|
|
2004-03-18 00:54:21 +01:00
|
|
|
pre-su-install:
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> in pre-install ..."
|
|
|
|
${ECHO_MSG} ">>> creating ghostscript destdir ..."
|
2001-10-06 19:24:19 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2003-03-02 09:57:09 +01:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
1997-06-11 08:20:47 +02:00
|
|
|
|
|
|
|
post-install:
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> in post-install ..."
|
|
|
|
${ECHO_MSG} ">>> stripping gs ..."
|
2002-04-27 20:27:56 +02:00
|
|
|
.if defined(WITH_SHLIB)
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/gsc ${PREFIX}/bin/gsx
|
|
|
|
${LN} -sf gsc ${PREFIX}/bin/gs
|
|
|
|
.else
|
2002-04-04 04:03:09 +02:00
|
|
|
${STRIP_CMD} ${PREFIX}/bin/gs
|
2002-04-27 20:27:56 +02:00
|
|
|
.endif
|
2001-09-11 21:12:20 +02:00
|
|
|
# for PCL3 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${PCL3} utility in bindir ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/pcl3opts ${PREFIX}/bin
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${PCL3} manpages ..."
|
2001-09-11 21:12:20 +02:00
|
|
|
.for i in ${PCL3_MAN1}
|
2002-04-04 04:03:09 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PCL3_NAME}/doc/${i} ${MANPREFIX}/man/man1
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
# other pcl3 stuff, which might be interesting for runtime
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> creating ${PCL3} destdir ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DATADIR}/${GS_VERSION}/${PCL3}
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing files in ${PCL3} destdir ..."
|
2001-09-11 21:12:20 +02:00
|
|
|
.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} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DATADIR}/${GS_VERSION}/${PCL3}
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
2002-04-04 04:03:09 +02:00
|
|
|
# for DMPRT driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${DMPRT} resources ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in dmp_init.ps dmp_site.ps escp_24.src
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DATADIR}/${GS_VERSION}/lib
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
2002-04-04 04:03:09 +02:00
|
|
|
# for EPAG driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${EPAG} utility in bindir ..."
|
2002-04-04 04:03:09 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin
|
2001-09-11 21:12:20 +02:00
|
|
|
# contributed UPP driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing contributed UPP profiles ..."
|
2001-09-11 21:12:20 +02:00
|
|
|
.for i in ${CONTRIB_UPP}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DATADIR}/${GS_VERSION}/lib
|
2001-09-11 21:12:20 +02:00
|
|
|
.endfor
|
|
|
|
#
|
|
|
|
# now NOPORTDOCS dependend stuff
|
|
|
|
#
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing PORTDOC stuff ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}
|
2002-04-04 04:03:09 +02:00
|
|
|
# for PCL3 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${PCL3} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${PCL3}
|
2001-09-11 21:12:20 +02:00
|
|
|
.for i in NEWS doc/gs-pcl3.html doc/how-to-report.txt doc/pcl3opts.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${PCL3}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for MD2K driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${MD2K} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${MD2K}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in README.jis
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${MD2K_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${MD2K}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for ALPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${ALPS} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${ALPS}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in README.gdevalps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${ALPS_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${ALPS}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for BJ10V driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${BJ10V} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${BJ10V}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdev10v.jis
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${BJ10V_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${BJ10V}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for LIPS driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${LIPS} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${LIPS}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in Gdevlips.htm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${LIPS_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${LIPS}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for DMPRT driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${DMPRT} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${DMPRT}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in gdevdmpr.sj
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${DMPRT}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for EPAG driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${EPAG} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${EPAG}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in ert.txt gdevepag.txt ChangeLog
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${EPAG_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${EPAG}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
.for i in psprint gsepagif.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${EPAG_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${EPAG}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for EPLASER driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${EPLASER} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${EPLASER}
|
2004-06-27 23:16:03 +02:00
|
|
|
.for i in readme-eplaser-705.euc
|
2002-04-04 04:03:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${EPLASER_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${EPLASER}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
|
|
|
# for MJC driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${MJC} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${MJC}
|
2002-04-04 04:03:09 +02:00
|
|
|
.for i in MJ700V2C.FAQ README.mjc README.mje README.noz cpem.doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${MJC_NAME}/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${MJC}
|
2002-04-04 04:03:09 +02:00
|
|
|
.endfor
|
2002-08-06 22:34:09 +02:00
|
|
|
# for GDI driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${GDI} docs ..."
|
2003-04-28 01:09:13 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${GDI}
|
2002-08-06 22:34:09 +02:00
|
|
|
.for i in README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${i} \
|
2003-04-28 01:09:13 +02:00
|
|
|
${DOCSDIR}/${GS_VERSION}/${GDI}
|
2002-08-06 22:34:09 +02:00
|
|
|
.endfor
|
2003-06-08 22:02:23 +02:00
|
|
|
# for LXM3200 driver
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} ">>> installing ${LXM3200} docs ..."
|
2003-06-08 22:02:23 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${LXM3200}
|
|
|
|
.for i in README RELEASE_NOTES Z12-Z31-QuickSetup
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${LXM3200_NAME}/${i} \
|
|
|
|
${DOCSDIR}/${GS_VERSION}/${LXM3200}
|
|
|
|
.endfor
|
2001-09-11 21:12:20 +02:00
|
|
|
.endif
|
2003-07-21 15:41:52 +02:00
|
|
|
${ECHO_MSG} "> post-installation tasks completed."
|
2001-09-11 21:12:20 +02:00
|
|
|
|
2003-06-08 22:02:23 +02:00
|
|
|
.include <bsd.port.post.mk>
|