summaryrefslogtreecommitdiff
path: root/print/ghostscript-gpl/scripts/configure
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>2000-03-25 21:02:50 +0000
committerAndreas Klemm <andreas@FreeBSD.org>2000-03-25 21:02:50 +0000
commit00114700d01225f61a482bc37bde43f2587f9c24 (patch)
tree70dc03f79cb0f92fbd6b278dc726d75d946d2c6b /print/ghostscript-gpl/scripts/configure
parent- Clean up and minor fixes (diff)
- fix typo in variable name (Louis), changed it to HP8XX_DRV afterwards
- make configure script work (Louis) - make configure.batch script work (Andreas) - extract contributed HP8XX driver in ${WRKSRC}/src - make png driver compile (add $(PREFIX)/include to XINCLUDE variable) Dunno, if this will be the last round of cleanups... Submitted by: "Louis A. Mamakos" <louie@TransSys.COM>
Notes
Notes: svn path=/head/; revision=27046
Diffstat (limited to 'print/ghostscript-gpl/scripts/configure')
-rw-r--r--print/ghostscript-gpl/scripts/configure14
1 files changed, 10 insertions, 4 deletions
diff --git a/print/ghostscript-gpl/scripts/configure b/print/ghostscript-gpl/scripts/configure
index 393df5898bf4..cf3ab9cb4bf0 100644
--- a/print/ghostscript-gpl/scripts/configure
+++ b/print/ghostscript-gpl/scripts/configure
@@ -189,12 +189,18 @@ case $retval in
esac
# bring it into the right format with '.dev' appended to each driver name
+#old:
+#echo "DEVICE_DEVS=$choice" \
+# | sed -e "s/\"//g" \
+# | sed -e "s/ /.dev /g" \
+# | sed -e "s/$/.dev/g" \
+# > ${WRKSRC}/src/unix-gcc.mak.new
+# XXX new:
echo "DEVICE_DEVS=$choice" \
- | sed -e "s/\"//g" \
- | sed -e "s/ /.dev /g" \
- | sed -e "s/$/.dev/g" \
+ | perl -pe 's|"([a-z0-9]+)"|\$(DD)\1.dev|g' \
> ${WRKSRC}/src/unix-gcc.mak.new
# create one new Makefile, where DEVICE_DEVS contains all wanted devices
-cat ${WRKSRC}/src/unix-gcc.mak >> ${WRKSRC}/src/unix-gcc.mak.new
+sed -e '/^DEVICE_DEVS=/d' ${WRKSRC}/src/unix-gcc.mak \
+ >> ${WRKSRC}/src/unix-gcc.mak.new
mv ${WRKSRC}/src/unix-gcc.mak.new ${WRKSRC}/src/unix-gcc.mak