blob: 91832a906a0697171779f17c0db94862bc6d7c00 (
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
|
# $NetBSD: Makefile,v 1.5 2018/04/13 13:55:38 jaapb Exp $
VERSION= 0.0.1
PKGREVISION= 4
GITHUB_PROJECT= uchar
GITHUB_TAG= v${VERSION}
DISTNAME= ${GITHUB_PROJECT}-${VERSION}
PKGNAME= ocaml-${DISTNAME}
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=ocaml/}
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= https://github.com/ocaml/uchar/
COMMENT= Compatibility library for the OCaml UChar module
LICENSE= gnu-lgpl-v2.1
INSTALLATION_DIRS= ${OCAML_SITELIBDIR}/uchar
.include "../../mk/ocaml.mk"
.if ${OCAML_USE_OPT_COMPILER} == "yes"
NATIVE= true
.else
NATIVE= false
.endif
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml ./pkg/build.ml \
native=${NATIVE} native-dynlink=${NATIVE}
do-install:
${INSTALL_DATA} ${WRKSRC}/pkg/META.empty ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uchar/META
.include "../../devel/ocamlbuild/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|