clean up some packages
[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.82.4
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus-python/
15 PKG_FIXUP:=libtool
16
17 include $(INCLUDE_DIR)/package.mk
18
19 EXTRA_CFLAGS += \
20 -I$(STAGING_DIR)/usr/lib/libintl/include \
21 -I$(STAGING_DIR)/usr/lib/libiconv/include
22
23 EXTRA_LDFLAGS += \
24 -L$(STAGING_DIR)/usr/lib/libintl/lib \
25 -L$(STAGING_DIR)/usr/lib/libiconv/lib
26
27 define Package/dbus-python
28 SUBMENU:=Python
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=python bindings for dbus
32 URL:=http://dbus.freedesktop.org/
33 DEPENDS:=+libdbus-glib
34 endef
35
36 define Package/dbus-python/description
37 python bindings for dbus
38 endef
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); \
42 if [ -x $(CONFIGURE_CMD) ]; then \
43 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
44 $(CONFIGURE_VARS) \
45 $(CONFIGURE_CMD) \
46 $(CONFIGURE_ARGS) ;\
47 fi \
48 )
49 endef
50
51 define Build/Compile
52 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)
57 cp -r $(PKG_INSTALL_DIR)/* $(1)
58 endef
59
60 define Package/dbus-python/install
61 mkdir -p $(1)
62 cp -r $(PKG_INSTALL_DIR)/* $(1)
63 endef
64
65 $(eval $(call BuildPackage,dbus-python))