Fix the whole python building process to do proper crosscompiling for all python
[packages.git] / lang / telepathy-python / 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:=telepathy-python
12 PKG_VERSION:=0.15.0
13 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://telepathy.freedesktop.org/releases/telepathy-python/
16 PKG_MD5SUM:=678a28e3b7d06f75940beec28130d9a5
17
18 include $(INCLUDE_DIR)/package.mk
19 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
20
21 define Package/telepathy-python
22   SUBMENU:=Python
23   SECTION:=lang
24   CATEGORY:=Languages
25   TITLE:=telepathy-python
26   URL:=http://telepathy.freedesktop.org
27   DEPENDS:=python-core
28 endef
29
30 define Package/telepathy-python/description
31   telepathy python bingings
32 endef
33
34 define Build/Compile
35         $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
36 endef
37
38 define Package/telepathy-python/install
39         #FIXME: Only copy required files
40         mkdir -p $(1)
41         cp -r $(PKG_INSTALL_DIR)/* $(1)
42 endef
43
44 $(eval $(call BuildPackage,telepathy-python))
45
46 $(eval $(call RequireCommand,xsltproc, \
47         $(PKG_NAME) requires xsltproc installed on the host-system. \
48 ))