pkgsrc/devel/ocaml-jbuilder/Makefile
jaapb a511bf5bc2 Updated devel/ocaml-jbuilder to latest version, 1.0+beta16.
Changes are minor, non-breaking bugfixes, see CHANGES.md.
2018-01-10 15:02:30 +00:00

46 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2018/01/10 15:02:30 jaapb Exp $
VERSION= 1.0_beta16
GITHUB_PROJECT= jbuilder
GITHUB_TAG= ${VERSION:S/_/+/}
DISTNAME= ${GITHUB_PROJECT}-${GITHUB_TAG}
PKGNAME= ocaml-${GITHUB_PROJECT}-${VERSION}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=janestreet/}
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= https://github.com/janestreet/jbuilder/
COMMENT= Composable build system for OCaml
LICENSE= apache-2.0
WRKSRC= ${WRKDIR}/jbuilder-1.0-beta16
USE_LANGUAGES= # none
BUILD_TARGET= default
MAKE_ENV+= MAKE_JOBS=${MAKE_JOBS:U1}
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${OCAML_SITELIBDIR}/jbuilder
OCAML_USE_FINDLIB= yes
OCAML_FINDLIB_DIRS= jbuilder stublibs
.include "../../mk/ocaml.mk"
# Installation via OPAM does not work (OPAM needs to be set up)
do-install:
for i in META; do \
${INSTALL_DATA} ${WRKSRC}/_build/install/default/lib/jbuilder/$$i \
${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/jbuilder; \
done;
for i in jbuilder; do \
${INSTALL_PROGRAM} ${WRKSRC}/_build/install/default/bin/$$i \
${DESTDIR}${PREFIX}/bin; \
done;
for i in jbuilder.1 jbuilder-build.1 jbuilder-clean.1 \
jbuilder-exec.1 jbuilder-external-lib-deps.1 \
jbuilder-install.1 jbuilder-installed-libraries.1 jbuilder-rules.1 \
jbuilder-runtest.1 jbuilder-subst.1 jbuilder-uninstall.1; do \
${INSTALL_MAN} ${WRKSRC}/_build/install/default/man/man1/$$i \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
done;
.include "../../mk/bsd.pkg.mk"