xkbdata: Add missing dependency to xkbcomp
[openwrt/svn-archive/archive.git] / lang / python-dbus / Makefile
1 #
2 # Copyright (C) 2008-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dbus-python
11 PKG_VERSION:=0.83.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus-python/
16 PKG_MD5SUM:=562c78876219bf458d79a041af18293d
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24
25 TARGET_CFLAGS += \
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/lib/libiconv/include
28
29 TARGET_LDFLAGS += \
30 -Wl,-rpath=$(STAGING_DIR)/usr/lib \
31 -L$(STAGING_DIR)/usr/lib/libintl/lib \
32 -L$(STAGING_DIR)/usr/lib/libiconv/lib
33
34 define Package/dbus-python
35 SUBMENU:=Python
36 SECTION:=lang
37 CATEGORY:=Languages
38 TITLE:=Python bindings for dbus
39 URL:=http://dbus.freedesktop.org/
40 DEPENDS:=+python +python-expat +libdbus-glib
41 endef
42
43 define Package/dbus-python/description
44 Python bindings for dbus.
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
49 $(INSTALL_DATA) \
50 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/* \
51 $(1)/usr/include/dbus-1.0/dbus/
52
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54 $(INSTALL_DATA) \
55 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
56 $(1)/usr/lib/pkgconfig
57 endef
58
59 define Package/dbus-python/install
60 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
61 $(INSTALL_DATA) \
62 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{py,so} \
63 $(1)$(PYTHON_PKG_DIR)
64
65 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/*.py \
68 $(1)$(PYTHON_PKG_DIR)/dbus
69
70 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
71 $(INSTALL_DATA) \
72 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/mainloop/*.py \
73 $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
74
75 endef
76
77 $(eval $(call BuildPackage,dbus-python))