summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorwulf <wulf>2000-06-12 14:43:21 +0000
committerwulf <wulf>2000-06-12 14:43:21 +0000
commitf4bc9de14b0afb722e5ac86511df093ed458a973 (patch)
treeb7659f9fb4c623cb03135d3bba853e08f4d026bb /lang
parent4876bf256e401a87780b00808ef79dc3994fb24b (diff)
downloadpkgsrc-f4bc9de14b0afb722e5ac86511df093ed458a973.tar.gz
Package needs 'gmake' as it otherwise will not build.
Added support for native-code compiler for i386 architecture.
Diffstat (limited to 'lang')
-rw-r--r--lang/ocaml/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index 1337ce61359..ea89f1be907 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/05/05 04:56:56 groo Exp $
+# $NetBSD: Makefile,v 1.2 2000/06/12 14:43:21 wulf Exp $
#
DISTNAME= ocaml-3.00
@@ -10,9 +10,24 @@ HOMEPAGE= http://caml.inria.fr/ocaml/
DEPENDS+= tk-8.0.*:../../x11/tk80
+USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= -prefix ${LOCALBASE} -tklibs -L${LOCALBASE}/lib -tkdefs "-I${LOCALBASE}/include/tcl8.0 -I${LOCALBASE}/include/tk8.0" -libs "-Wl,-R${X11BASE}/lib -Wl,-R${LOCALBASE}/lib"
ALL_TARGET= world
+pre-install:
+ if ${TEST} ${MACHINE_ARCH} = 'i386'; then \
+ cd ${WRKSRC}; \
+ ${MAKE} opt; \
+ ${MAKE} ocamlc.opt; \
+ ${MAKE} ocamlopt.opt; \
+ fi
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${MACHINE_ARCH} == "i386")
+PLIST_SRC= ${PKGDIR}/PLIST.opt ${PKGDIR}/PLIST
+.endif
+
.include "../../mk/bsd.pkg.mk"