2018-03-17 00:39:54 +01:00
|
|
|
# $NetBSD: options.mk,v 1.3 2018/03/16 23:39:54 joerg Exp $
|
2014-01-23 15:47:05 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.py-uwsgi
|
2018-03-17 00:39:54 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= debug openssl pcre uuid yaml
|
|
|
|
PKG_SUGGESTED_OPTIONS+= libxml2 openssl
|
2014-01-23 15:47:05 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= json xml
|
|
|
|
PKG_OPTIONS_GROUP.json= jansson yajl
|
|
|
|
PKG_OPTIONS_GROUP.xml= expat libxml2
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_DEBUG= debug=false
|
2014-01-23 15:47:05 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_DEBUG= debug=true
|
2014-01-23 15:47:05 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mexpat)
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_XML= xml=expat
|
2014-01-23 15:47:05 +01:00
|
|
|
.elif !empty(PKG_OPTIONS:Mlibxml2)
|
|
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_XML= xml=libxml2
|
2014-01-23 15:47:05 +01:00
|
|
|
.else
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_XML= xml=false
|
2014-01-23 15:47:05 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mjansson)
|
|
|
|
.include "../../textproc/jansson/buildlink3.mk"
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_JSON= json=jansson
|
2014-01-23 15:47:05 +01:00
|
|
|
.elif !empty(PKG_OPTIONS:Myajl)
|
|
|
|
.include "../../devel/yajl/buildlink3.mk"
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_JSON= json=yajl
|
2014-01-23 15:47:05 +01:00
|
|
|
BROKEN= The yajl option requires a yajl.pc file which that package doesn't have.
|
|
|
|
.else
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_JSON= json=false
|
2014-01-23 15:47:05 +01:00
|
|
|
.endif
|
|
|
|
|
2018-03-17 00:39:54 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mopenssl)
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
UWSGI_SSL= ssl=true
|
|
|
|
.else
|
|
|
|
UWSGI_SSL= ssl=false
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mpcre)
|
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
|
|
UWSGI_PCRE= pcre=true
|
|
|
|
.else
|
|
|
|
UWSGI_PCRE= pcre=false
|
|
|
|
.endif
|
|
|
|
|
2014-01-23 15:47:05 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Muuid)
|
|
|
|
.include "../../devel/libuuid/buildlink3.mk"
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_UUID= uuid=true
|
2014-01-23 15:47:05 +01:00
|
|
|
.else
|
2018-02-13 09:34:03 +01:00
|
|
|
UWSGI_UUID= uuid=false
|
2014-01-23 15:47:05 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Myaml)
|
|
|
|
.include "../../textproc/libyaml/buildlink3.mk"
|
|
|
|
UWSGI_YAML= yaml=true
|
|
|
|
.else
|
|
|
|
UWSGI_YAML= yaml=false
|
|
|
|
.endif
|