blob: 437103a04a9933238811b905b94ac280a162ffe6 (
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
|
# $NetBSD: Makefile,v 1.8 2016/05/05 11:45:42 jaapb Exp $
DISTNAME= uutf-0.9.4
PKGNAME= ocaml-${DISTNAME}
PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://erratique.ch/software/uutf/releases/
EXTRACT_SUFX= .tbz
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= http://erratique.ch/software/uutf/releases/
COMMENT= Unicode library for OCaml
LICENSE= modified-bsd
INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/uutf
OCAML_USE_FINDLIB= yes
.include "../../mk/ocaml.mk"
do-build:
.if ${OCAML_USE_OPT_COMPILER} == "yes"
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml ./pkg/build.ml \
native=true native-dynlink=true cmdliner=false
.else
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml ./pkg/build.ml \
native=false native-dynlink=false cmdliner=false
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/_build/pkg/META ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uutf
for i in uutf.mli uutf.cmi uutf.cma; do \
${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uutf; \
done
.if ${OCAML_USE_OPT_COMPILER} == "yes"
for i in uutf.cmx uutf.a uutf.cmxa uutf.cmxs; do \
${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uutf; \
done
.endif
.include "../../mk/bsd.pkg.mk"
|