2008-09-12 20:50:05 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2007-09-25 20:23:15 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2008-06-23 07:58:37 +00:00
|
|
|
PKG_NAME:=gtk1
|
2007-09-25 20:23:15 +00:00
|
|
|
PKG_VERSION:=1.2.10
|
2009-04-29 06:53:48 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-09-25 20:23:15 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.gz
|
2008-09-12 20:50:05 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/gtk+/1.2/
|
2007-09-25 20:23:15 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-1.2.10
|
2008-09-12 20:50:05 +00:00
|
|
|
PKG_MD5SUM:=4d5cb2fc7fb7830e4af9747a36bfce20
|
|
|
|
PKG_FIXUP:=libtool
|
2007-09-25 20:23:15 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-09-12 20:50:05 +00:00
|
|
|
PKG_INSTALL=1
|
|
|
|
|
2007-09-25 20:23:15 +00:00
|
|
|
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
|
2008-09-12 20:50:05 +00:00
|
|
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include
|
2009-04-29 06:53:48 +00:00
|
|
|
EXTRA_LDFLAGS+=-lglib -lgmodule
|
2007-09-25 20:23:15 +00:00
|
|
|
|
2008-06-23 07:58:37 +00:00
|
|
|
define Package/gtk1
|
2007-09-25 20:23:15 +00:00
|
|
|
SECTION:=xorg-framework
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=framework
|
|
|
|
TITLE:=GTK+ 1.2.10 package
|
2009-04-29 06:53:48 +00:00
|
|
|
DEPENDS:=+glib1 +libX11 +libXt
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-25 02:43:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
2007-12-23 01:27:33 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
mv $(1)/usr/bin/gtk-config $(2)/bin/
|
|
|
|
$(SED) "s,libdirs=-L.*,libdirs=,g" $(2)/bin/gtk-config
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
2008-06-23 07:58:37 +00:00
|
|
|
$(eval $(call BuildPackage,gtk1))
|