openbsd-ports/devel/ocaml-batteries/Makefile
chrisz 65055d41e1 Update lang/ocaml to 4.00.1.
Make all ocaml ports depend on the version of ocaml they were built with.
2012-11-30 19:08:05 +00:00

59 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2012/11/30 19:08:05 chrisz Exp $
COMMENT = OCaml Batteries Included - OCaml foundation library
CATEGORIES = devel
V = 1.5.0
REVISION= 0
DISTNAME = batteries-${V}
PKGNAME = ocaml-batteries-${V}
# You need to update MASTER_SITES too, when changing the version number.
MASTER_SITES = https://forge.ocamlcore.org/frs/download.php/950/
HOMEPAGE = http://batteries.forge.ocamlcore.org/
MAINTAINER = Christopher Zimmermann <madroach@gmerlin.de>
# LGPL >=2.1
PERMIT_PACKAGE_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
MODULES = lang/ocaml
RUN_DEPENDS = devel/ocaml-camomile
BUILD_DEPENDS = ${RUN_DEPENDS} sysutils/findlib
REGRESS_DEPENDS = devel/ounit
USE_GMAKE = Yes
MAKE_ENV = DOCROOT=${PREFIX}/share/doc/ocaml-batteries \
TERM=${TERM}
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mocaml_native}
MAKE_ENV += BATTERIES_NATIVE=yes
.else
MAKE_ENV += BATTERIES_NATIVE=no
.endif
FAKE_FLAGS = DESTDIR=${WRKINST}${PREFIX}/lib/ocaml \
DOCROOT=${WRKINST}${PREFIX}/share/doc/ocaml-batteries
ALL_TARGET = all doc
REGRESS_TARGET = test
INSTALL_TARGET = install install-doc
pre-fake:
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml
post-install:
${INSTALL_DATA} \
${WRKSRC}/ocamlinit \
${PREFIX}/share/doc/ocaml-batteries/
.include <bsd.port.mk>