Hi,

this patch updates tcl to 8.5.8, uses PKG_INSTALL and cleans up a bit.

-Raphael
diff '--exclude=.svn' -pruN tcl.orig/Makefile tcl/Makefile
--- tcl.orig/Makefile	2010-05-04 16:16:58.000000000 +0200
+++ tcl/Makefile	2010-05-05 11:52:18.000000000 +0200
@@ -1,21 +1,25 @@
-# 
-# Copyright (C) 2008 OpenWrt.org
+#
+# Copyright (C) 2006-2010 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
+
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tcl
-PKG_VERSION:=8.4.19
+PKG_VERSION:=8.5.8
 PKG_RELEASE:=1
 
-PKG_SOURCE:=tcl$(PKG_VERSION)-src.tar.gz
+PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION)-src.tar.gz
 PKG_SOURCE_URL:=...@sf/tcl
-PKG_MD5SUM:=ade2c033a7b545ee108f3fdfeb629fcf
+PKG_MD5SUM:=7f123e53b3daaaba2478d3af5a0752e3
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
 
+PKG_FIXUP:=libtool
+PKG_INSTALL:=1
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/tcl
@@ -26,41 +30,35 @@ define Package/tcl
 endef
 
 define Package/tcl/description
-	TCL Scripting Language
+Tcl (Tool Command Language) is a very powerful but easy to learn dynamic
+programming language, suitable for a very wide range of uses, including web and
+desktop applications, networking, administration, testing and many more. Open
+source and business-friendly, Tcl is a mature yet evolving language that is truly
+cross platform, easily deployed and highly extensible. 
 endef
 
-define Build/Configure
-	(cd $(PKG_BUILD_DIR)/unix; \
-	autoconf configure.in > configure; \
-	sed -i.bak "s/relid'/relid/" configure; \
-	$(TARGET_CONFIGURE_OPTS) \
-	./configure \
-		--build=$(GNU_HOST_NAME) \
-		--host=$(GNU_TARGET_NAME) \
-		--prefix=/usr \
-		--enable-gcc \
-		--enable-threads \
-		--disable-nls \
-	)
-endef
+CONFIGURE_PATH := unix
 
-define Build/Compile
-	$(MAKE) -C $(PKG_BUILD_DIR)/unix \
-		DESTDIR="$(PKG_INSTALL_DIR)" \
-		all install
-endef
+CONFIGURE_VARS += \
+	tcl_cv_strtod_unbroken=ok
+
+CONFIGURE_ARGS += \
+	--enable-threads
+
+MAKE_PATH := unix
 
 define Build/InstallDev
 	$(INSTALL_DIR) $(1)/usr/include
 	$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+
 	$(INSTALL_DIR) $(1)/usr/lib
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcl*.{a,so*} $(1)/usr/lib/
 endef
 
-
 define Package/tcl/install
 	$(INSTALL_DIR) $(1)/usr/lib
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib
+
 	$(INSTALL_DIR) $(1)/usr/bin
 	$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
 endef
diff '--exclude=.svn' -pruN tcl.orig/patches/001-configure_in.patch tcl/patches/001-configure_in.patch
--- tcl.orig/patches/001-configure_in.patch	2010-05-04 16:16:58.000000000 +0200
+++ tcl/patches/001-configure_in.patch	1970-01-01 01:00:00.000000000 +0100
@@ -1,11 +0,0 @@
---- tcl8.4.16/unix/configure.in.orig	2007-09-21 17:07:02.000000000 +0000
-+++ tcl8.4.16/unix/configure.in	2008-03-19 05:48:57.000000000 +0000
-@@ -308,7 +308,7 @@
-     fi
- fi
- if test $tcl_ok = 0; then
--    LIBOBJS="$LIBOBJS strtod.o"
-+   :; # LIBOBJS="$LIBOBJS strtod.o"
- fi
- 
- #--------------------------------------------------------------------
diff '--exclude=.svn' -pruN tcl.orig/patches/002-strstr.patch tcl/patches/002-strstr.patch
--- tcl.orig/patches/002-strstr.patch	2010-05-04 16:16:58.000000000 +0200
+++ tcl/patches/002-strstr.patch	1970-01-01 01:00:00.000000000 +0100
@@ -1,13 +0,0 @@
---- tcl8.4.12/compat/strstr.c	2005-04-12 20:28:56.000000000 +0200
-+++ tcl/compat/strstr.c	2005-12-19 13:35:52.087181048 +0100
-@@ -37,7 +37,9 @@
-  *
-  *----------------------------------------------------------------------
-  */
--
-+#ifndef NULL
-+#define NULL
-+#endif
- char *
- strstr(string, substring)
-     register char *string;	/* String to search. */
diff '--exclude=.svn' -pruN tcl.orig/patches/100-disable_tzdata_and_msgs_install.patch tcl/patches/100-disable_tzdata_and_msgs_install.patch
--- tcl.orig/patches/100-disable_tzdata_and_msgs_install.patch	1970-01-01 01:00:00.000000000 +0100
+++ tcl/patches/100-disable_tzdata_and_msgs_install.patch	2010-05-05 17:58:06.000000000 +0200
@@ -0,0 +1,22 @@
+--- a/unix/Makefile.in
++++ b/unix/Makefile.in
+@@ -817,15 +817,15 @@ install-tzdata: tclsh
+ 	@echo "Installing time zone data"
+ 	@@ld_library_path_...@="`pwd`:$...@ld_library_path_var@}"; export @LD_LIBRARY_PATH_VAR@; \
+ 	TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
+-	./tclsh $(TOOL_DIR)/installData.tcl \
+-	    $(TOP_DIR)/library/tzdata "$(SCRIPT_INSTALL_DIR)"/tzdata
++	#./tclsh $(TOOL_DIR)/installData.tcl \
++	#    $(TOP_DIR)/library/tzdata "$(SCRIPT_INSTALL_DIR)"/tzdata
+ 
+ install-msgs: tclsh
+ 	@echo "Installing message catalogs"
+ 	@@ld_library_path_...@="`pwd`:$...@ld_library_path_var@}"; export @LD_LIBRARY_PATH_VAR@; \
+ 	TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
+-	./tclsh $(TOOL_DIR)/installData.tcl \
+-	    $(TOP_DIR)/library/msgs "$(SCRIPT_INSTALL_DIR)"/msgs
++	#./tclsh $(TOOL_DIR)/installData.tcl \
++	#    $(TOP_DIR)/library/msgs "$(SCRIPT_INSTALL_DIR)"/msgs
+ 
+ install-doc: doc
+ 	@for i in "$(MAN_INSTALL_DIR)" "$(MAN1_INSTALL_DIR)" "$(MAN3_INSTALL_DIR)" "$(MANN_INSTALL_DIR)" ; \
diff '--exclude=.svn' -pruN tcl.orig/patches/200-fix_mips_build.patch tcl/patches/200-fix_mips_build.patch
--- tcl.orig/patches/200-fix_mips_build.patch	1970-01-01 01:00:00.000000000 +0100
+++ tcl/patches/200-fix_mips_build.patch	2010-05-05 17:51:08.000000000 +0200
@@ -0,0 +1,20 @@
+--- a/generic/tclStrToD.c
++++ b/generic/tclStrToD.c
+@@ -73,7 +73,7 @@ typedef unsigned int fpu_control_t __att
+  * MIPS floating-point units need special settings in control registers
+  * to use gradual underflow as we expect.
+  */
+-#if defined(__mips)
++#if defined(__sgi) && defined(_COMPILER_VERSION)
+ #include <sys/fpu.h>
+ #endif
+ /*
+@@ -2166,7 +2166,7 @@ TclInitDoubleConversion(void)
+     } bitwhack;
+ #endif
+ 
+-#if defined(__mips)
++#if defined(__sgi) && defined(_COMPILER_VERSION)
+     union fpc_csr mipsCR;
+ 
+     mipsCR.fc_word = get_fpc_csr();
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to