# $NetBSD: options.mk,v 1.7 2019/11/04 22:09:58 rillig Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.ocsigen PKG_SUPPORTED_OPTIONS= camlzip PKG_OPTIONS_NONEMPTY_SETS= database PKG_OPTIONS_SET.database= sqlite gdbm pgsql PKG_SUGGESTED_OPTIONS= gdbm camlzip .include "../../mk/bsd.options.mk" PLIST_VARS+= sqlite .if !empty(PKG_OPTIONS:Msqlite) DEPENDS+= ocaml-sqlite3>=0.23.0:../../databases/ocaml-sqlite3 CONFIGURE_ARGS+= --with-sqlite PLIST.sqlite= yes .else CONFIGURE_ARGS+= --without-sqlite .endif PLIST_VARS+= dbm .if !empty(PKG_OPTIONS:Mgdbm) .include "../../databases/ocaml-dbm/buildlink3.mk" CONFIGURE_ARGS+= --with-dbm PLIST.dbm= yes .else CONFIGURE_ARGS+= --without-dbm .endif PLIST_VARS+= camlzip .if !empty(PKG_OPTIONS:Mcamlzip) DEPENDS+= ocaml-zip-[0-9]*:../../archivers/ocaml-zip CONFIGURE_ARGS+= --with-camlzip PLIST.camlzip= yes .else CONFIGURE_ARGS+= --without-camlzip .endif PLIST_VARS+= pgsql .if !empty(PKG_OPTIONS:Mpgsql) .include "../../databases/pgocaml/buildlink3.mk" CONFIGURE_ARGS+= --with-pgsql PLIST.pgsql= yes .else CONFIGURE_ARGS+= --without-pgsql .endif