diff options
author | wulf <wulf@pkgsrc.org> | 2000-06-12 14:43:21 +0000 |
---|---|---|
committer | wulf <wulf@pkgsrc.org> | 2000-06-12 14:43:21 +0000 |
commit | b2dbf2143c41ccb6266690e1d26583c3c240ef14 (patch) | |
tree | b7659f9fb4c623cb03135d3bba853e08f4d026bb | |
parent | 98d6717e20d20b7bc736ab52ca1f6cb5f5105c4b (diff) | |
download | pkgsrc-b2dbf2143c41ccb6266690e1d26583c3c240ef14.tar.gz |
Package needs 'gmake' as it otherwise will not build.
Added support for native-code compiler for i386 architecture.
-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" |