[packages] Require* calls must now be placed before BuildPackage calls
[openwrt/svn-archive/archive.git] / lang / telepathy-python / 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:=telepathy-python
11 PKG_VERSION:=0.15.3
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://telepathy.freedesktop.org/releases/telepathy-python/
15 PKG_MD5SUM:=594a66a70764052e30df9428b5be52b2
16
17 include $(INCLUDE_DIR)/package.mk
18 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
19
20 define Package/telepathy-python
21 SUBMENU:=Python
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=telepathy-python
25 URL:=http://telepathy.freedesktop.org
26 DEPENDS:=+python-mini +dbus-python
27 endef
28
29 define Package/telepathy-python/description
30 telepathy python bindings
31 endef
32
33 define Build/Compile
34 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
35 endef
36
37 define Package/telepathy-python/install
38 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
39 $(CP) \
40 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
41 $(1)$(PYTHON_PKG_DIR)
42 endef
43
44 $(eval $(call RequireCommand,xsltproc, \
45 $(PKG_NAME) requires xsltproc installed on the host-system. \
46 ))
47
48 $(eval $(call BuildPackage,telepathy-python))
49