summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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