source: packages/Xorg/lib/hippo-canvas/Makefile @ 20235

Last change on this file since 20235 was 20235, checked in by lars, 7 years ago

[packages] hippo-canvas: Add dependency to libX11 drawing backend feature.

File size: 2.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=hippo-canvas
11PKG_VERSION:=0.3.0
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3/
16PKG_MD5SUM:=9a0f64eb0258a3e8ba710eff9798a7d0
17PKG_FIXUP:=libtool
18
19include $(INCLUDE_DIR)/package.mk
20-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
21
22PKG_INSTALL:=1
23
24EXTRA_CFLAGS += \
25        -I$(STAGING_DIR)/usr/lib/libintl/include \
26        -I$(STAGING_DIR)/usr/include/libcroco-0.6 \
27
28STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas)
29
30define Package/hippo-canvas
31  SECTION:=xorg-libs
32  CATEGORY:=Xorg
33  SUBMENU:=libraries
34  TITLE:=Hippo Canvas
35  URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
36  DEPENDS:=+librsvg +gtk2 +cairo +libcroco +pango @FEATURE_drawing-backend_libX11
37endef
38
39define Package/hippo-canvas/description
40The Hippo Canvas is a Cairo/GObject/GTK+ based canvas, written in C with
41support for flexible layout, CSS styling, and initial work on animations.
42endef
43
44define Package/python-hippo-canvas
45  SECTION:=lang-python
46  CATEGORY:=Languages
47  SUBMENU:=Python
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
51endef
52
53define Build/Configure
54        $(call Build/Configure/Default, \
55                $(if $(CONFIG_PACKAGE_python-hippo-canvas), \
56                        --enable-python, \
57                        --disable-python \
58                ) \
59        )
60endef
61
62define Build/InstallDev
63        $(INSTALL_DIR) $(1)/usr/lib/
64        $(CP) \
65                $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
66                $(1)/usr/lib/
67
68        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
69        $(INSTALL_DATA) \
70                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
71                $(1)/usr/lib/pkgconfig/
72
73        $(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
74        $(INSTALL_DATA) \
75                $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* \
76                $(1)/usr/include/hippo-canvas-1/hippo/
77endef
78
79define Package/hippo-canvas/install
80        $(INSTALL_DIR) $(1)/usr/lib/
81        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
82endef
83
84define Package/python-hippo-canvas/install
85        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
86        $(CP) \
87                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.so* \
88                $(1)$(PYTHON_PKG_DIR)
89endef
90
91$(eval $(call BuildPackage,hippo-canvas))
92$(eval $(call BuildPackage,python-hippo-canvas))
Note: See TracBrowser for help on using the repository browser.