openbsd-ports/devel/ocaml-batteries/Makefile
avsm 8bd1d40a7d update to ocaml-batteries-1.5.0
* META info fixed upstream
* move cmxs to PFRAG.native-dynlink
* update ocamlfind sitelib path
* /usr/local/ocaml/site-lib/batteries/ocaml is a script, not executable
* Fix toplevel help system
  The path to the documentation is hardcoded at build time.
  Therefore DOCROOT may not be prefixed by WRKINST at build time.

From: Christopher Zimmermann <madroach@gmerlin.de>
2012-08-18 22:04:48 +00:00

58 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.3 2012/08/18 22:04:48 avsm Exp $
COMMENT = OCaml Batteries Included - OCaml foundation library
CATEGORIES = devel
V = 1.5.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>