lots of package cleanups/fixes
[openwrt/svn-archive/archive.git] / XOrg / lib / gtk-2.8.20 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gtk2.8.20
12 PKG_VERSION:=2.8.20
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:= http://ftp.gnome.org/pub/gnome/sources/gtk+/2.8/
17 PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-2.8.20
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.8.20
26 SECTION:=xorg-framework
27 CATEGORY:=Xorg
28 SUBMENU:=framework
29 TITLE:=GTK+ 2.8.20 package
30 DEPENDS:=+cairo +pango +libjpeg +atk +libtiff @DISPLAY_SUPPORT
31 endef
32
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
35 if [ -x $(CONFIGURE_CMD) ]; then \
36 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
37 $(CONFIGURE_VARS) \
38 $(CONFIGURE_CMD) \
39 $(CONFIGURE_ARGS_XTRA) \
40 $(CONFIGURE_ARGS) ;\
41 fi \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR)
47 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
52 $(CP) -r $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so.*} $(1)/usr/lib/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
55 endef
56
57 $(eval $(call BuildPackage,gtk-2.8.20))
58 $(eval $(call RequireCommand,gdk-pixbuf-csource, \
59 Please install gtk2.0-dev \
60 ))