remove a few obsolete dependencies now that dependency propagation is fixed
[openwrt/svn-archive/archive.git] / lang / pycairo / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pycairo
11 PKG_VERSION:=1.4.12
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.cairographics.org/releases
16 PKG_BUILD_DEPENDS:=python cairo
17 PKG_FIXUP:=libtool
18 PKG_MD5SUM:=c63199d35b1e1d3c5133509f315f70d7
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pycairo
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=Cairo bindings to python
27 URL:=http://www.cairographics.org/
28 DEPENDS:=python +cairo
29 endef
30
31 define Package/pycairo/description
32 cairo modul for python
33 endef
34
35 define Build/Configure
36 (cd $(PKG_BUILD_DIR); \
37 if [ -x $(CONFIGURE_CMD) ]; then \
38 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
39 $(CONFIGURE_VARS) \
40 $(CONFIGURE_CMD) \
41 $(CONFIGURE_ARGS) ;\
42 fi \
43 )
44 endef
45
46 define Build/Compile
47 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)
52 cp -r $(PKG_INSTALL_DIR)/* $(1)
53 endef
54
55 define Package/pycairo/install
56 mkdir -p $(1)
57 cp -r $(PKG_INSTALL_DIR)/* $(1)
58 endef
59
60 $(eval $(call BuildPackage,pycairo))