diff options
author | frueauf <frueauf> | 1998-11-08 11:04:50 +0000 |
---|---|---|
committer | frueauf <frueauf> | 1998-11-08 11:04:50 +0000 |
commit | 1fe8b24164ae170217eb8574b3cdbf06afcf3804 (patch) | |
tree | e6a8008d5d7cfa02a4e6c93b7ad98b328f8a9734 /print/ghostscript5 | |
parent | 78581d046b9155771219288651b662eacab0a0b9 (diff) | |
download | pkgsrc-1fe8b24164ae170217eb8574b3cdbf06afcf3804.tar.gz |
Depend on dialog package if BATCH is not set; make the configure script
work, inspired by pr 5070 from Johnny C. Lam.
XXX The list of available drivers in this configure script is NOT
XXX uptodate to what gs 5.50 supports. Someone needs to find a clever
XXX way to extract such a list from the gs docs.
Diffstat (limited to 'print/ghostscript5')
-rw-r--r-- | print/ghostscript5/Makefile | 6 | ||||
-rw-r--r-- | print/ghostscript5/scripts/configure | 13 |
2 files changed, 11 insertions, 8 deletions
diff --git a/print/ghostscript5/Makefile b/print/ghostscript5/Makefile index 95c87cfd17c..ee9c6d15ddd 100644 --- a/print/ghostscript5/Makefile +++ b/print/ghostscript5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 1998/11/04 22:00:59 mycroft Exp $ +# $NetBSD: Makefile,v 1.27 1998/11/08 11:04:50 frueauf Exp $ # DISTNAME= ghostscript-5.50 @@ -57,6 +57,8 @@ PAPERSIZE_DEF= -DA4 .if defined(BATCH) SCRIPT_SUFFIX= .batch +.else +BUILD_DEPENDS+= ${PREFIX}/bin/dialog:../../misc/dialog .endif post-extract: @@ -65,7 +67,7 @@ post-extract: ${CP} ${DISTDIR}/${PDF_SEC} ${WRKSRC} do-configure: - @${SETENV} WRKSRC=${WRKSRC} \ + @${SETENV} WRKSRC=${WRKSRC} PREFIX=${PREFIX} \ ${SH} ${SCRIPTDIR}/configure${SCRIPT_SUFFIX} do-build: diff --git a/print/ghostscript5/scripts/configure b/print/ghostscript5/scripts/configure index cc3b4151024..1d657ec7bd7 100644 --- a/print/ghostscript5/scripts/configure +++ b/print/ghostscript5/scripts/configure @@ -1,13 +1,13 @@ #! /bin/sh # -# $NetBSD: configure,v 1.2 1998/08/07 11:11:24 agc Exp $ +# $NetBSD: configure,v 1.3 1998/11/08 11:04:51 frueauf Exp $ # # without that no way :) touch ${WRKSRC}/makefile # driverselection -/usr/bin/dialog --title "Ghostscript 4 driver configuration" --clear \ +${PREFIX}/bin/dialog --title "Ghostscript 4 driver configuration" --clear \ --checklist "\n\ This new ghostscript driver configuration dialog allows you to choose \n\ only those gs drivers, you really need. Don't think too economical, since \n\ @@ -77,11 +77,11 @@ Have fun with this new configuration style ! -andreas \n\n\ "oki182" "Okidata MicroLine 182" ON \ "okiibm" "Okidata MicroLine IBM-compatible printers" ON \ "paintjet" "alternate HP PaintJet color printer" ON \ - "pj" "HP PaintJet XL driver " ON \ + "pj" "HP PaintJet XL driver" ON \ "pjetxl" "alternate HP PaintJet XL driver" ON \ "pjxl" "HP PaintJet XL color printer" ON \ "pjxl300" "HP PaintJet XL300 color printer (also for 1200C)" ON \ - "pxlmono" "HP black-and-white PCL XL printers (LaserJet 5 and 6 family)" ON \ + "pxlmono" "HP black/white PCL XL printers (LaserJet 5 and 6 family)" ON \ "pxlcolor" "HP color PCL XL printers (none available yet)" ON \ "r4081" "Ricoh 4081 laser printer" ON \ "sj48" "StarJet 48 inkjet printer" ON \ @@ -91,7 +91,7 @@ Have fun with this new configuration style ! -andreas \n\n\ "t4693d4" "Tektronix 4693d color, 4 bits per R/G/B component" ON \ "t4693d8" "Tektronix 4693d color, 8 bits per R/G/B component" ON \ "tek4696" "Tektronix 4695/4696 inkjet plotter" ON \ - "uniprint" "Configurable Color ESC/P,ESC/P2,HP-RTL/PCL mono/color driver" ON \ + "uniprint" "Conf.able Color ESC/P,ESC/P2,HP-RTL/PCL mono/color driver" ON \ "xes" "Xerox XES printers (2700, 3700, 4045, etc.)" ON \ "dfaxhigh" "DigiBoard, DigiFAX software format (high resol)" ON \ "dfaxlow" "DigiFAX low (normal) resol" ON \ @@ -177,8 +177,9 @@ esac # bring it into the right format with '.dev' appended to each driver name echo "DEVICE_DEVS=$choice" \ | sed -e "s/\"//g" \ + | sed -e "s/$/ /g" \ + | sed -e "s/ */ /g" \ | sed -e "s/ /.dev /g" \ - | sed -e "s/$/.dev/g" \ > ${WRKSRC}/unix-gcc.mak.new # create one new Makefile, where DEVICE_DEVS contains all wanted devices |