blob: 3a3764eea7e29663c0730ce76f6b9f780739486e (
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
48
49
50
51
52
53
54
|
# $NetBSD: Makefile,v 1.10 2014/10/20 11:00:25 jaapb Exp $
DISTNAME= lablgtk-1.2.7
PKGNAME= lablgtk1-1.2.7
PKGREVISION= 9
CATEGORIES= x11
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/571/
LICENSE= gnu-lgpl-v2.1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
COMMENT= GTK+ bindings for ocaml
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake
BUILDLINK_DEPMETHOD.ocaml= full
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.0.5
CONFLICTS+= lablgtk-1.*{,nb*}
.include "../../mk/bsd.prefs.mk"
# currently ocamlopt is only available on i386, sparc and powerpc.
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc") || ${MACHINE_ARCH} == "x86_64"
USE_DOTOPT= YES
.else
CAMLOPT= ocamlc
MAKE_ENV+= CAMLOPT=${CAMLOPT:Q}
PLIST_SRC= ${PKGDIR}/PLIST.noopt
.endif
.if ${OPSYS} == "Darwin"
PLIST_SRC+= ${PKGDIR}/PLIST.stub
.endif
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
configure USE_DOTOPT=${USE_DOTOPT} USE_CC=1 CC=${CC}
.if defined(USE_DOTOPT)
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
opt
.endif
INSTALLATION_DIRS+= bin
.include "../../x11/gtk/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
.include "../../lang/camlp4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|