27f22a1fc1
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11344 3c298f89-4303-0410-b956-a3cf2f4a3e73
60 lines
1.2 KiB
Makefile
60 lines
1.2 KiB
Makefile
#
|
|
# 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
|
|
PKG_VERSION:=1.4.12
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://www.cairographics.org/releases
|
|
PKG_BUILD_DEPENDS:=python cairo
|
|
PKG_FIXUP:=libtool
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/pycairo
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=Cairo bindings to python
|
|
URL:=http://www.cairographics.org/
|
|
DEPENDS:=python +cairo
|
|
endef
|
|
|
|
define Package/pycairo/description
|
|
cairo modul for python
|
|
endef
|
|
|
|
define Build/Configure
|
|
(cd $(PKG_BUILD_DIR); \
|
|
if [ -x $(CONFIGURE_CMD) ]; then \
|
|
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
|
|
$(CONFIGURE_VARS) \
|
|
$(CONFIGURE_CMD) \
|
|
$(CONFIGURE_ARGS) ;\
|
|
fi \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
mkdir -p $(1)
|
|
cp -r $(PKG_INSTALL_DIR)/* $(1)
|
|
endef
|
|
|
|
define Package/pycairo/install
|
|
mkdir -p $(1)
|
|
cp -r $(PKG_INSTALL_DIR)/* $(1)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,pycairo))
|