2002-08-22 04:56:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.12 2002/08/22 02:56:51 jschauma Exp $
|
2000-05-05 06:56:56 +02:00
|
|
|
#
|
|
|
|
|
2002-08-22 04:56:51 +02:00
|
|
|
DISTNAME= ocaml-3.06
|
2002-08-16 04:50:02 +02:00
|
|
|
CATEGORIES= lang
|
2002-08-22 04:56:51 +02:00
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/lang/caml-light/${DISTNAME}/
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
MAINTAINER= jschauma@netbsd.org
|
|
|
|
HOMEPAGE= http://caml.inria.fr/ocaml/
|
|
|
|
COMMENT= the latest implementation of the Caml dialect of ML
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
DEPENDS+= tk>=8.3.2:../../x11/tk
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2002-06-19 04:23:41 +02:00
|
|
|
CONFIGURE_ARGS+= -prefix ${LOCALBASE}
|
|
|
|
CONFIGURE_ARGS+= -tklibs -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= -tkdefs "-I${LOCALBASE}/include "
|
|
|
|
CONFIGURE_ARGS+= -libs "-Wl,-R${X11BASE}/lib -Wl,-R${LOCALBASE}/lib"
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
ALL_TARGET= world
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2000-08-25 00:32:34 +02:00
|
|
|
post-build:
|
2002-08-16 04:50:02 +02:00
|
|
|
if ${TEST} ${MACHINE_ARCH} = 'i386'; then \
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${GMAKE} opt; \
|
|
|
|
${GMAKE} ocamlc.opt; \
|
|
|
|
${GMAKE} ocamlopt.opt; \
|
|
|
|
fi
|
2000-06-12 16:43:21 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.opt ${PKGDIR}/PLIST
|
|
|
|
.endif
|
|
|
|
|
2000-05-05 06:56:56 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|