diff options
author | Steven Barth <steven@midlink.org> | 2008-06-03 17:19:53 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-03 17:19:53 +0000 |
commit | 25ca2d2f20ad08a52bc9756e7b2f7abaeb4c7edc (patch) | |
tree | 09eaa5c1c17b394c3fdf4fbc1a192bb1c58a4773 | |
parent | 8ee63363207c56effa4b9be6f2f92f05566dcfec (diff) |
* Added luasocket OpenWRT Makefile
-rw-r--r-- | contrib/package/luasocket/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/package/luasocket/Makefile b/contrib/package/luasocket/Makefile new file mode 100644 index 0000000000..e35cfe9854 --- /dev/null +++ b/contrib/package/luasocket/Makefile @@ -0,0 +1,39 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=luasocket +PKG_VERSION:=2.0.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2664/ +PKG_MD5SUM:=41445b138deb7bcfe97bff957503da8e + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/luasocket + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=LUA + TITLE:=Socket support for Lua + URL:=http://luaforge.net/projects/luasockets/ + DEPENDS:=+liblua +endef + +define Build/Configure +endef + +define Build/Compile + for i in $(PKG_BUILD_DIR)/src/*.lua; do luac -s -o $$$$i $$$$i; done + $(call Build/Compile/Default) +endef + +MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -pedantic -Wall -fpic" LDFLAGS="$(TARGET_LDFLAGS) -shared -fpic" + +define Package/luasocket/install + $(MAKE) -C$(PKG_BUILD_DIR) install INSTALL_TOP_SHARE=$(1)/usr/lib/lua INSTALL_TOP_LIB=$(1)/usr/lib/lua +endef + +$(eval $(call BuildPackage,luasocket))
\ No newline at end of file |