2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 12821 2008-10-02 15:33:26Z lars $
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=hippo-canvas
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3/
17 PKG_MD5SUM:=9a0f64eb0258a3e8ba710eff9798a7d0
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/include/libcroco-0.6 \
29 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas)
31 define Package/hippo-canvas
36 URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
37 DEPENDS:=+librsvg +gtk2 +cairo +libcroco +pango
40 define Package/hippo-canvas/description
41 The Hippo Canvas is a Cairo/GObject/GTK+ based canvas, written in C with
42 support for flexible layout, CSS styling, and initial work on animations.
45 define Package/python-hippo-canvas
49 TITLE:=Python bindings for hippo canvas
50 URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
51 DEPENDS:=python-core +PACKAGE_python-hippo-canvas:python-gtk +PACKAGE_python-hippo-canvas:pycairo +hippo-canvas
54 define Build/Configure
55 $(call Build/Configure/Default, \
56 $(if $(CONFIG_PACKAGE_python-hippo-canvas), \
63 define Build/InstallDev
64 $(INSTALL_DIR) $(1)/usr/lib/
66 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
69 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
71 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
72 $(1)/usr/lib/pkgconfig/
74 $(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
76 $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* \
77 $(1)/usr/include/hippo-canvas-1/hippo/
80 define Package/hippo-canvas/install
81 $(INSTALL_DIR) $(1)/usr/lib/
82 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
85 define Package/python-hippo-canvas/install
86 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
88 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{so*,a} \
92 $(eval $(call BuildPackage,hippo-canvas))
93 $(eval $(call BuildPackage,python-hippo-canvas))