d5e46d8248898b2e75a6f00ef3bcac3e07eaf878
[openwrt/svn-archive/archive.git] / Xorg / lib / gtk1 / Makefile
1 #
2 # Copyright (C) 2006-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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gtk1
12 PKG_VERSION:=1.2.10
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNOME/gtk+/1.2/
17 PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-1.2.10
18 PKG_MD5SUM:=4d5cb2fc7fb7830e4af9747a36bfce20
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_INSTALL=1
24
25 CONFIGURE_ARGS_XTRA+=--x-includes=$(STAGING_DIR)/usr/include/ \
26 --x-libraries=$(STAGING_DIR)/usr/lib \
27 --with-glib-prefix=$(STAGING_DIR)/usr/ \
28 --enable-static=yes \
29 --enable-static=yes
30
31 EXTRA_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
32 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include
33 EXTRA_LDFLAGS+=-lnotimpl -lglib -lgmodule
34
35 define Package/gtk1
36 SECTION:=xorg-framework
37 CATEGORY:=Xorg
38 SUBMENU:=framework
39 TITLE:=GTK+ 1.2.10 package
40 DEPENDS:=+glib1 +libX11 +libXt +libnotimpl
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)
45 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
46 $(INSTALL_DIR) $(2)/bin
47 mv $(1)/usr/bin/gtk-config $(2)/bin/
48 $(SED) "s,libdirs=-L.*,libdirs=,g" $(2)/bin/gtk-config
49 endef
50
51 $(eval $(call BuildPackage,gtk1))