1 # $NetBSD: Makefile,v 1.6 2012/10/08 15:18:25 jaapb Exp $
3 DISTNAME
= lablgtk-1.2
.7
4 PKGNAME
= lablgtk1-1.2
.7
7 MASTER_SITES
= http
://forge.ocamlcore.org
/frs
/download.php
/571/
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://wwwfun.kurims.kyoto-u.ac.jp
/soft
/olabl
/lablgtk.html
11 COMMENT
= GTK
+ bindings for ocaml
17 BUILDLINK_DEPMETHOD.ocaml
= full
18 BUILDLINK_API_DEPENDS.ocaml
+= ocaml
>=3.0.5
20 CONFLICTS
+= lablgtk-1.
*
22 .
include "../../mk/bsd.prefs.mk"
24 # currently ocamlopt is only available on i386, sparc and powerpc.
25 .if
(${MACHINE_ARCH} == "i386") ||
(${MACHINE_ARCH} == "powerpc") || \
26 (${MACHINE_ARCH} == "sparc") ||
${MACHINE_ARCH} == "x86_64"
30 MAKE_ENV
+= CAMLOPT
=${CAMLOPT
:Q
}
31 PLIST_SRC
= ${PKGDIR}/PLIST.noopt
34 .if
${OPSYS} == "Darwin"
35 PLIST_SRC
+= ${PKGDIR}/PLIST.stub
39 cd
${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
40 configure USE_DOTOPT
=${USE_DOTOPT} USE_CC
=1 CC
=${CC}
42 .if defined
(USE_DOTOPT
)
44 cd
${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
48 INSTALLATION_DIRS
+= bin
50 .
include "../../x11/gtk/buildlink3.mk"
51 .
include "../../lang/ocaml/buildlink3.mk"
52 .
include "../../mk/bsd.pkg.mk"