1 # Copyright (C) 2008 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://luaforge.net
/frs
/download.php
/3063
16 PKG_MD5SUM
:=31deeb4add91f76b3c2d36aae2888d81
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/luaposix
27 TITLE
:=Posix library for Lua
28 URL
:=http
://luaforge.net
/projects
/luaposix
/
32 define Build
/Configure
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 CC
="$(TARGET_CROSS)gcc" \
38 LD
="$(TARGET_CROSS)ld" \
39 AR
="$(TARGET_CROSS)ar rcu" \
40 RANLIB
="$(TARGET_CROSS)ranlib" \
42 LUAINC
=$(STAGING_DIR
)/usr
/include
43 $(STRIP
) $(PKG_BUILD_DIR
)/posix.so
46 define Package
/luaposix
/install
47 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
48 $(CP
) $(PKG_BUILD_DIR
)/posix.so
$(1)/usr
/lib
/lua
51 $(eval
$(call BuildPackage
,luaposix
))