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 define Package
/pycairo
28 TITLE
:=Cairo bindings to python
29 URL
:=http
://www.cairographics.org
/pycairo
/
30 DEPENDS
:=+python-mini
+cairo
33 define Package
/pycairo
/description
34 Cairo bindings for python
37 define Build
/InstallDev
38 $(INSTALL_DIR
) $(1)/usr
/include/pycairo
40 $(PKG_INSTALL_DIR
)/usr
/include/pycairo
/* \
41 $(1)/usr
/include/pycairo
42 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
44 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
45 $(1)/usr
/lib
/pkgconfig
/
48 define Package
/pycairo
/install
49 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/cairo
/
51 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/cairo
/*.
{py
,so
,a
} \
52 $(1)$(PYTHON_PKG_DIR
)/cairo
/
55 $(eval
$(call BuildPackage
,pycairo
))