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