summaryrefslogtreecommitdiff
path: root/lang/ocamlduce/Makefile
blob: d3efdf91fffcd83e9cd26290c4b3e9f0cb16a11c (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
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.7 2010/02/07 12:55:29 obache Exp $
#

DISTNAME=       ocamlduce-3.11.1.0
CATEGORIES=     lang
MASTER_SITES=   http://forge.ocamlcore.org/frs/download.php/225/
DISTFILES=      ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

# we need the OCaml sources too
DISTFILES+=	ocaml-3.11.1.tar.bz2
SITES.ocaml-3.11.1.tar.bz2= http://caml.inria.fr/pub/distrib/ocaml-3.11/	

MAINTAINER=     jaapb@kerguelen.org
HOMEPAGE=       http://ocamlduce.forge.ocamlcore.org/
COMMENT=        Library to integrate XML features into OCaml

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=       ocaml-findlib-[0-9]*:../../devel/ocaml-findlib

USE_TOOLS+=     gmake
BUILD_TARGET=   all
INSTALL_TARGET=	installbyte
MAKE_JOBS_SAFE=	no

MAKE_ENV+=		BINDIR=${PREFIX}/bin LIBDIR=${PREFIX}/lib/ocaml/site-lib
INSTALL_MAKE_FLAGS+=	BINDIR=${DESTDIR}${PREFIX}/bin \
			LIBDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
PLIST_SRC=	PLIST

.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
BUILD_TARGET=   world.opt
INSTALL_TARGET+=        installopt
PLIST_SRC+=     PLIST.opt
.else
BUILD_TARGET=   world
.endif

BUILDLINK_API_DEPENDS.ocaml+=   ocaml>=3.11.1
pre-configure:
	cd ${WRKSRC} && DISTDIR=${DISTDIR} make prepare
	cd ${WRKSRC}/ocaml-3.11.1 && ./configure -prefix ${PREFIX} -libs ${LDFLAGS:Q} -with-pthread -host ${MACHINE_GNU_PLATFORM:Q} -mandir ${PREFIX}/${PKGMANDIR} -no-tk

.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"