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