Change source URLs to local mirror
[project/luci.git] / contrib / package / luaposix / Makefile
1 # Copyright (C) 2008 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=luaposix
11 PKG_VERSION:=5.1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dev.luci.freifunk-halle.net/sources/\
16 http://luaforge.net/frs/download.php/3449
17 PKG_MD5SUM:=4271f321c39d0560d9fbe6ca882a67aa
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/luaposix
25 SECTION:=lang
26 CATEGORY:=Languages
27 SUBMENU:=LUA
28 TITLE:=Posix library for Lua
29 URL:=http://luaforge.net/projects/luaposix/
30 DEPENDS:=+liblua
31 endef
32
33 define Build/Configure
34 endef
35
36 MAKE_FLAGS += \
37 OS=Linux
38
39 define Package/luaposix/install
40 $(INSTALL_DIR) $(1)/usr/lib/lua
41 $(CP) $(PKG_BUILD_DIR)/posix.so $(1)/usr/lib/lua
42 endef
43
44 $(eval $(call BuildPackage,luaposix))