Adding gtk-2.10.14
[openwrt/svn-archive/archive.git] / XOrg / lib / gtk-2.10.14 / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gtk2.10.14
11 PKG_VERSION:=2.10.14
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:= http://ftp.gnome.org/pub/gnome/sources/gtk+/2.10/
16 PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-2.10.14
17 PKG_MD5SUM:=018d7dd0fa7de01cfdb77c7c55e7ba26
18
19 include $(INCLUDE_DIR)/package.mk
20
21 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/
22
23 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/
24
25 define Package/gtk-2.10.14
26 SECTION:=xorg-framework
27 CATEGORY:=Xorg
28 SUBMENU:=framework
29 TITLE:=GTK+ 2.10.14 package
30 DEPENDS:=+cairo +pango +libjpeg +atk +libtiff +pixman @DISPLAY_SUPPORT
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)
35 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
40 $(CP) -r $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so.*} $(1)/usr/lib/
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
43 endef
44
45 $(eval $(call BuildPackage,gtk-2.10.14))
46 $(eval $(call RequireCommand,gdk-pixbuf-csource, \
47 Please install gtk2.0-dev \
48 ))