1 include $(TOPDIR)/rules.mk
7 PKG_SOURCE_URL=https://github.com/jow-/lucihttp.git
8 PKG_SOURCE_DATE:=2019-07-05
9 PKG_SOURCE_VERSION:=a34a17d501c0e23f0a91dd9d3e87697347c861ba
10 PKG_MIRROR_HASH:=f08b526515b4a654e5529457da9d0676696170846288c55863dba087417a0483
14 PKG_LICENSE_FILES:=LICENSE
16 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
17 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_liblucihttp-lua
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/cmake.mk
22 define Package/liblucihttp
25 TITLE:=LuCI HTTP utility library
29 define Package/liblucihttp-lua
32 DEPENDS:=+liblucihttp +liblua
33 TITLE:=Lua binding for the LuCI HTTP utility library
36 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
39 -DLUAPATH=/usr/lib/lua \
40 -DBUILD_LUA=$(if $(CONFIG_PACKAGE_liblucihttp-lua),ON,OFF) \
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblucihttp.so* $(1)/usr/lib/
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
50 define Package/liblucihttp/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblucihttp.so.* $(1)/usr/lib/
55 define Package/liblucihttp-lua/install
56 $(INSTALL_DIR) $(1)/usr/lib/lua
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/lucihttp.so $(1)/usr/lib/lua/
60 $(eval $(call BuildPackage,liblucihttp))
61 $(eval $(call BuildPackage,liblucihttp-lua))