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