1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=http
://luaforge.net
/frs
/download.php
/3063
9 PKG_MD5SUM
:=31deeb4add91f76b3c2d36aae2888d81
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/luaposix
19 TITLE
:=Lua Posix library
20 URL
:=http
://luaforge.net
/projects
/luaposix
/
22 MAINTAINER
:=Steven Barth
<steven-at-midlink-dot-org
>
25 define Build
/Configure
29 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
30 CC
="$(TARGET_CROSS)gcc" \
31 LD
="$(TARGET_CROSS)ld" \
32 AR
="$(TARGET_CROSS)ar rcu" \
33 RANLIB
="$(TARGET_CROSS)ranlib" \
35 LUAINC
=$(STAGING_DIR
)/usr
/include
38 define Package
/luaposix
/install
39 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
40 $(STRIP
) $(PKG_BUILD_DIR
)/posix.so
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/posix.so
$(1)/usr
/lib
/lua
44 $(eval
$(call BuildPackage
,luaposix
))