pkgsrc/net/ocaml-conduit/options.mk
jaapb 194c6747ac Added package net/ocaml-conduit, an OCaml network connection library
This is needed as a dependency for www/ocaml-cohttp.
2019-07-01 16:01:36 +00:00

31 lines
680 B
Makefile

# $NetBSD: options.mk,v 1.1 2019/07/01 16:01:36 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml-conduit
PKG_SUPPORTED_OPTIONS= async lwt
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
PLIST_VARS+= async lwt
###
### async support
###
.if !empty(PKG_OPTIONS:Masync)
.include "../../devel/ocaml-async/buildlink3.mk"
DUNE_BUILD_PACKAGES+= conduit-async
OPAM_INSTALL_FILES+= conduit-async
PLIST.async= yes
.endif
###
### lwt support
###
.if !empty(PKG_OPTIONS:Mlwt)
.include "../../devel/ocaml-lwt/buildlink3.mk"
DUNE_BUILD_PACKAGES+= conduit-lwt conduit-lwt-unix
OPAM_INSTALL_FILES+= conduit-lwt conduit-lwt-unix
PLIST.lwt= yes
.endif