From c558f17c50bfe6a0928c93054a1d484144f90126 Mon Sep 17 00:00:00 2001 From: Jens Muecke Date: Thu, 15 May 2008 21:06:37 +0000 Subject: [PATCH] Adding gtk-2.10.14 maybe gtk-2.8.20 can be removed. SVN-Revision: 11143 --- XOrg/lib/gtk-2.10.14/Makefile | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 XOrg/lib/gtk-2.10.14/Makefile diff --git a/XOrg/lib/gtk-2.10.14/Makefile b/XOrg/lib/gtk-2.10.14/Makefile new file mode 100644 index 000000000..e7fc7167a --- /dev/null +++ b/XOrg/lib/gtk-2.10.14/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gtk2.10.14 +PKG_VERSION:=2.10.14 +PKG_RELEASE:=1 + +PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:= http://ftp.gnome.org/pub/gnome/sources/gtk+/2.10/ +PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-2.10.14 +PKG_MD5SUM:=018d7dd0fa7de01cfdb77c7c55e7ba26 + +include $(INCLUDE_DIR)/package.mk + +EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/ + +EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/ -L$(STAGING_DIR)/usr/lib/ + +define Package/gtk-2.10.14 + SECTION:=xorg-framework + CATEGORY:=Xorg + SUBMENU:=framework + TITLE:=GTK+ 2.10.14 package + DEPENDS:=+cairo +pango +libjpeg +atk +libtiff +pixman @DISPLAY_SUPPORT +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) + $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR) +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include} + $(CP) -r $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so.*} $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ +endef + +$(eval $(call BuildPackage,gtk-2.10.14)) +$(eval $(call RequireCommand,gdk-pixbuf-csource, \ + Please install gtk2.0-dev \ +)) -- 2.30.2