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.
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 \
28 $(if
$(CONFIG_PACKAGE_python-hippo-canvas
),-I
$(STAGING_DIR
)/usr
/include/pycairo
,)
30 STAMP_CONFIGURED
:=$(STAMP_CONFIGURED
)_
$(call confvar
,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas
)
32 define Package
/hippo-canvas
37 URL
:=http
://developer.mugshot.org
/wiki
/Hippo_Canvas
38 DEPENDS
:=+librsvg
+gtk2
+cairo
+libcroco
+pango
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.
46 define Package
/python-hippo-canvas
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
55 define Build
/Configure
56 $(call Build
/Configure
/Default
, \
57 $(if
$(CONFIG_PACKAGE_python-hippo-canvas
), \
64 define Build
/InstallDev
65 $(INSTALL_DIR
) $(1)/usr
/lib
/
67 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
} \
70 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
72 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
73 $(1)/usr
/lib
/pkgconfig
/
75 $(INSTALL_DIR
) $(1)/usr
/include/hippo-canvas-1
/hippo
/
77 $(PKG_INSTALL_DIR
)/usr
/include/hippo-canvas-1
/hippo
/* \
78 $(1)/usr
/include/hippo-canvas-1
/hippo
/
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
/
86 define Package
/python-hippo-canvas
/install
87 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
89 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/*.
{so
*,a
} \
93 $(eval
$(call BuildPackage
,hippo-canvas
))
94 $(eval
$(call BuildPackage
,python-hippo-canvas
))