2007-09-25 20:23:15 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gtk-1.2.10
|
|
|
|
PKG_VERSION:=1.2.10
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.gz
|
2007-11-03 13:12:44 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
ftp://ftp.gtk.org/pub/gtk/v1.2/ \
|
|
|
|
http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/
|
2007-09-25 20:23:15 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-1.2.10
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
CONFIGURE_ARGS_XTRA+=--x-includes=$(STAGING_DIR)/usr/include/ \
|
|
|
|
--x-libraries=$(STAGING_DIR)/usr/lib \
|
|
|
|
--with-glib-prefix=$(STAGING_DIR)/usr/ \
|
|
|
|
--enable-static=yes \
|
|
|
|
--enable-static=yes
|
|
|
|
|
|
|
|
EXTRA_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
|
|
|
EXTRA_LDFLAGS+=-lnotimpl
|
|
|
|
|
|
|
|
define Package/gtk-1.2.10
|
|
|
|
SECTION:=xorg-framework
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=framework
|
|
|
|
TITLE:=GTK+ 1.2.10 package
|
2007-10-25 21:21:50 +00:00
|
|
|
DEPENDS:=+glib1 @DISPLAY_SUPPORT
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
|
|
|
|
if [ -x $(CONFIGURE_CMD) ]; then \
|
|
|
|
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
|
|
|
|
$(CONFIGURE_VARS) \
|
|
|
|
$(CONFIGURE_CMD) \
|
|
|
|
$(CONFIGURE_ARGS_XTRA) \
|
|
|
|
$(CONFIGURE_ARGS) ;\
|
|
|
|
fi \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
|
|
|
$(SED) "s,libdirs=-L.*,libdirs=,g" $(1)/usr/bin/gtk-config
|
|
|
|
$(SED) "s,"libdir\=\'/usr/lib\'",libdir='$(1)/usr/lib\'," $(1)/usr/lib/lib{gtk,gdk}.la
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gtk-1.2.10))
|