[packages] php5: upgrade to 5.4.27
[packages.git] / lang / luacurl / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=luacurl
11 PKG_VERSION:=20140207
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/msva/lua-curl.git
16 PKG_SOURCE_VERSION:=047ac31ecd18c2526eed84e349e5016de2633fac
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 define Package/luacurl
24   SUBMENU:=Lua
25   SECTION:=lang
26   CATEGORY:=Languages
27   TITLE:=Lua-cURL
28   URL:=http://msva.github.io/lua-curl/
29   DEPENDS:=+liblua +libcurl
30 endef
31
32 define Package/luacurl/description
33  Lua-cURL is aiming for a full-fledged libcurl binding (easy/multi/share
34  interface) to the functionality of Lua
35 endef
36
37 CMAKE_OPTIONS += \
38         -DUSE_LUA=ON
39
40 define Package/luacurl/install
41         $(INSTALL_DIR) $(1)/usr/lib/lua
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/cURL.so $(1)/usr/lib/lua/
43 endef
44
45 $(eval $(call BuildPackage,luacurl))