pkgsrc/devel/ocaml-cstruct/options.mk
jaapb bb6794431d Updated devel/ocaml-cstruct to version 6.1.0.
There are many changes, including API-breaking ones (see the changelog in
the distribution for more details). The package has also been updated to
allow for lwt and async options.
2022-05-05 11:40:16 +00:00

33 lines
758 B
Makefile

# $NetBSD: options.mk,v 1.1 2022/05/05 11:40:16 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml-cstruct
PKG_SUPPORTED_OPTIONS= async lwt
PKG_SUGGESTED_OPTIONS= # empty
.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-async_unix/buildlink3.mk"
.include "../../devel/ocaml-core/buildlink3.mk"
PLIST.async= yes
DUNE_BUILD_PACKAGES+= cstruct-async
OPAM_INSTALL_FILES+= cstruct-async
.endif
###
### lwt support
###
.if !empty(PKG_OPTIONS:Mlwt)
.include "../../devel/ocaml-lwt/buildlink3.mk"
PLIST.lwt= yes
DUNE_BUILD_PACKAGES+= cstruct-lwt
OPAM_INSTALL_FILES+= cstruct-lwt
.endif