pkgsrc/net/ocamlnet/options.mk

53 lines
972 B
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.7 2017/07/17 12:30:55 jaapb Exp $
Update to 3.5.1, from Jaap Boender. 6 years of changes. 3.5.1 in particular has: it is time for another version of Ocamlnet. The new release 3.5 focuses on the system interface, and includes a long list of smaller improvements. The system interface, Netsys_posix, is extended by: - Support for POSIX clocks and POSIX timers (with nanosecond resolution) - Netsys_posix.spawn usses now the posix_spawn call if present on the OS - Adding support for pollable events (as e.g. provided by Linux via eventfd). For other OS an emulation is available. - Support for epoll on Linux Note that Netsys_posix covers now large parts of POSIX realtime. Other improvements: - The code generator for XDR has been improved. A new switch -direct for ocamlrpcgen can be used to generate direct mappings between OCaml values and binary representation (in many cases). Speedups up to 50% are possible for large XDR values. - The new module Uq_mt allows it to access an event-driven resource from several kernel threads (e.g. use an RPC client commonly from several threads). - The thread-safety of Netplex container functions has been improved. - Netmulticore condition variables can now be polled, for better integration into event-based programs. - Option greedy_accepts for Netplex to support servers that accept many connections per second. With this improvement, Netplex can now accept more than 5000 connections/s, and assign them to worker processes. Last but not least there is now a new tutorial for Equeue (event systems and engines). In particular, the section about combining Ocamlnet with Lwt might be interesting.
2012-07-06 11:29:14 +02:00
PKG_OPTIONS_VAR= PKG_OPTIONS.ocamlnet
PKG_SUPPORTED_OPTIONS= gtk gtk2 gnutls cmxs
PKG_SUGGESTED_OPTIONS= gnutls
PLIST_VARS+= gnutls cmxs
Update to 3.5.1, from Jaap Boender. 6 years of changes. 3.5.1 in particular has: it is time for another version of Ocamlnet. The new release 3.5 focuses on the system interface, and includes a long list of smaller improvements. The system interface, Netsys_posix, is extended by: - Support for POSIX clocks and POSIX timers (with nanosecond resolution) - Netsys_posix.spawn usses now the posix_spawn call if present on the OS - Adding support for pollable events (as e.g. provided by Linux via eventfd). For other OS an emulation is available. - Support for epoll on Linux Note that Netsys_posix covers now large parts of POSIX realtime. Other improvements: - The code generator for XDR has been improved. A new switch -direct for ocamlrpcgen can be used to generate direct mappings between OCaml values and binary representation (in many cases). Speedups up to 50% are possible for large XDR values. - The new module Uq_mt allows it to access an event-driven resource from several kernel threads (e.g. use an RPC client commonly from several threads). - The thread-safety of Netplex container functions has been improved. - Netmulticore condition variables can now be polled, for better integration into event-based programs. - Option greedy_accepts for Netplex to support servers that accept many connections per second. With this improvement, Netplex can now accept more than 5000 connections/s, and assign them to worker processes. Last but not least there is now a new tutorial for Equeue (event systems and engines). In particular, the section about combining Ocamlnet with Lwt might be interesting.
2012-07-06 11:29:14 +02:00
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
###
### GTK(1) support
###
.if !empty(PKG_OPTIONS:Mgtk)
. include "../../x11/lablgtk1/buildlink3.mk"
CONFIGURE_ARGS+= -enable-gtk
.else
CONFIGURE_ARGS+= -disable-gtk
.endif
###
### GTK(2) support
###
.if !empty(PKG_OPTIONS:Mgtk2)
. include "../../x11/ocaml-lablgtk/buildlink3.mk"
CONFIGURE_ARGS+= -enable-gtk2
.else
CONFIGURE_ARGS+= -disable-gtk2
.endif
###
### GNU TLS support
###
.if !empty(PKG_OPTIONS:Mgnutls)
. include "../../security/gnutls/buildlink3.mk"
PLIST.gnutls= yes
CONFIGURE_ARGS+= -enable-gnutls
.else
CONFIGURE_ARGS+= -disable-gnutls
.endif
###
### cmxs support
###
.if !empty(PKG_OPTIONS:Mcmxs)
PLIST.cmxs= yes
MAKE_ENV+= HAVE_SHARED=1
.else
MAKE_ENV+= HAVE_SHARED=0
.endif