summaryrefslogtreecommitdiff
path: root/lang/ocaml/Makefile
blob: 6450e5bf30ad37371af79c1c4bacbb1c12bbee85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.10 2002/06/19 02:23:41 jschauma Exp $
#

DISTNAME=		ocaml-3.04
CATEGORIES=		lang
MASTER_SITES=	ftp://ftp.inria.fr/lang/caml-light/

MAINTAINER=		jschauma@netbsd.org
HOMEPAGE=		http://caml.inria.fr/ocaml/
COMMENT=		the latest implementation of the Caml dialect of ML

DEPENDS+=		tk>=8.3.2:../../x11/tk

USE_GMAKE=		yes
HAS_CONFIGURE=		yes
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"

ALL_TARGET=		world

post-build:
			if ${TEST} ${MACHINE_ARCH} = 'i386'; then \
			  cd ${WRKSRC}; \
			  ${GMAKE} opt; \
			  ${GMAKE} ocamlc.opt; \
			  ${GMAKE} 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"