You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=luaposix
  9. PKG_VERSION:=v32
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/luaposix/luaposix/archive/
  13. PKG_MD5SUM:=2bfede7b7cee96c5d0f6c0354e17498c
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
  15. PKG_REMOVE_FILES:=aclocal.m4
  16. PKG_FIXUP:=autoreconf
  17. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/luaposix
  20. SUBMENU:=Lua
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=luaposix
  24. URL:=http://luaforge.net/projects/luaposix/
  25. DEPENDS:=+lua +librt +luabitop
  26. PKG_BUILD_DEPENDS:=+lua/host
  27. endef
  28. define Package/luaposix/description
  29. luaposix is a general POSIX library for Lua providing access
  30. to various low level libc functions.
  31. endef
  32. TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99
  33. ifneq ($(CONFIG_USE_EGLIBC),)
  34. ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
  35. TARGET_CFLAGS += -DNO_GETLOGIN
  36. endif
  37. endif
  38. define Package/luaposix/install
  39. $(INSTALL_DIR) $(1)/usr/lib/lua
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/posix/.libs/posix_c.so $(1)/usr/lib/lua
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/posix.lua $(1)/usr/lib/lua
  42. endef
  43. $(eval $(call BuildPackage,luaposix))