Move python module of hippo-canvas into its own package.
[openwrt/svn-archive/archive.git] / XOrg / lib / hippo-canvas / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=hippo-canvas
12 PKG_VERSION:=0.3.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3/
17 PKG_MD5SUM:=9a0f64eb0258a3e8ba710eff9798a7d0
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 PKG_INSTALL:=1
24
25 EXTRA_CFLAGS += \
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/include/libcroco-0.6 \
28 $(if $(CONFIG_PACKAGE_python-hipp-canvas),-I$(STAGING_DIR)/usr/include/pycairo,)
29
30 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas)
31
32 define Package/hippo-canvas
33 SECTION:=xorg-libs
34 CATEGORY:=Xorg
35 SUBMENU:=libraries
36 TITLE:=Hippo Canvas
37 URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
38 DEPENDS:=+librsvg +gtk2 +cairo +libcroco +pango
39 endef
40
41 define Package/hippo-canvas/description
42 The Hippo Canvas is a Cairo/GObject/GTK+ based canvas, written in C with
43 support for flexible layout, CSS styling, and initial work on animations.
44 endef
45
46 define Package/python-hippo-canvas
47 SECTION:=lang-python
48 CATEGORY:=Languages
49 SUBMENU:=Python
50 TITLE:=Python bindings for hippo canvas
51 URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
52 DEPENDS:=python-core +python-gtk +pycairo +hippo-canvas
53 endef
54
55 define Build/Configure
56 $(call Build/Configure/Default, \
57 $(if $(CONFIG_PACKAGE_python-hippo-canvas), \
58 --enable-python, \
59 --disable-python \
60 ) \
61 )
62 endef
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/lib/
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
68 $(1)/usr/lib/
69
70 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
71 $(INSTALL_DATA) \
72 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
73 $(1)/usr/lib/pkgconfig/
74
75 $(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
76 $(INSTALL_DATA) \
77 $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* \
78 $(1)/usr/include/hippo-canvas-1/hippo/
79 endef
80
81 define Package/hippo-canvas/install
82 $(INSTALL_DIR) $(1)/usr/lib/
83 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
84 endef
85
86 define Package/python-hippo-canvas/install
87 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
88 $(INSTALL_DATA) \
89 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{so*,a} \
90 $(1)$(PYTHON_PKG_DIR)
91 endef
92
93 $(eval $(call BuildPackage,hippo-canvas))
94 $(eval $(call BuildPackage,python-hippo-canvas))