a80095710e688860e537554e14ac8630cac0a438
[openwrt/svn-archive/archive.git] / XOrg / lib / gtk2 / 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
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/gtk2
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) -r $(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/include/* $(1)/usr/include/
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so.*,so} $(1)/usr/lib/
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
44 endef
45
46 define Package/gtk2/install
47 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
48 endef
49
50 $(eval $(call BuildPackage,gtk2))
51 $(eval $(call RequireCommand,gdk-pixbuf-csource, \
52 Please install gtk2.0-dev \
53 ))