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.

48 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2015 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:=lua-lzlib
  9. PKG_VERSION:=0.4.1
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/LuaDist/lzlib.git
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_VERSION:=9fa3993bb4504fbbc10511cde141e1c6a48c072d
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/lua-lzlib
  20. SUBMENU:=Lua
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Lua zlib binding
  24. URL:=http://github.com/LuaDist/lzlib
  25. DEPENDS:= +lua +zlib
  26. endef
  27. define Package/lua-lzlib/description
  28. A library to access zlib library functions and also to read/write gzip files using an interface similar to the base io package.
  29. endef
  30. MAKE_FLAGS += \
  31. LUA="$(STAGING_DIR)/usr" \
  32. OFLAGS="$(TARGET_CFLAGS)" \
  33. define Package/lua-lzlib/install
  34. $(INSTALL_DIR) $(1)/usr/lib/lua
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/zlib.so $(1)/usr/lib/lua/
  36. $(INSTALL_DATA) $(PKG_BUILD_DIR)/gzip.lua $(1)/usr/lib/lua/
  37. endef
  38. $(eval $(call BuildPackage,lua-lzlib))