# $NetBSD: Makefile,v 1.13 2016/12/30 11:16:59 jaapb Exp $ DISTNAME= react-1.2.0 PKGNAME= ocaml-${DISTNAME} PKGREVISION= 5 CATEGORIES= devel MASTER_SITES= http://erratique.ch/software/react/releases/ EXTRACT_SUFX= .tbz MAINTAINER= jaapb@NetBSD.org HOMEPAGE= http://erratique.ch/software/react COMMENT= OCaml module for functional reactive programming LICENSE= modified-bsd CONFIGURE_ARGS+= --prefix "${PREFIX}" --destdir "${DESTDIR}" INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/react 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 .else cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml pkg/build.ml .endif do-install: for i in react.cma react.cmi react.mli react_top.cma; do \ ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \ ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/react; \ done .if ${OCAML_USE_OPT_COMPILER} == yes for i in react.a react.cmx react.cmxa react.cmxs react_top.a react_top.cmxa \ react_top.cmxs; do \ ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \ ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/react; \ done .endif ${INSTALL_DATA} ${WRKSRC}/_build/pkg/META \ ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/react .include "../../devel/ocamlbuild/buildlink3.mk" .include "../../mk/bsd.pkg.mk"