1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.3
  10. PKG_RELEASE:=1
  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:=79329a07d8f79c19eadd7ea2752b4c4e1574b015
  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))