mirror of
http://git.openwrt.org/packages.git
synced 2025-01-09 04:19:54 +08:00
[packages] luacurl: add package
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39523 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b5673aa54a
commit
62ccef795d
45
lang/luacurl/Makefile
Normal file
45
lang/luacurl/Makefile
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2014 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=luacurl
|
||||||
|
PKG_VERSION:=20140207
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://github.com/msva/lua-curl.git
|
||||||
|
PKG_SOURCE_VERSION:=047ac31ecd18c2526eed84e349e5016de2633fac
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
|
define Package/luacurl
|
||||||
|
SUBMENU:=Lua
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
TITLE:=Lua-cURL
|
||||||
|
URL:=http://msva.github.io/lua-curl/
|
||||||
|
DEPENDS:=+liblua +libcurl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/luacurl/description
|
||||||
|
Lua-cURL is aiming for a full-fledged libcurl binding (easy/multi/share
|
||||||
|
interface) to the functionality of Lua
|
||||||
|
endef
|
||||||
|
|
||||||
|
CMAKE_OPTIONS += \
|
||||||
|
-DUSE_LUA=ON
|
||||||
|
|
||||||
|
define Package/luacurl/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cURL.so $(1)/usr/lib/lua/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,luacurl))
|
Loading…
Reference in New Issue
Block a user