0852c11f05
Does not include the enhanced top-level, which will be added in a later update. From Christopher Zimmermann <madroach@gmerlin.de> -- Lwt provides very light-weight cooperative threads for OCaml; ``launching'' a thread is a very fast operation, it does not require a new stack, a new process, or anything else. Moreover context switches are very fast. In fact, it is so easy that a thread can be launched for every system call. And composing cooperative threads will allow highly asynchronous programs.
39 lines
899 B
Makefile
39 lines
899 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2012/08/19 00:27:50 avsm Exp $
|
|
|
|
COMMENT = cooperative lightweight thread library
|
|
CATEGORIES = devel
|
|
|
|
DISTNAME = lwt-2.4.0
|
|
PKGNAME = ocaml-${DISTNAME}
|
|
MASTER_SITES = http://ocsigen.org/download/
|
|
|
|
HOMEPAGE = http://ocsigen.org/lwt/
|
|
|
|
|
|
# LGPLv2.1
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
MODULES = lang/ocaml
|
|
|
|
MYDEPENDS = devel/ocaml-react \
|
|
textproc/ocaml-text \
|
|
security/ocaml-ssl
|
|
BUILD_DEPENDS = ${MYDEPENDS} sysutils/findlib
|
|
RUN_DEPENDS = ${MYDEPENDS} lang/ocaml
|
|
LIB_DEPENDS = devel/glib2 devel/libev converters/libiconv
|
|
WANTLIB = glib-2.0 ev iconv intl pthread
|
|
|
|
CONFIGURE_STYLE = oasis
|
|
CONFIGURE_ARGS = --enable-tests --enable-react --enable-glib --enable-ssl
|
|
|
|
|
|
post-install:
|
|
${INSTALL_DATA} \
|
|
${WRKDIST}/{CHANGES,COPYING,README} \
|
|
${PREFIX}/share/doc/ocaml-lwt/
|
|
|
|
.include <bsd.port.mk>
|