2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=hippo-canvas
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@GNOME
/$(PKG_NAME
)/0.3/
16 PKG_MD5SUM
:=9a0f64eb0258a3e8ba710eff9798a7d0
19 include $(INCLUDE_DIR
)/package.mk
20 include $(INCLUDE_DIR
)/nls.mk
21 -include $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
26 -I
$(INTL_PREFIX
)/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
/Default
32 URL
:=http
://developer.mugshot.org
/wiki
/Hippo_Canvas
33 DEPENDS
:=@FEATURE_drawing-backend_libX11
36 define Package
/hippo-canvas
37 $(call Package
/hippo-canvas
/Default
)
38 SECTION
:=xorg-libraries
42 DEPENDS
+=+librsvg
+gtk2
+cairo
+libcroco
+pango
45 define Package
/hippo-canvas
/description
46 The Hippo Canvas is a Cairo
/GObject
/GTK
+ based canvas
, written in C with
47 support for flexible layout
, CSS styling
, and initial work on animations.
50 define Package
/python-hippo-canvas
51 $(call Package
/hippo-canvas
/Default
)
55 TITLE
:=Python bindings for hippo canvas
56 DEPENDS
+=+python-mini
+PACKAGE_python-hippo-canvas
:python-gtk
+PACKAGE_python-hippo-canvas
:pycairo
+hippo-canvas
59 define Build
/Configure
60 $(call Build
/Configure
/Default
, \
61 $(if
$(CONFIG_PACKAGE_python-hippo-canvas
), \
68 define Build
/InstallDev
69 $(INSTALL_DIR
) $(1)/usr
/lib
/
71 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
74 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
76 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
77 $(1)/usr
/lib
/pkgconfig
/
79 $(INSTALL_DIR
) $(1)/usr
/include/hippo-canvas-1
/hippo
/
81 $(PKG_INSTALL_DIR
)/usr
/include/hippo-canvas-1
/hippo
/* \
82 $(1)/usr
/include/hippo-canvas-1
/hippo
/
85 define Package
/hippo-canvas
/install
86 $(INSTALL_DIR
) $(1)/usr
/lib
/
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
90 define Package
/python-hippo-canvas
/install
91 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
93 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/*.so
* \
97 $(eval
$(call BuildPackage
,hippo-canvas
))
98 $(eval
$(call BuildPackage
,python-hippo-canvas
))