packages/lang/pycairo/Makefile

61 lines
1.2 KiB
Makefile
Raw Normal View History

#
# 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
PKG_MD5SUM:=c63199d35b1e1d3c5133509f315f70d7
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))