54394b2eb2
gets compiled with the new mk/ocaml.mk. No upstream changes.
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2016/06/17 11:31:55 jaapb Exp $
|
|
|
|
DISTNAME= uutf-0.9.4
|
|
PKGNAME= ocaml-${DISTNAME}
|
|
PKGREVISION= 2
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://erratique.ch/software/uutf/releases/
|
|
EXTRACT_SUFX= .tbz
|
|
|
|
MAINTAINER= jaapb@NetBSD.org
|
|
HOMEPAGE= http://erratique.ch/software/uutf/
|
|
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 "../../devel/ocamlbuild/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|