summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorepg <epg>2008-11-14 19:28:39 +0000
committerepg <epg>2008-11-14 19:28:39 +0000
commitbff98d2c1cfe1b639212a3ef02aa84fe862f915f (patch)
tree5517a19ad8285fabcf99189b3bfd48b8596f0d2c /lang
parent9e9eab64715d1207ebe2b20413298f3ae8fe36cb (diff)
downloadpkgsrc-bff98d2c1cfe1b639212a3ef02aa84fe862f915f.tar.gz
blank line before PLIST_SRC
Diffstat (limited to 'lang')
-rw-r--r--lang/camlp5/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/lang/camlp5/Makefile b/lang/camlp5/Makefile
index a329f7b282b..99b53b4d046 100644
--- a/lang/camlp5/Makefile
+++ b/lang/camlp5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/06/21 06:37:52 tonio Exp $
+# $NetBSD: Makefile,v 1.8 2008/11/14 19:28:39 epg Exp $
#
DISTNAME= camlp5-5.09
@@ -22,15 +22,17 @@ CONFIGURE_ARGS+= --libdir ${PREFIX}/lib/ocaml
REPLACE_SH= tools/*.sh meta/*.sh ocaml_src/tools/*.sh compile/*.sh
-.include "../../mk/bsd.prefs.mk"
-
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
- (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
-BUILD_TARGET= world.opt
-PLIST_SRC+= ${PKGDIR}/PLIST.opt
+.include "../../lang/ocaml/lib.mk"
+.if defined(OCAML_OPT) && !empty(OCAML_OPT:M[yY][eE][sS])
+BUILD_TARGET= world.opt
.else
-BUILD_TARGET= world
+BUILD_TARGET= world
+SUBST_CLASSES+= camlp5-opt
+SUBST_STAGE.camlp5-opt= post-configure
+SUBST_FILES.camlp5-opt= config/Makefile.cnf
+SUBST_SED.camlp5-opt+= -e 's/^OPT=.*/OPT=/'
.endif
+
PLIST_SRC+= ${PKGDIR}/PLIST
.include "../../lang/ocaml/buildlink3.mk"