2008-05-08 22:01:25 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pycairo
|
2008-12-16 20:50:34 +00:00
|
|
|
PKG_VERSION:=1.8.0
|
|
|
|
PKG_RELEASE:=3
|
2008-05-08 22:01:25 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2008-09-04 16:32:16 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.cairographics.org/releases/
|
2008-12-16 20:50:34 +00:00
|
|
|
PKG_MD5SUM:=847f5377c32228a656819f5bd18eb6b4
|
2008-05-24 17:15:00 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2008-05-08 22:01:25 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2008-10-02 15:33:26 +00:00
|
|
|
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
|
2008-05-08 22:01:25 +00:00
|
|
|
|
2008-09-04 16:32:16 +00:00
|
|
|
PKG_INSTALL=1
|
|
|
|
|
2008-05-08 22:01:25 +00:00
|
|
|
define Package/pycairo
|
2008-05-24 18:01:46 +00:00
|
|
|
SUBMENU:=Python
|
2008-05-08 22:01:25 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=Cairo bindings to python
|
2008-09-04 16:32:16 +00:00
|
|
|
URL:=http://www.cairographics.org/pycairo/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python-mini +cairo
|
2008-05-08 22:01:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pycairo/description
|
2008-09-04 16:32:16 +00:00
|
|
|
Cairo bindings for python
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-09-04 16:32:16 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/pycairo
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/pycairo/* \
|
2008-09-04 16:32:16 +00:00
|
|
|
$(1)/usr/include/pycairo
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
2008-09-04 16:32:16 +00:00
|
|
|
$(1)/usr/lib/pkgconfig/
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
2008-06-03 20:37:52 +00:00
|
|
|
define Package/pycairo/install
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/cairo/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/cairo/*.{py,so,a} \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/cairo/
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-08 22:01:25 +00:00
|
|
|
$(eval $(call BuildPackage,pycairo))
|