Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[openwrt/svn-archive/archive.git] / Xorg / lib / librsvg / 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 12603 2008-09-13 17:54:20Z lars $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=librsvg
12 PKG_VERSION:=2.22.3
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.22
17 PKG_MD5SUM:=c4ec4fdb2b1842e221ca39127e85682d
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
25 -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
26 -L$(STAGING_DIR)/usr/lib/libiconv/lib/
27
28 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_librsvg CONFIG_PACKAGE_librsvg-pixbuf-loader)
29
30 define Package/librsvg
31 SECTION:=xorg-libs
32 CATEGORY:=Xorg
33 SUBMENU:=libraries
34 TITLE:=SVG rendering library
35 URL:=http://librsvg.sourceforge.net/
36 DEPENDS:=+cairo +libxml2 +glib2 +libcroco +pango +gtk2
37 endef
38
39 define Package/librsvg-pixbuf-loader
40 SECTION:=xorg-libs
41 CATEGORY:=Xorg
42 SUBMENU:=libraries
43 TITLE:=SVG rendering library
44 URL:=http://librsvg.sourceforge.net/
45 DEPENDS:=librsvg
46 endef
47
48 define Package/librsvg/description
49 librsvg is a high performance SVG rendering library associated with the Gnome Project.
50 endef
51
52 define Build/Configure
53 $(call Build/Configure/Default, \
54 --disable-gtk-theme \
55 --disable-mozilla-plugin \
56 --with-croco \
57 $(if $(CONFIG_PACKAGE_librsvg-pixbuf-loader), \
58 --enable-pixbuf-loader,\
59 --disable-pixbuf-loader \
60 ) \
61 )
62 endef
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/lib/
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
67 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
68 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
69 $(INSTALL_DIR) $(1)/usr/include/
70 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
71 endef
72
73 define Package/librsvg/install
74 $(INSTALL_DIR) $(1)/usr/lib/
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
76 endef
77
78 define Package/librsvg-pixbuf-loader/install
79 $(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/2.10.0/loaders
80 $(CP) \
81 $(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/2.10.0/loaders/*.so* \
82 $(1)/usr/lib/gtk-2.0/2.10.0/loaders
83 endef
84
85 $(eval $(call BuildPackage,librsvg))
86 $(eval $(call BuildPackage,librsvg-pixbuf-loader))