[packages] Use include_mk
[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 define Package/pycairo
25 SUBMENU:=Python
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=Cairo bindings to python
29 URL:=http://www.cairographics.org/pycairo/
30 DEPENDS:=+python-mini +cairo
31 endef
32
33 define Package/pycairo/description
34 Cairo bindings for python
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include/pycairo
39 $(INSTALL_DATA) \
40 $(PKG_INSTALL_DIR)/usr/include/pycairo/* \
41 $(1)/usr/include/pycairo
42 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
43 $(INSTALL_DATA) \
44 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
45 $(1)/usr/lib/pkgconfig/
46 endef
47
48 define Package/pycairo/install
49 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/cairo/
50 $(INSTALL_DATA) \
51 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/cairo/*.{py,so,a} \
52 $(1)$(PYTHON_PKG_DIR)/cairo/
53 endef
54
55 $(eval $(call BuildPackage,pycairo))