pkgsrc/net/ocaml-conduit/options.mk
jaapb 9acb2de049 Updated net/ocaml-conduit to version 5.1.0.
There are many upstream bugfixes and additions, but nothing breaking.
2022-05-11 10:40:58 +00:00

33 lines
790 B
Makefile

# $NetBSD: options.mk,v 1.3 2022/05/11 10:40:58 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml-conduit
PKG_SUPPORTED_OPTIONS= async lwt
PKG_SUGGESTED_OPTIONS= async lwt
.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"
.include "../../devel/ocaml-core/buildlink3.mk"
.include "../../devel/ocaml-ppx_here/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