etk relies on edje_cc to be installed on the host
[openwrt/svn-archive/archive.git] / lang / pycairo / 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:=pycairo
12 PKG_VERSION:=1.8.0
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.cairographics.org/releases/
17 PKG_MD5SUM:=847f5377c32228a656819f5bd18eb6b4
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 PKG_INSTALL=1
24
25 define Package/pycairo
26 SUBMENU:=Python
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=Cairo bindings to python
30 URL:=http://www.cairographics.org/pycairo/
31 DEPENDS:=python-core +cairo
32 endef
33
34 define Package/pycairo/description
35 Cairo bindings for python
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/include/pycairo
40 $(INSTALL_DATA) \
41 $(PKG_INSTALL_DIR)/usr/include/pycairo/* \
42 $(1)/usr/include/pycairo
43 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
44 $(INSTALL_DATA) \
45 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
46 $(1)/usr/lib/pkgconfig/
47 endef
48
49 define Package/pycairo/install
50 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/cairo/
51 $(INSTALL_DATA) \
52 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/cairo/*.{py,so,a} \
53 $(1)$(PYTHON_PKG_DIR)/cairo/
54 endef
55
56 $(eval $(call BuildPackage,pycairo))