Fix python dbus install.
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dbus-python
11 PKG_VERSION:=0.83.0
12 PKG_RELEASE:=2
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus-python/
15 PKG_MD5SUM:=562c78876219bf458d79a041af18293d
16 PKG_FIXUP:=libtool
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_INSTALL=1
21
22 EXTRA_CFLAGS += \
23 -I$(STAGING_DIR)/usr/lib/libintl/include \
24 -I$(STAGING_DIR)/usr/lib/libiconv/include
25
26 EXTRA_LDFLAGS += \
27 -L$(STAGING_DIR)/usr/lib/libintl/lib \
28 -L$(STAGING_DIR)/usr/lib/libiconv/lib
29
30 define Package/dbus-python
31 SUBMENU:=Python
32 SECTION:=lang
33 CATEGORY:=Languages
34 TITLE:=Python bindings for dbus
35 URL:=http://dbus.freedesktop.org/
36 DEPENDS:=python-core +libdbus-glib
37 endef
38
39 define Package/dbus-python/description
40 Python bindings for dbus.
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus/
45 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/* \
46 $(1)/usr/include/dbus-1.0/dbus/
47 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig
49 endef
50
51 define Package/dbus-python/install
52 $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{py,so,a} \
54 $(1)/usr/lib/python2.5/site-packages/
55 $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/dbus/
56 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/dbus/*.py \
57 $(1)/usr/lib/python2.5/site-packages/dbus/
58 $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/dbus/mainloop/
59 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/dbus/mainloop/*.py \
60 $(1)/usr/lib/python2.5/site-packages/dbus/mainloop/
61 endef
62
63 $(eval $(call BuildPackage,dbus-python))