41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2015/06/30 11:52:57 jaapb Exp $
|
|
|
|
VERSION= 0.1
|
|
PKGNAME= ocaml-reactiveData-${VERSION}
|
|
PKGREVISION= 1
|
|
DISTNAME= ${VERSION}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://github.com/hhugo/reactiveData/archive/
|
|
DIST_SUBDIR= ocaml-reactiveData
|
|
|
|
MAINTAINER= jaapb@NetBSD.org
|
|
HOMEPAGE= http://github.com/hhugo/reactiveData
|
|
COMMENT= Functional reactive programming library
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
WRKSRC= ${WRKDIR}/reactiveData-0.1
|
|
OCAML_USE_FINDLIB= yes
|
|
|
|
.include "../../mk/ocaml.mk"
|
|
|
|
INSTALL_FILES= cma cmi mli
|
|
.if ${OCAML_USE_OPT_COMPILER} == "yes"
|
|
MAKE_ENV+= NATIVE=true
|
|
INSTALL_FILES+= a cmx cmxa cmxs
|
|
.else
|
|
MAKE_ENV+= NATIVE=false
|
|
.endif
|
|
BUILD_TARGET= build
|
|
|
|
INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/reactiveData
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/_build/pkg/META \
|
|
${DESTDIR}/${PREFIX}/${OCAML_SITELIBDIR}/reactiveData
|
|
for i in ${INSTALL_FILES}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/_build/src/reactiveData.$$i \
|
|
${DESTDIR}/${PREFIX}/${OCAML_SITELIBDIR}/reactiveData; \
|
|
done
|
|
|
|
.include "../../devel/ocaml-react/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|