pkgsrc-ng/www/ocsigen/options.mk
2016-01-21 23:40:00 +01:00

37 lines
884 B
Makefile

# $NetBSD: options.mk,v 1.4 2015/02/11 13:45:02 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocsigen
PKG_SUPPORTED_OPTIONS= camlzip
PKG_OPTIONS_NONEMPTY_SETS= database
PKG_OPTIONS_SET.database= sqlite gdbm
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