summaryrefslogtreecommitdiff
path: root/japanese/vfghostscript55/scripts/configure
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1997-04-30 16:03:04 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1997-04-30 16:03:04 +0000
commite04515f662bef2f984884f3cbea28b15cdbc722b (patch)
tree40805a6989a222b287b8787bd0f597d5dc063206 /japanese/vfghostscript55/scripts/configure
parentRemove two non-existent sound files. (diff)
Update:
1. Added new driver for Cannon bubblejet BJ-10V 2. Update to Cannon lips printer driver. 3. Typo fix. 4. Integrate scripts/configure.batch into scripts/configure.
Notes
Notes: svn path=/head/; revision=6373
Diffstat (limited to '')
-rw-r--r--japanese/vfghostscript55/scripts/configure27
1 files changed, 24 insertions, 3 deletions
diff --git a/japanese/vfghostscript55/scripts/configure b/japanese/vfghostscript55/scripts/configure
index f9590b724201..2de28e129be3 100644
--- a/japanese/vfghostscript55/scripts/configure
+++ b/japanese/vfghostscript55/scripts/configure
@@ -1,8 +1,26 @@
#! /bin/sh
+# Set printer drivers automatically if BATCH is set
+
+if [ ! "X"${BATCH} = "X" ] ; then
+
+PRINTER_JAPAN=' epag300.dev epag600.dev mjc180.dev mjc360.dev mjc720.dev mj500c.dev lips4.dev lips4c.dev rpdlA3.dev rpdlA4.dev rpdlB4.dev rpdlB5.dev bj10v.dev bj10vh.dev'
+
+sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \
+ -e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \
+ -e "s;JSRCDIR=jpeg-6a;JSRCDIR=${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \
+ -e "s;PSRCDIR=libpng;PSRCDIR=${PORTSDIR}/graphics/png/work/libpng-0.89c;" \
+ -e "s;ZSRCDIR=zlib;ZSRCDIR=.;" \
+ -e "s;CC=gcc;CC=cc;" \
+ -e "s;DEVICE_DEVS15=pdfwrite.dev;DEVICE_DEVS15=pdfwrite.dev stcolor.dev ${PRINTER_JAPAN};" \
+ < ${WRKSRC}/unix-gcc.mak > ${WRKSRC}/unix-gcc.mak.bak && \
+ mv ${WRKSRC}/unix-gcc.mak.bak ${WRKSRC}/unix-gcc.mak
+touch ${WRKSRC}/makefile
+
+else
+
# Define the directories for the X11 library files.
# This can be null if these files are in the default linker search path.
-
sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \
-e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \
-e "s;JSRCDIR=jpeg-6a;JSRCDIR=${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \
@@ -48,8 +66,10 @@ Have fun with this new configuration style ! -andreas \n\n\
"sxlcrt" "CRT sixels, e.g. for VT240-like terminals" OFF \
"ap3250" "Epson AP3250" OFF \
"appledmp" "Apple Dot Matrix Printer / Imagewriter" OFF \
- "bj10e" "Canon BubbleJet BJ10e" ON \
- "bj200" "Canon BubbleJet BJ200" ON \
+ "bj10e" "Canon BubbleJet BJ10e" OFF \
+ "bj10v" "Canon BubbleJet BJ10v" ON \
+ "bj10vh" "Canon BubbleJet BJ10v" ON \
+ "bj200" "Canon BubbleJet BJ200" OFF \
"bjc600" "Canon Color BubbleJet BJC-600/4000/70" ON \
"bjc800" "Canon Color BubbleJet BJC-800" ON \
"ccr" "CalComp Raster format" OFF \
@@ -200,3 +220,4 @@ echo "DEVICE_DEVS=$choice" \
# create one new Makefile, where DEVICE_DEVS contains all wanted devices
cat ${WRKSRC}/unix-gcc.mak >> ${WRKSRC}/unix-gcc.mak.new
mv ${WRKSRC}/unix-gcc.mak.new ${WRKSRC}/unix-gcc.mak
+fi