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.

61 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GPL 2 license.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=ldbus
  8. PKG_SOURCE_DATE:=2019-08-15
  9. PKG_SOURCE_VERSION:=9e176fe851006037a643610e6d8f3a8e597d4073
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL=https://github.com/daurnimator/ldbus
  13. PKG_MIRROR_HASH:=65fc7c975a17cfd3929b54973558205354fc285b6bd88a732c045e8444000d44
  14. PKG_MAINTAINER:=Enrico Mioso <mrkiko.rs@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_DEPENDS:=luarocks/host
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/ldbus
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=ldbus Lua DBus bindings
  25. URL:=https://github.com/daurnimator/ldbus
  26. DEPENDS:=+dbus +lua
  27. endef
  28. define Package/ldbus/description
  29. This package contains "ldbus": LUA bindings to interact with the DBUS
  30. message bus system, and services connected to it.
  31. See https://github.com/daurnimator/ldbus
  32. for details.
  33. endef
  34. define Build/Compile
  35. cd $(PKG_BUILD_DIR) && \
  36. luarocks make --pack-binary-rock ldbus-scm-0.rockspec \
  37. LUA_LIBDIR=$(STAGING_DIR)/usr/lib/lua \
  38. LUA_PKGNAME=lua5.1 \
  39. DBUS_INCDIR=$(STAGING_DIR)/usr/include/dbus-1.0/ \
  40. DBUS_ARCH_INCDIR=$(STAGING_DIR)/usr/lib/dbus-1.0/include \
  41. DBUS_LIBDIR=$(STAGING_DIR)/usr/lib \
  42. CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
  43. CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
  44. LDFLAGS="$(TARGET_LDFLAGS)"
  45. endef
  46. define Package/ldbus/install
  47. $(INSTALL_DIR) $(1)/usr/lib/lua
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ldbus.so $(1)/usr/lib/lua
  49. endef
  50. $(eval $(call BuildPackage,ldbus))