Move librsvg gdk pixbuf loader into its own package. Disable building of gtk svg
theme engine. git-svn-id: svn://svn.openwrt.org/openwrt/packages@12603 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b7920af68f
commit
bbaf661ac4
@ -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:=librsvg
|
PKG_NAME:=librsvg
|
||||||
@ -11,19 +19,32 @@ PKG_FIXUP:=libtool
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
PKG_INSTALL=1
|
||||||
|
|
||||||
EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
||||||
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
||||||
-L$(STAGING_DIR)/usr/lib/libiconv/lib/
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib/
|
||||||
|
|
||||||
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libcroco-0.6
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libcroco-0.6
|
||||||
|
|
||||||
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_librsvg CONFIG_PACKAGE_librsvg-pixbuf-loader)
|
||||||
|
|
||||||
define Package/librsvg
|
define Package/librsvg
|
||||||
SECTION:=xorg-libs
|
SECTION:=xorg-libs
|
||||||
CATEGORY:=Xorg
|
CATEGORY:=Xorg
|
||||||
SUBMENU:=libraries
|
SUBMENU:=libraries
|
||||||
TITLE:=SVG rendering library
|
TITLE:=SVG rendering library
|
||||||
URL:=http://librsvg.sourceforge.net/
|
URL:=http://librsvg.sourceforge.net/
|
||||||
DEPENDS:=+cairo +libxml2 +glib2 +libcroco
|
DEPENDS:=+cairo +libxml2 +glib2 +libcroco +pango +gtk2
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/librsvg-pixbuf-loader
|
||||||
|
SECTION:=xorg-libs
|
||||||
|
CATEGORY:=Xorg
|
||||||
|
SUBMENU:=libraries
|
||||||
|
TITLE:=SVG rendering library
|
||||||
|
URL:=http://librsvg.sourceforge.net/
|
||||||
|
DEPENDS:=librsvg
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/librsvg/description
|
define Package/librsvg/description
|
||||||
@ -31,18 +52,20 @@ librsvg is a high performance SVG rendering library associated with the Gnome Pr
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(call Build/Configure/Default,--disable-mozilla-plugin --with-croco)
|
$(call Build/Configure/Default, \
|
||||||
endef
|
--disable-gtk-theme \
|
||||||
|
--disable-mozilla-plugin \
|
||||||
define Build/Compile
|
--with-croco \
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(if $(CONFIG_PACKAGE_librsvg-pixbuf-loader), \
|
||||||
DESTDIR=$(PKG_INSTALL_DIR) \
|
--enable-pixbuf-loader,\
|
||||||
all install
|
--disable-pixbuf-loader \
|
||||||
|
) \
|
||||||
|
)
|
||||||
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,la} $(1)/usr/lib/
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} $(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/
|
$(INSTALL_DIR) $(1)/usr/include/
|
||||||
@ -52,10 +75,14 @@ endef
|
|||||||
define Package/librsvg/install
|
define Package/librsvg/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/gtk-2.0/
|
endef
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/* $(1)/usr/lib/gtk-2.0/
|
|
||||||
|
define Package/librsvg-pixbuf-loader/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/2.10.0/loaders
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/2.10.0/loaders/*.{so*,a} \
|
||||||
|
$(1)/usr/lib/gtk-2.0/2.10.0/loaders
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,librsvg))
|
$(eval $(call BuildPackage,librsvg))
|
||||||
|
$(eval $(call BuildPackage,librsvg-pixbuf-loader))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user