Add hippo-canvas package.
[openwrt/svn-archive/archive.git] / XOrg / lib / hippo-canvas / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=hippo-canvas
4 PKG_VERSION:=0.3.0
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@GNOME/$(PKG_VERSION)/0.3/
9 PKG_MD5SUM:=9a0f64eb0258a3e8ba710eff9798a7d0
10 PKG_FIXUP:=libtool
11
12 include $(INCLUDE_DIR)/package.mk
13
14 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/
15
16 define Package/hippo-canvas
17 SECTION:=xorg-libs
18 CATEGORY:=Xorg
19 SUBMENU:=libraries
20 DEFAULT:=y
21 TITLE:=Hippo Canvas
22 URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
23 DEPENDS:=+librsvg +python +gtk2 +cairo +libcroco +pango
24 endef
25
26 define Package/hippo-canvas/description
27 The Hippo Canvas is a Cairo/GObject/GTK+ based canvas, written in C with
28 support for flexible layout, CSS styling, and initial work on animations.
29 endef
30
31 define Build/Configure
32 $(call Build/Configure/Default, --enable-python)
33 endef
34
35 define Build/Compile
36 make -C $(PKG_BUILD_DIR)
37 make -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/lib/
42 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
43 $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/
44 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{so*,a,la} $(1)/usr/lib/python2.5/site-packages/
45 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
46 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
47 $(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* $(1)/usr/include/hippo-canvas-1/hippo/
49 endef
50
51 define Package/hippo-canvas/install
52 $(INSTALL_DIR) $(1)/usr/lib/
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
54 $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/
55 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{so*,a} $(1)/usr/lib/python2.5/site-packages/
56 endef
57
58 $(eval $(call BuildPackage,hippo-canvas))
59
60