2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.cairographics.org/releases/
16 PKG_MD5SUM:=847f5377c32228a656819f5bd18eb6b4
19 include $(INCLUDE_DIR)/package.mk
20 $(call include_mk, python-package.mk)
24 CONFIGURE_ARGS += --enable-static
26 define Package/pycairo
30 TITLE:=Cairo bindings to python
31 URL:=http://www.cairographics.org/pycairo/
32 DEPENDS:=+python-mini +cairo
35 define Package/pycairo/description
36 Cairo bindings for python
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include/pycairo
42 $(PKG_INSTALL_DIR)/usr/include/pycairo/* \
43 $(1)/usr/include/pycairo
44 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
46 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
47 $(1)/usr/lib/pkgconfig/
50 define Package/pycairo/install
51 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/cairo/
53 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/cairo/*.{py,so,a} \
54 $(1)$(PYTHON_PKG_DIR)/cairo/
57 $(eval $(call BuildPackage,pycairo))