Move python module of hippo-canvas into its own package.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12599 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ca052c32d8
commit
5f8dd792cf
@ -1,3 +1,11 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2008 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=hippo-canvas
|
PKG_NAME:=hippo-canvas
|
||||||
@ -10,11 +18,16 @@ PKG_MD5SUM:=9a0f64eb0258a3e8ba710eff9798a7d0
|
|||||||
PKG_FIXUP:=libtool
|
PKG_FIXUP:=libtool
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
EXTRA_CFLAGS += \
|
EXTRA_CFLAGS += \
|
||||||
-I$(STAGING_DIR)/usr/lib/libintl/include \
|
-I$(STAGING_DIR)/usr/lib/libintl/include \
|
||||||
-I$(STAGING_DIR)/usr/include/libcroco-0.6 \
|
-I$(STAGING_DIR)/usr/include/libcroco-0.6 \
|
||||||
-I$(STAGING_DIR)/usr/include/pycairo
|
$(if $(CONFIG_PACKAGE_python-hipp-canvas),-I$(STAGING_DIR)/usr/include/pycairo,)
|
||||||
|
|
||||||
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_hippo-canvas CONFIG_PACKAGE_python-hippo-canvas)
|
||||||
|
|
||||||
define Package/hippo-canvas
|
define Package/hippo-canvas
|
||||||
SECTION:=xorg-libs
|
SECTION:=xorg-libs
|
||||||
@ -22,7 +35,7 @@ define Package/hippo-canvas
|
|||||||
SUBMENU:=libraries
|
SUBMENU:=libraries
|
||||||
TITLE:=Hippo Canvas
|
TITLE:=Hippo Canvas
|
||||||
URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
|
URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
|
||||||
DEPENDS:=+librsvg +python +gtk2 +cairo +libcroco +pango +pycairo
|
DEPENDS:=+librsvg +gtk2 +cairo +libcroco +pango
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/hippo-canvas/description
|
define Package/hippo-canvas/description
|
||||||
@ -30,32 +43,52 @@ The Hippo Canvas is a Cairo/GObject/GTK+ based canvas, written in C with
|
|||||||
support for flexible layout, CSS styling, and initial work on animations.
|
support for flexible layout, CSS styling, and initial work on animations.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Package/python-hippo-canvas
|
||||||
$(call Build/Configure/Default, --enable-python)
|
SECTION:=lang-python
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
TITLE:=Python bindings for hippo canvas
|
||||||
|
URL:=http://developer.mugshot.org/wiki/Hippo_Canvas
|
||||||
|
DEPENDS:=python-core +python-gtk +pycairo +hippo-canvas
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Configure
|
||||||
make -C $(PKG_BUILD_DIR)
|
$(call Build/Configure/Default, \
|
||||||
make -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
|
$(if $(CONFIG_PACKAGE_python-hippo-canvas), \
|
||||||
|
--enable-python, \
|
||||||
|
--disable-python \
|
||||||
|
) \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/
|
$(INSTALL_DIR) $(1)/usr/lib/
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
|
$(INSTALL_DATA) \
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{so*,a,la} $(1)/usr/lib/python2.5/site-packages/
|
$(1)/usr/lib/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
||||||
|
$(1)/usr/lib/pkgconfig/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
|
$(INSTALL_DIR) $(1)/usr/include/hippo-canvas-1/hippo/
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* $(1)/usr/include/hippo-canvas-1/hippo/
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/include/hippo-canvas-1/hippo/* \
|
||||||
|
$(1)/usr/include/hippo-canvas-1/hippo/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/hippo-canvas/install
|
define Package/hippo-canvas/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/
|
$(INSTALL_DIR) $(1)/usr/lib/
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/
|
endef
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/*.{so*,a} $(1)/usr/lib/python2.5/site-packages/
|
|
||||||
|
define Package/python-hippo-canvas/install
|
||||||
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{so*,a} \
|
||||||
|
$(1)$(PYTHON_PKG_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,hippo-canvas))
|
$(eval $(call BuildPackage,hippo-canvas))
|
||||||
|
$(eval $(call BuildPackage,python-hippo-canvas))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user