[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / ocaml-jsonm

File: [cvs.NetBSD.org] / pkgsrc / textproc / ocaml-jsonm / Makefile (download)

Revision 1.12, Mon Nov 12 16:10:27 2018 UTC (13 months ago) by jaapb
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, HEAD
Changes since 1.11: +2 -2 lines

Revbumps associated with update of lang/ocaml.

# $NetBSD: Makefile,v 1.12 2018/11/12 16:10:27 jaapb Exp $

DISTNAME=	jsonm-1.0.1
PKGNAME=	ocaml-${DISTNAME}
PKGREVISION=	5
CATEGORIES=	textproc
MASTER_SITES=	http://erratique.ch/software/jsonm/releases/
EXTRACT_SUFX=	.tbz

MAINTAINER=	jaapb@NetBSD.org
HOMEPAGE=	http://erratique.ch/software/jsonm/
COMMENT=	OCaml streaming codec for JSON
LICENSE=	isc

OCAML_USE_TOPKG=	yes
INSTALLATION_DIRS+=	bin share/doc/jsonm

.include "../../mk/ocaml.mk"

# Normally, we'd do this using opam-installer, but that requires
# this package.
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/_build/test/jsontrip.native \
		${DESTDIR}${PREFIX}/bin/jsontrip
	for i in CHANGES.md LICENSE.md README.md test/examples.ml test/jtree.ml; do \
		${INSTALL_DATA} ${WRKSRC}/_build/$$i \
		${DESTDIR}${PREFIX}/share/doc/jsonm; \
	done
	${INSTALL_DATA} ${WRKSRC}/_build/opam \
		${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/jsonm/opam
	for i in pkg/META src/jsonm.cma src/jsonm.cmi src/jsonm.cmti \
		src/jsonm.mli; do \
		${INSTALL_DATA} ${WRKSRC}/_build/$$i \
		${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/jsonm; \
	done
.if ${OCAML_USE_OPT_COMPILER} == "yes"
	for i in jsonm.a jsonm.cmx jsonm.cmxa jsonm.cmxs; do \
		${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \
		${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/jsonm; \
	done
.endif

.include "../../devel/ocamlbuild/buildlink3.mk"
.include "../../textproc/ocaml-uutf/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"