summaryrefslogtreecommitdiff
path: root/www/bozohttpd/options.mk
blob: f1a027c3f6ba3f6adeb76e69e61c1f50618082f5 (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
26
27
28
# $NetBSD: options.mk,v 1.4 2021/06/06 13:38:43 nia Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.bozohttpd
PKG_SUPPORTED_OPTIONS=	lua ssl
PKG_SUGGESTED_OPTIONS=	lua ssl

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

###
### Support for Lua
###
.if !empty(PKG_OPTIONS:Mlua)
.  include "../../lang/lua/buildlink3.mk"
MAKE_FLAGS+=	EXTRALIBS="-llua"
.else
BOZO_CFLAGS+=	-DNO_LUA_SUPPORT
.endif

###
### Support for SSL
###
.if !empty(PKG_OPTIONS:Mssl)
CPPFLAGS+=	-DDO_HTPASSWD
.  include "../../security/openssl/buildlink3.mk"
.else
BOZO_CFLAGS+=	-DNO_SSL_SUPPORT
MAKE_FLAGS+=	CRYPTOLIBS=""
.endif