diff options
author | wulf <wulf> | 2000-06-12 14:43:21 +0000 |
---|---|---|
committer | wulf <wulf> | 2000-06-12 14:43:21 +0000 |
commit | 3b4056c182ba05a170ce451d0837a02359621c9c (patch) | |
tree | b7659f9fb4c623cb03135d3bba853e08f4d026bb /lang | |
parent | 28cd490a1e85845fdb16615df49f2819b4088c86 (diff) | |
download | pkgsrc-3b4056c182ba05a170ce451d0837a02359621c9c.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/Makefile | 17 |
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" |