2 # Copyright (C) 2006-2017 OpenWrt.org
4 # This is free software, licensed under the GPL 2 license.
7 include $(TOPDIR
)/rules.mk
11 PKG_MIRROR_HASH
:=0e39a80e126a77a937226e49ae0246e1fd4600a03dee6bdee5ac822963a234e1
14 PKG_SOURCE_VERSION
:=f4a1464e915a2313c80fb40c5c40b0bee7583677
15 PKG_SOURCE_DATE
:=2017-10-03
16 PKG_SOURCE_URL
=https
://github.com
/daurnimator
/ldbus
17 PKG_MAINTAINER
:=Enrico Mioso
<mrkiko.rs@gmail.com
>
20 PKG_BUILD_DEPENDS
:=luarocks
/host
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=ldbus Lua DBus bindings
32 define Package
/ldbus
/description
33 This package contains
"ldbus": LUA bindings to interact with the DBUS
34 message bus system
, and services connected to it.
35 See https
://github.com
/daurnimator
/ldbus
40 -I
$(STAGING_DIR
)/usr
/include
44 CFLAGS
="$(TARGET_CFLAGS)" \
45 LDFLAGS
="$(TARGET_LDFLAGS)"
47 define Package
/ldbus
/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ldbus.so
$(1)/usr
/lib
/lua
53 cd
$(PKG_BUILD_DIR
) && \
54 luarocks make
--pack-binary-rock ldbus-scm-0.rockspec \
55 DBUS_INCDIR
=$(STAGING_DIR
)/usr
/include/dbus-1.0
/ \
56 DBUS_ARCH_INCDIR
=$(STAGING_DIR
)/usr
/lib
/dbus-1.0
/include \
57 DBUS_LIBDIR
=$(STAGING_DIR
)/usr
/lib \
58 CC
="$(TARGET_CC)" LD
="$(TARGET_CC)"
61 $(eval
$(call BuildPackage
,ldbus
))