13aa8041bf9cf8031b614cf18252ceb97036754f
[packages.git] / Xorg / lib / hippo-canvas / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 12821 2008-10-02 15:33:26Z lars $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=hippo-canvas
12 PKG_VERSION:=0.3.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3/
17 PKG_MD5SUM:=9a0f64eb0258a3e8ba710eff9798a7d0
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 PKG_INSTALL:=1
24
25 EXTRA_CFLAGS += \
26         -I$(STAGING_DIR)/usr/lib/libintl/include \
27         -I$(STAGING_DIR)/usr/include/libcroco-0.6 \
28
29 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas)
30
31 define Package/hippo-canvas
32   SECTION:=xorg-libs
33   CATEGORY:=Xorg
34   SUBMENU:=libraries
35   TITLE:=Hippo Canvas
36   URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
37   DEPENDS:=+librsvg +gtk2 +cairo +libcroco +pango
38 endef
39
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.
43 endef
44
45 define Package/python-hippo-canvas
46   SECTION:=lang-python
47   CATEGORY:=Languages
48   SUBMENU:=Python
49   TITLE:=Python bindings for hippo canvas
50   URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
51   DEPENDS:=+python-mini +PACKAGE_python-hippo-canvas:python-gtk +PACKAGE_python-hippo-canvas:pycairo +hippo-canvas
52 endef
53
54 define Build/Configure
55         $(call Build/Configure/Default, \
56                 $(if $(CONFIG_PACKAGE_python-hippo-canvas), \
57                         --enable-python, \
58                         --disable-python \
59                 ) \
60         )
61 endef
62
63 define Build/InstallDev
64         $(INSTALL_DIR) $(1)/usr/lib/
65         $(CP) \
66                 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
67                 $(1)/usr/lib/
68
69         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
70         $(INSTALL_DATA) \
71                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
72                 $(1)/usr/lib/pkgconfig/
73
74         $(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
75         $(INSTALL_DATA) \
76                 $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* \
77                 $(1)/usr/include/hippo-canvas-1/hippo/
78 endef
79
80 define Package/hippo-canvas/install
81         $(INSTALL_DIR) $(1)/usr/lib/
82         $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
83 endef
84
85 define Package/python-hippo-canvas/install
86         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
87         $(CP) \
88                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.so* \
89                 $(1)$(PYTHON_PKG_DIR)
90 endef
91
92 $(eval $(call BuildPackage,hippo-canvas))
93 $(eval $(call BuildPackage,python-hippo-canvas))