2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus-python/
16 PKG_MD5SUM:=562c78876219bf458d79a041af18293d
21 include $(INCLUDE_DIR)/package.mk
22 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/lib/libiconv/include
30 -Wl,-rpath=$(STAGING_DIR)/usr/lib \
31 -L$(STAGING_DIR)/usr/lib/libintl/lib \
32 -L$(STAGING_DIR)/usr/lib/libiconv/lib
34 define Package/dbus-python
38 TITLE:=Python bindings for dbus
39 URL:=http://dbus.freedesktop.org/
40 DEPENDS:=+python +python-expat +libdbus-glib
43 define Package/dbus-python/description
44 Python bindings for dbus.
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
50 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/* \
51 $(1)/usr/include/dbus-1.0/dbus/
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
55 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
56 $(1)/usr/lib/pkgconfig
59 define Package/dbus-python/install
60 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
62 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{py,so} \
65 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus
67 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/*.py \
68 $(1)$(PYTHON_PKG_DIR)/dbus
70 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
72 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/mainloop/*.py \
73 $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
77 $(eval $(call BuildPackage,dbus-python))