Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. include $(TOPDIR)/rules.mk
  7. LUCI_TITLE:=NIXIO POSIX library
  8. LUCI_DEPENDS:=+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl +liblua
  9. PKG_LICENSE:=Apache-2.0
  10. define Package/luci-lib-nixio/config
  11. choice
  12. prompt "TLS Provider"
  13. default PACKAGE_luci-lib-nixio_notls
  14. config PACKAGE_luci-lib-nixio_notls
  15. bool "Disabled"
  16. config PACKAGE_luci-lib-nixio_axtls
  17. bool "Builtin (axTLS)"
  18. config PACKAGE_luci-lib-nixio_cyassl
  19. bool "CyaSSL"
  20. select PACKAGE_libcyassl
  21. config PACKAGE_luci-lib-nixio_openssl
  22. bool "OpenSSL"
  23. select PACKAGE_libopenssl
  24. endchoice
  25. endef
  26. NIXIO_TLS:=
  27. ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls),)
  28. NIXIO_TLS:=axtls
  29. endif
  30. ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl),)
  31. NIXIO_TLS:=openssl
  32. endif
  33. ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
  34. NIXIO_TLS:=cyassl
  35. LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
  36. endif
  37. MAKE_VARS += NIXIO_TLS="$(NIXIO_TLS)"
  38. include ../../luci.mk
  39. # call BuildPackage - OpenWrt buildroot signature