79e52a67880832102a7bcf44c40c9ee7259a876c
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/pycairo
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=Cairo bindings to python
25 URL:=http://www.cairographics.org/
26 DEPENDS:=python +cairo
27 endef
28
29 define Package/pycairo/description
30 cairo modul for python
31 endef
32
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); \
35 if [ -x $(CONFIGURE_CMD) ]; then \
36 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
37 $(CONFIGURE_VARS) \
38 $(CONFIGURE_CMD) \
39 $(CONFIGURE_ARGS) ;\
40 fi \
41 )
42 endef
43
44 define Build/Compile
45 cd $(PKG_BUILD_DIR) ; $(MAKE) $(MAKE_FLAGS) $(MAKE_VARS)
46 endef
47
48 define Build/InstallDev
49 cd $(PKG_BUILD_DIR) ; DESTDIR=$(1) $(MAKE) $(MAKE_FLAGS) install
50 # rm $(1)/usr/lib/pkgconfig/pycairo.pc
51 endef
52
53 define Package/pycairo/install
54 cd $(PKG_BUILD_DIR) ; DESTDIR=$(1) $(MAKE) $(MAKE_FLAGS) install
55 # rm $(1)/usr/lib/pkgconfig/pycairo.pc
56 endef
57
58 $(eval $(call BuildPackage,pycairo))