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