You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2009-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=luasec
  9. PKG_VERSION:=0.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://files.luaforge.net/releases/luasec/LuaSec/LuaSec0.4/
  13. PKG_MD5SUM:=712158d60207bdbb6215fc7e07d8db24
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/luasec
  17. SUBMENU:=Lua
  18. SECTION:=lang
  19. CATEGORY:=Languages
  20. TITLE:=LuaSec
  21. URL:=http://luasec.luaforge.net/
  22. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  23. DEPENDS:=+lua +libopenssl +luasocket
  24. endef
  25. define Package/luasec/description
  26. LuaSec is a binding for OpenSSL library to provide TLS/SSL communication.
  27. endef
  28. define Build/Configure
  29. endef
  30. MAKE_PATH = ./src
  31. MAKE_FLAGS += \
  32. INCDIR="$(TARGET_CPPFLAGS)" \
  33. LIBDIR="$(TARGET_LDFLAGS)" \
  34. CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99" \
  35. LD="$(TARGET_CROSS)ld -shared" \
  36. LUACPATH="$(PKG_INSTALL_DIR)/usr/lib/lua" \
  37. LUAPATH="$(PKG_INSTALL_DIR)/usr/lib/lua" \
  38. linux \
  39. define Package/luasec/install
  40. $(INSTALL_DIR) $(1)/usr/lib/lua
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl.so $(1)/usr/lib/lua/
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl.lua $(1)/usr/lib/lua/
  43. $(INSTALL_DIR) $(1)/usr/lib/lua/ssl
  44. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl/https.lua $(1)/usr/lib/lua/ssl/
  45. endef
  46. $(eval $(call BuildPackage,luasec))