pkgsrc/net/ocaml-conduit/options.mk
yyamano d4c84e526f Enable async and lwt options to fix www/ocaml-cohttp build errors.
Bump PKGREVISION.
OK'ed by jaapb and gdt.
2020-06-29 10:15:07 +00:00

31 lines
692 B
Makefile

# $NetBSD: options.mk,v 1.2 2020/06/29 10:15:07 yyamano 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"
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