2 # Copyright (C) 2008-2009 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
19 include $(INCLUDE_DIR)/package.mk
20 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
24 -I$(STAGING_DIR)/usr/lib/libintl/include \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include
28 -Wl,-rpath=$(STAGING_DIR)/usr/lib \
29 -L$(STAGING_DIR)/usr/lib/libintl/lib \
30 -L$(STAGING_DIR)/usr/lib/libiconv/lib
32 define Package/dbus-python
36 TITLE:=Python bindings for dbus
37 URL:=http://dbus.freedesktop.org/
38 DEPENDS:=+python +libdbus-glib
41 define Package/dbus-python/description
42 Python bindings for dbus.
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
48 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/* \
49 $(1)/usr/include/dbus-1.0/dbus/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
54 $(1)/usr/lib/pkgconfig
57 define Package/dbus-python/install
58 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
60 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{py,so} \
63 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus
65 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/*.py \
66 $(1)$(PYTHON_PKG_DIR)/dbus
68 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
70 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/mainloop/*.py \
71 $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
75 $(eval $(call BuildPackage,dbus-python))