mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
ccc685e lua: expose LH_URLDECODE_PLUS flag in Lua library Signed-off-by: Jo-Philipp Wich <jo@mein.io>
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lucihttp
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=https://github.com/jow-/lucihttp.git
|
|
PKG_SOURCE_DATE:=2018-04-22
|
|
PKG_SOURCE_VERSION:=ccc685e5c366490fc9f50a2e211ec79b7cf5962e
|
|
PKG_MIRROR_HASH:=48608971cdfe20a6ad476fbf461527e4bf4786afeb8316fd6c38412bfeed4a3c
|
|
CMAKE_INSTALL:=1
|
|
|
|
PKG_LICENSE:=ISC
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_liblucihttp-lua
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/liblucihttp
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
ABI_VERSION:=$(PKG_VERSION)
|
|
TITLE:=LuCI HTTP utility library
|
|
endef
|
|
|
|
define Package/liblucihttp-lua
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+liblucihttp +liblua
|
|
TITLE:=Lua binding for the LuCI HTTP utility library
|
|
endef
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
|
|
|
|
CMAKE_OPTIONS = \
|
|
-DLUAPATH=/usr/lib/lua \
|
|
-DBUILD_LUA=$(if $(CONFIG_PACKAGE_liblucihttp-lua),ON,OFF) \
|
|
-DBUILD_TESTS=OFF
|
|
|
|
define Package/liblucihttp/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblucihttp.so $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/liblucihttp-lua/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/lucihttp.so $(1)/usr/lib/lua/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,liblucihttp))
|
|
$(eval $(call BuildPackage,liblucihttp-lua))
|