998beb354a563300c99d4b7d10fb9a65a83619a9
[openwrt/svn-archive/archive.git] / lang / python-dbus / Makefile
1 #
2 # Copyright (C) 2008-2009 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:=1
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 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
21
22
23 EXTRA_CFLAGS += \
24 -I$(STAGING_DIR)/usr/lib/libintl/include \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include
26
27 EXTRA_LDFLAGS += \
28 -Wl,-rpath=$(STAGING_DIR)/usr/lib \
29 -L$(STAGING_DIR)/usr/lib/libintl/lib \
30 -L$(STAGING_DIR)/usr/lib/libiconv/lib
31
32 define Package/dbus-python
33 SUBMENU:=Python
34 SECTION:=lang
35 CATEGORY:=Languages
36 TITLE:=Python bindings for dbus
37 URL:=http://dbus.freedesktop.org/
38 DEPENDS:=+python +libdbus-glib
39 endef
40
41 define Package/dbus-python/description
42 Python bindings for dbus.
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
47 $(INSTALL_DATA) \
48 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/* \
49 $(1)/usr/include/dbus-1.0/dbus/
50
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
54 $(1)/usr/lib/pkgconfig
55 endef
56
57 define Package/dbus-python/install
58 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{py,so} \
61 $(1)$(PYTHON_PKG_DIR)
62
63 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/*.py \
66 $(1)$(PYTHON_PKG_DIR)/dbus
67
68 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dbus/mainloop/*.py \
71 $(1)$(PYTHON_PKG_DIR)/dbus/mainloop
72
73 endef
74
75 $(eval $(call BuildPackage,dbus-python))