restored nixio tls providers
[oweals/luci.git] / libs / luci-lib-nixio / Makefile
1 #
2 # Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
3 #
4 # This is free software, licensed under the Apache License, Version 2.0 .
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 LUCI_TITLE:=NIXIO POSIX library
10 LUCI_DEPENDS:=+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl +liblua
11
12 PKG_LICENSE:=Apache-2.0
13
14 define Package/luci-lib-nixio/config
15         choice
16                 prompt "TLS Provider"
17                 default PACKAGE_luci-lib-nixio_notls
18
19                 config PACKAGE_luci-lib-nixio_notls
20                         bool "Disabled"
21
22                 config PACKAGE_luci-lib-nixio_axtls
23                         bool "Builtin (axTLS)"
24
25                 config PACKAGE_luci-lib-nixio_cyassl
26                         bool "CyaSSL"
27                         select PACKAGE_libcyassl
28
29                 config PACKAGE_luci-lib-nixio_openssl
30                         bool "OpenSSL"
31                         select PACKAGE_libopenssl
32         endchoice
33 endef
34
35 NIXIO_TLS:=
36
37 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls),)
38   NIXIO_TLS:=axtls
39 endif
40
41 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl),)
42   NIXIO_TLS:=openssl
43 endif
44
45 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
46   NIXIO_TLS:=cyassl
47   LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
48 endif
49
50 MAKE_VARS += NIXIO_TLS="$(NIXIO_TLS)"
51
52 include ../../luci.mk
53
54 # call BuildPackage - OpenWrt buildroot signature