Changeset 12603


Ignore:
Timestamp:
2008-09-13T19:54:20+02:00 (8 years ago)
Author:
lars
Message:

Move librsvg gdk pixbuf loader into its own package. Disable building of gtk svg
theme engine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/XOrg/lib/librsvg/Makefile

    • Property copyright set to Copyright (C) 2008 OpenWrt.org
    • Property licence set to GPLv2
    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r12504 r12603  
     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$ 
     8 
    19include $(TOPDIR)/rules.mk 
    210 
     
    1220include $(INCLUDE_DIR)/package.mk 
    1321 
     22PKG_INSTALL=1 
     23 
    1424EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ 
    1525               -L$(STAGING_DIR)/usr/lib/libintl/lib/ \ 
     
    1727 
    1828TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libcroco-0.6 
     29 
     30STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_librsvg CONFIG_PACKAGE_librsvg-pixbuf-loader) 
    1931 
    2032define Package/librsvg 
     
    2436  TITLE:=SVG rendering library 
    2537  URL:=http://librsvg.sourceforge.net/ 
    26   DEPENDS:=+cairo +libxml2 +glib2 +libcroco 
     38  DEPENDS:=+cairo +libxml2 +glib2 +libcroco +pango +gtk2 
     39endef 
     40 
     41define Package/librsvg-pixbuf-loader 
     42  SECTION:=xorg-libs 
     43  CATEGORY:=Xorg 
     44  SUBMENU:=libraries 
     45  TITLE:=SVG rendering library 
     46  URL:=http://librsvg.sourceforge.net/ 
     47  DEPENDS:=librsvg 
    2748endef 
    2849 
     
    3253 
    3354define Build/Configure 
    34   $(call Build/Configure/Default,--disable-mozilla-plugin --with-croco) 
    35 endef 
    36  
    37 define Build/Compile 
    38         $(MAKE) -C $(PKG_BUILD_DIR) \ 
    39                 DESTDIR=$(PKG_INSTALL_DIR) \ 
    40                 all install 
     55        $(call Build/Configure/Default, \ 
     56                --disable-gtk-theme \ 
     57                --disable-mozilla-plugin \ 
     58                --with-croco \ 
     59                $(if $(CONFIG_PACKAGE_librsvg-pixbuf-loader), \ 
     60                        --enable-pixbuf-loader,\ 
     61                        --disable-pixbuf-loader \ 
     62                ) \ 
     63        ) 
    4164endef 
    4265 
    4366define Build/InstallDev 
    4467        $(INSTALL_DIR) $(1)/usr/lib/ 
    45         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/ 
     68        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} $(1)/usr/lib/ 
    4669        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ 
    4770        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ 
     
    5376        $(INSTALL_DIR) $(1)/usr/lib/ 
    5477        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/ 
    55         $(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/ 
    56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/* $(1)/usr/lib/gtk-2.0/ 
    5778endef 
    58          
     79 
     80define Package/librsvg-pixbuf-loader/install 
     81        $(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/2.10.0/loaders 
     82        $(INSTALL_DATA) \ 
     83                $(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/2.10.0/loaders/*.{so*,a} \ 
     84                $(1)/usr/lib/gtk-2.0/2.10.0/loaders 
     85endef 
     86 
    5987$(eval $(call BuildPackage,librsvg)) 
    60  
    61  
     88$(eval $(call BuildPackage,librsvg-pixbuf-loader)) 
Note: See TracChangeset for help on using the changeset viewer.