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_FLAGS
:= nonshared
22 PKG_BUILD_DEPENDS
:=luarocks
/host
24 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=ldbus Lua DBus bindings
34 define Package
/ldbus
/description
35 This package contains
"ldbus": LUA bindings to interact with the DBUS
36 message bus system
, and services connected to it.
37 See https
://github.com
/daurnimator
/ldbus
42 -I
$(STAGING_DIR
)/usr
/include
46 CFLAGS
="$(TARGET_CFLAGS)" \
47 LDFLAGS
="$(TARGET_LDFLAGS)"
49 define Package
/ldbus
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ldbus.so
$(1)/usr
/lib
/lua
55 cd
$(PKG_BUILD_DIR
) && \
56 luarocks make
--pack-binary-rock ldbus-scm-0.rockspec \
57 DBUS_INCDIR
=$(STAGING_DIR
)/usr
/include/dbus-1.0
/ \
58 DBUS_ARCH_INCDIR
=$(STAGING_DIR
)/usr
/lib
/dbus-1.0
/include \
59 DBUS_LIBDIR
=$(STAGING_DIR
)/usr
/lib \
60 CC
="$(TARGET_CC)" LD
="$(TARGET_CC)"
63 $(eval
$(call BuildPackage
,ldbus
))