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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.cairographics.org
/releases
/
17 PKG_MD5SUM
:=847f5377c32228a656819f5bd18eb6b4
20 include $(INCLUDE_DIR
)/package.mk
21 -include $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
25 define Package
/pycairo
29 TITLE
:=Cairo bindings to python
30 URL
:=http
://www.cairographics.org
/pycairo
/
31 DEPENDS
:=python-core
+cairo
34 define Package
/pycairo
/description
35 Cairo bindings for python
38 define Build
/InstallDev
39 $(INSTALL_DIR
) $(1)/usr
/include/pycairo
41 $(PKG_INSTALL_DIR
)/usr
/include/pycairo
/* \
42 $(1)/usr
/include/pycairo
43 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
45 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
46 $(1)/usr
/lib
/pkgconfig
/
49 define Package
/pycairo
/install
50 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/cairo
/
52 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/cairo
/*.
{py
,so
,a
} \
53 $(1)$(PYTHON_PKG_DIR
)/cairo
/
56 $(eval
$(call BuildPackage
,pycairo
))