summaryrefslogtreecommitdiff
path: root/www/ocsigen/options.mk
blob: 6b4c519b5095b8b1c5ca62bdb62d32615cb16e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $NetBSD: options.mk,v 1.2 2012/07/11 10:40:47 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.ocsigen
PKG_SUPPORTED_OPTIONS=	sqlite camlzip
PKG_SUGGESTED_OPTIONS=	camlzip

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Msqlite)
DEPENDS+=		ocaml-sqlite3>=0.23.0:../../databases/ocaml-sqlite3
CONFIGURE_ARGS+=	--with-sqlite
PLIST_SRC+=		PLIST.sqlite
.else
CONFIGURE_ARGS+=	--without-sqlite
.endif

.if !empty(PKG_OPTIONS:Mcamlzip)
DEPENDS+=		ocaml-zip-[0-9]*:../../archivers/ocaml-zip
CONFIGURE_ARGS+=	--with-camlzip
PLIST_SRC+=		PLIST.camlzip
.else
CONFIGURE_ARGS+=	--without-camlzip
.endif

PLIST_SRC+=		PLIST