# $OpenBSD: Makefile,v 1.4 2012/11/30 19:38:09 chrisz Exp $

COMMENT =	Store data using OCaml notation
CATEGORIES =	devel

# The last url component in MASTER_SITES changes every release, too.
DISTNAME =	ocaml-data-notation-0.0.11
MASTER_SITES =	https://forge.ocamlcore.org/frs/download.php/1310/

HOMEPAGE =	https://forge.ocamlcore.org/projects/odn/
MAINTAINER =	Christopher Zimmermann <chrisz@openbsd.org>

# LGPL 2.1
PERMIT_PACKAGE_CDROM =	Yes

MODULES =		lang/ocaml

CONFIGURE_STYLE =	oasis
CONFIGURE_ARGS =	--enable-tests

RUN_DEPENDS =		devel/ocaml-type-conv
BUILD_DEPENDS =		${RUN_DEPENDS} \
			sysutils/findlib \
			devel/ocaml-fileutils \
			devel/ounit


post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-data-notation/
	${INSTALL_DATA} \
	  ${WRKSRC}/CHANGES.txt \
	  ${PREFIX}/share/doc/ocaml-data-notation/


.include <bsd.port.mk>
