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

COMMENT =	OCaml build tool
CATEGORIES =	sysutils
# remember to adapt the number in MASTER_SITES, too.
DISTNAME =	oasis-0.4.4
MASTER_SITES =	http://forge.ocamlcore.org/frs/download.php/1391/

MAINTAINER =	Christopher Zimmermann <chrisz@openbsd.org>
HOMEPAGE =	http://oasis.forge.ocamlcore.org/

# LGPL 2.1
PERMIT_PACKAGE_CDROM =	Yes

MODULES +=	lang/ocaml

CONFIGURE_STYLE =	oasis
CONFIGURE_ARGS =	--enable-tests

BUILD_DEPENDS =		devel/ounit \
			devel/ocaml-fileutils \
			devel/ocaml-ocamlify \
			devel/ocaml-data-notation \
			devel/ocaml-mod \
			devel/ocaml-expect


post-patch:
	echo '/#use "deps.ml";;/d\n-r ${WRKSRC}/deps.ml\nwq' \
	  |ed -s ${WRKSRC}/setup.ml

post-install:
	${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${PREFIX}/share/doc/oasis/


.include <bsd.port.mk>
