added gtk-1.2 package
[openwrt/svn-archive/archive.git] / XOrg / app / gtk-1.2.10 / 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:=gtk-1.2.10
12 PKG_VERSION:=1.2.10
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/
17 PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-1.2.10
18
19 include $(INCLUDE_DIR)/package.mk
20
21 CONFIGURE_ARGS_XTRA+=--x-includes=$(STAGING_DIR)/usr/include/ \
22 --x-libraries=$(STAGING_DIR)/usr/lib \
23 --with-glib-prefix=$(STAGING_DIR)/usr/ \
24 --enable-static=yes \
25 --enable-static=yes
26
27 EXTRA_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
28
29 EXTRA_LDFLAGS+=-lnotimpl
30
31 define Package/gtk-1.2.10
32 SECTION:=xorg-framework
33 CATEGORY:=Xorg
34 SUBMENU:=framework
35 TITLE:=GTK+ 1.2.10 package
36 DEPENDS:=glib1
37 endef
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
41 if [ -x $(CONFIGURE_CMD) ]; then \
42 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
43 $(CONFIGURE_VARS) \
44 $(CONFIGURE_CMD) \
45 $(CONFIGURE_ARGS_XTRA) \
46 $(CONFIGURE_ARGS) ;\
47 fi \
48 )
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR)
53 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
54 endef
55
56 define Build/InstallDev
57 $(CP) $(PKG_INSTALL_DIR)/* $(STAGING_DIR)/
58 endef
59
60 $(eval $(call BuildPackage,gtk-1.2.10))