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.
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 $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
25 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include \
26 -I
$(STAGING_DIR
)/usr
/include/libcroco-0.6 \
28 STAMP_CONFIGURED
:=$(STAMP_CONFIGURED
)_
$(call confvar
,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas
)
30 define Package
/hippo-canvas
35 URL
:=http
://developer.mugshot.org
/wiki
/Hippo_Canvas
36 DEPENDS
:=+librsvg
+gtk2
+cairo
+libcroco
+pango
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.
44 define Package
/python-hippo-canvas
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
53 define Build
/Configure
54 $(call Build
/Configure
/Default
, \
55 $(if
$(CONFIG_PACKAGE_python-hippo-canvas
), \
62 define Build
/InstallDev
63 $(INSTALL_DIR
) $(1)/usr
/lib
/
65 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
68 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
70 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
71 $(1)/usr
/lib
/pkgconfig
/
73 $(INSTALL_DIR
) $(1)/usr
/include/hippo-canvas-1
/hippo
/
75 $(PKG_INSTALL_DIR
)/usr
/include/hippo-canvas-1
/hippo
/* \
76 $(1)/usr
/include/hippo-canvas-1
/hippo
/
79 define Package
/hippo-canvas
/install
80 $(INSTALL_DIR
) $(1)/usr
/lib
/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
84 define Package
/python-hippo-canvas
/install
85 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
87 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/*.so
* \
91 $(eval
$(call BuildPackage
,hippo-canvas
))
92 $(eval
$(call BuildPackage
,python-hippo-canvas
))