41 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2016/03/29 11:27:01 naddy Exp $
COMMENT = cooperative lightweight thread library
CATEGORIES = devel
GH_ACCOUNT = ocsigen
GH_PROJECT = lwt
GH_TAGNAME = 2.4.8
REVISION = 1
# This is not the latest upstream version, but the last one that is most
# compatible due to an API change. Be careful about upgrading to lwt-2.5.0
# without checking that no in-tree ports break due to new buffer APIs.
PKGNAME = ocaml-${DISTNAME}
HOMEPAGE = http://ocsigen.org/lwt/
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c glib-2.0 ev m pthread
MODULES = lang/ocaml \
devel/gettext
MYDEPENDS = devel/ocaml-react \
textproc/ocaml-text \
security/ocaml-ssl \
devel/ocaml-ppx-tools
BUILD_DEPENDS = ${MYDEPENDS} sysutils/findlib lang/ocaml-camlp4
RUN_DEPENDS = ${MYDEPENDS}
LIB_DEPENDS = devel/glib2 devel/libev
CONFIGURE_STYLE = oasis
CONFIGURE_ARGS = --enable-tests --enable-react --enable-glib \
--enable-ssl --disable-docs --enable-camlp4 \
--enable-ppx
USE_GMAKE = Yes
.include <bsd.port.mk>