summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-12-19 21:52:49 +0000
committeragc <agc@pkgsrc.org>2001-12-19 21:52:49 +0000
commit819362ebdf0d5314d97d368483335817c0b81227 (patch)
treed7f181ab1b1be6590c3789392d97a09a184bebd3 /lang
parenta1454d57c11a40143503829100b7e74e41404233 (diff)
downloadpkgsrc-819362ebdf0d5314d97d368483335817c0b81227.tar.gz
The configuration script for this package is interactive, so provide the
correct canned answers on its stdin. Fixes a problem highlighted in the bulk build results.
Diffstat (limited to 'lang')
-rw-r--r--lang/camlp4/Makefile6
-rw-r--r--lang/camlp4/files/config-answers3
2 files changed, 7 insertions, 2 deletions
diff --git a/lang/camlp4/Makefile b/lang/camlp4/Makefile
index 35d39ec8d77..f2bcf59a6b8 100644
--- a/lang/camlp4/Makefile
+++ b/lang/camlp4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2001/07/13 16:21:41 wulf Exp $
+# $NetBSD: Makefile,v 1.5 2001/12/19 21:52:49 agc Exp $
#
DISTNAME= camlp4-3.01.6
@@ -12,11 +12,13 @@ COMMENT= Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml
DEPENDS+= ocaml-3.01:../ocaml
USE_GMAKE= yes
-HAS_CONFIGURE= yes
ALL_TARGET= world
PLIST_SRC= ${WRKDIR}/PLIST
+do-configure:
+ ${SED} -e 's|\$${PREFIX}|${PREFIX}|g' < ${FILESDIR}/config-answers | (cd ${WRKSRC} && ./configure)
+
pre-build:
if ! ${TEST} -x ${LOCALBASE}/bin/ocamlc.opt; then \
${ECHO} "No optimized ocaml binaries found"; \
diff --git a/lang/camlp4/files/config-answers b/lang/camlp4/files/config-answers
new file mode 100644
index 00000000000..12614b255ad
--- /dev/null
+++ b/lang/camlp4/files/config-answers
@@ -0,0 +1,3 @@
+${PREFIX}/bin
+${PREFIX}/lib/camlp4
+${PREFIX}/man/man1