blob: 6aa4e741f82bbf120772c251a460d4628a9cfa04 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# $NetBSD: options.mk,v 1.1 2014/01/23 14:47:05 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.py-uwsgi
PKG_SUPPORTED_OPTIONS= debug openssl pcre uuid yaml zlib
PKG_SUGGESTED_OPTIONS+= libxml2 openssl zlib
PKG_OPTIONS_OPTIONAL_GROUPS+= json xml
PKG_OPTIONS_GROUP.json= jansson yajl
PKG_OPTIONS_GROUP.xml= expat libxml2
.include "../../mk/bsd.options.mk"
UWSGI_DEBUG= debug=false;
.if !empty(PKG_OPTIONS:Mdebug)
UWSGI_DEBUG= debug=true;
.endif
UWSGI_XML= xml=auto;
.if !empty(PKG_OPTIONS:Mexpat)
.include "../../textproc/expat/buildlink3.mk"
UWSGI_XML= xml=expat;
.elif !empty(PKG_OPTIONS:Mlibxml2)
.include "../../textproc/libxml2/buildlink3.mk"
UWSGI_XML= xml=libxml2;
.else
UWSGI_XML= xml=false;
.endif
UWSGI_JSON= json=auto;
.if !empty(PKG_OPTIONS:Mjansson)
.include "../../textproc/jansson/buildlink3.mk"
UWSGI_JSON= json=jansson;
.elif !empty(PKG_OPTIONS:Myajl)
.include "../../devel/yajl/buildlink3.mk"
UWSGI_JSON= json=yajl;
BROKEN= The yajl option requires a yajl.pc file which that package doesn't have.
.else
UWSGI_JSON= json=false;
.endif
UWSGI_SSL= ssl=auto;
.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
UWSGI_SSL= ssl=true;
.else
UWSGI_SSL= ssl=false;
.endif
UWSGI_PCRE= pcre=auto;
.if !empty(PKG_OPTIONS:Mpcre)
.include "../../devel/pcre/buildlink3.mk"
UWSGI_PCRE= pcre=true;
.else
UWSGI_PCRE= pcre=false;
.endif
UWSGI_UUID= uuid=auto;
.if !empty(PKG_OPTIONS:Muuid)
.include "../../devel/libuuid/buildlink3.mk"
UWSGI_UUID= uuid=true;
.else
UWSGI_UUID= uuid=false;
.endif
UWSGI_YAML= yaml=auto
.if !empty(PKG_OPTIONS:Myaml)
.include "../../textproc/libyaml/buildlink3.mk"
UWSGI_YAML= yaml=true
.else
UWSGI_YAML= yaml=false
.endif
.if !empty(PKG_OPTIONS:Mzlib)
.include "../../devel/zlib/buildlink3.mk"
.endif
|