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.

62 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=luv
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://github.com/luvit/luv.git
  6. PKG_MIRROR_HASH:=28a4e5f115dacd3b293522bea211576d6bf0519c79971a3dee56632d04a13cb3
  7. PKG_SOURCE_VERSION:=1.9.1-1
  8. PKG_SOURCE_DATE:=2016-12-16
  9. PKG_LICENSE:=Apache-2.0
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_USE_MIPS16:=0
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(INCLUDE_DIR)/cmake.mk
  14. define Package/luv
  15. SUBMENU:=Lua
  16. SECTION:=lang
  17. CATEGORY:=Languages
  18. TITLE:=Luv
  19. URL:=https://github.com/luvit/luv
  20. MAINTAINER:=Morteza Milani <milani@pichak.co>
  21. DEPENDS:=+libuv +!LUV_USE_LUAJIT_ENGINE:lua
  22. endef
  23. define Package/luv/description
  24. Bare libuv bindings for lua
  25. endef
  26. define Package/luv/config
  27. source "$(SOURCE)/Config.in"
  28. endef
  29. CMAKE_OPTIONS += -DLUA_BUILD_TYPE=System
  30. CMAKE_OPTIONS += -DWITH_SHARED_LIBUV=ON
  31. CMAKE_OPTIONS += -DBUILD_MODULE=OFF
  32. CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
  33. ifeq ($(CONFIG_LUV_USE_LUAJIT_ENGINE),y)
  34. CMAKE_OPTIONS += -DWITH_LUA_ENGINE=Luajit
  35. else
  36. CMAKE_OPTIONS += -DWITH_LUA_ENGINE=Lua
  37. endif
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/luv
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/luv/*.h $(1)/usr/include/luv
  41. $(INSTALL_DIR) $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
  43. endef
  44. define Package/luv/install
  45. $(INSTALL_DIR) $(1)/usr/lib/lua
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libluv.so.1.9.1 $(1)/usr/lib/lua/luv.so
  47. endef
  48. $(eval $(call BuildPackage,luv))