# $NetBSD: Makefile,v 1.3 2017/09/08 09:51:26 jaapb Exp $
VERSION= 0.0.1
PKGREVISION= 2
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"
CVSweb <webmaster@jp.NetBSD.org>