diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2009-01-10 20:29:11 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2009-01-10 20:29:11 +0000 |
commit | 81fb674e58d6ffdb52f8d5bad2c07cba9eed55fe (patch) | |
tree | ff5b153208e1fcad85f13cd49f7a58e6f4ad220f /rules/tcl.make | |
parent | 3d6f5fa6e7c0bed8d6fc1e611e7cc0f23e53ea62 (diff) | |
download | ptxdist-81fb674e58d6ffdb52f8d5bad2c07cba9eed55fe.tar.gz ptxdist-81fb674e58d6ffdb52f8d5bad2c07cba9eed55fe.tar.xz |
* tcl-8.5: marked as not broken now
- tested on x86 target at runtime
- tested for PowerPC at compile time
- test suite added to check the port on other architectures
on demand
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9475 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/tcl.make')
-rw-r--r-- | rules/tcl.make | 119 |
1 files changed, 99 insertions, 20 deletions
diff --git a/rules/tcl.make b/rules/tcl.make index 5f20c01ad..72fdf3167 100644 --- a/rules/tcl.make +++ b/rules/tcl.make @@ -1,5 +1,3 @@ -# -*-makefile-*- -# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $ # # Copyright (C) 2009 by Juergen Beisert # @@ -17,9 +15,10 @@ PACKAGES-$(PTXCONF_TCL) += tcl # # Paths and names # -TCL_MAJOR := 8.5 +TCL_MAJOR := 8 +TCL_MINOR := 5 TCL_PL := 6 -TCL_VERSION := $(TCL_MAJOR).$(TCL_PL) +TCL_VERSION := $(TCL_MAJOR).$(TCL_MINOR).$(TCL_PL) TCL := tcl$(TCL_VERSION) TCL_SUFFIX := -src.tar.gz TCL_URL := $(PTXCONF_SETUP_SFMIRROR)/tcl/$(TCL)$(TCL_SUFFIX) @@ -58,7 +57,12 @@ TCL_ENV := $(CROSS_ENV) TCL_AUTOCONF := $(CROSS_AUTOCONF_USR) \ --disable-rpath \ --disable-symbols \ - --enable-load + --enable-load \ + --enable-shared + +# TODO: Provide the correct encoding for the target +# --with-encoding=<valid encode from 'usr/lib/tcl8.5/encoding'> +# Note: TCL uses iso8859-1 until otherwise specified ifdef PTXCONF_TCL_THREADS TCL_AUTOCONF += --enable-threads @@ -66,7 +70,7 @@ else TCL_AUTOCONF += --disable-threads endif -# configure rejects some tests due to cross compiling +# 'configure' rejects some tests due to cross compiling # checking system version... Linux-2.6.25.4-ptx <-- it detects host's one! TCL_ACONF_VAR := tcl_cv_sys_version=Linux-$(PTXCONF_KERNEL_VERSION) @@ -86,9 +90,8 @@ TCL_ACONF_VAR += ac_cv_func_strtod=yes tcl_cv_strtod_unbroken=yes tcl_cv_strtod_ # checking if the C stack grows upwards in memory... unknown TCL_ACONF_VAR += tcl_cv_stack_grows_up=no -# unresolved issues yet -# -# checking for timezone data... /usr/share/zoneinfo <-- it uses host's one +# unresolved issues yet: +# checking for timezone data... /usr/share/zoneinfo <-- it uses host's one # $(STATEDIR)/tcl.prepare: @$(call targetinfo) @@ -102,10 +105,6 @@ $(STATEDIR)/tcl.prepare: # Compile # ---------------------------------------------------------------------------- -# unresolved issues yet: -# -# -DTCL_CFGVAL_ENCODING=\"iso8859-1\" <-- it uses the one from the host -# $(STATEDIR)/tcl.compile: @$(call targetinfo) cd $(TCL_DIR)/unix && $(TCL_PATH) $(MAKE) $(PARALLELMFLAGS) @@ -136,16 +135,96 @@ $(STATEDIR)/tcl.targetinstall: @$(call install_fixup, tcl,DEPENDS,) @$(call install_fixup, tcl,DESCRIPTION,missing) - @$(call install_copy, tcl, 0, 0, 0755, /usr/lib/tcl8/$(TCL_MAJOR)) - @$(call install_copy, tcl, 0, 0, 0755, /usr/lib/tcl$(TCL_MAJOR)) + @$(call install_copy, tcl, 0, 0, 0755, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/tclIndex, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/package.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/init.tcl, n) - @$(call install_copy, tcl, 0, 0, 0644, -, /usr/lib/tcl8/$(TCL_MAJOR)/msgcat-1.4.2.tm) - @$(call install_copy, tcl, 0, 0, 0644, -, /usr/lib/tcl8/$(TCL_MAJOR)/tcltest-2.3.0.tm) + @$(call install_copy, tcl, 0, 0, 0755, -, \ + /usr/bin/tclsh$(TCL_MAJOR).$(TCL_MINOR)) +# a simplified link is very useful + @$(call install_link, tcl, \ + /usr/bin/tclsh$(TCL_MAJOR).$(TCL_MINOR), /usr/bin/tclsh) -# what the hell do we need from the "/usr/lib/tcl$(TCL_MAJOR)" directory??? + @$(call install_copy, tcl, 0, 0, 0644, -, /usr/lib/libtcl8.5.so) - @$(call install_copy, tcl, 0, 0, 0755, -, /usr/bin/tclsh$(TCL_MAJOR)) - @$(call install_link, tcl, /usr/bin/tclsh$(TCL_MAJOR), /usr/bin/tclsh) +ifdef PTXCONF_TCL_TESTING + @$(call install_copy, tcl, 0, 0, 0755, /usr/lib/tcl$(TCL_MAJOR)) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR)/$(TCL_MAJOR).$(TCL_MINOR)/tcltest-2.3.0.tm, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR)/$(TCL_MAJOR).$(TCL_MINOR)/msgcat-1.4.2.tm, n) + + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/tm.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/parray.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/clock.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/auto.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/history.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/safe.tcl, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/word.tcl, n) + +# avoid a subdirectory hell. Install them where also the other scripts are + @$(call install_copy, tcl, 0, 0, 0644, \ + $(TCL_DIR)/library/opt/optparse.tcl, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/optparse.tcl, n) + + @$(call install_copy, tcl, 0, 0, 0644, \ + $(TCL_DIR)/library/opt/pkgIndex.tcl, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/pkgIndex.tcl, n) +endif + +ifdef PTXCONF_TCL_ENCODING + @$(call install_copy, tcl, 0, 0, 0755, \ + /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/encoding) +ifndef PTXCONF_TCL_TESTING +# install some popular code pages +# FIXME: Are these the most common ones? Add more if not + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl8.5/encoding/iso8859-1.enc, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl8.5/encoding/iso8859-15.enc, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl8.5/encoding/cp437.enc, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl8.5/encoding/cp850.enc, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl8.5/encoding/ascii.enc, n) + @$(call install_copy, tcl, 0, 0, 0644, -, \ + /usr/lib/tcl8.5/encoding/big5.enc, n) +else +# install all code pages + @cd $(TCL_DIR)/library/encoding; \ + for file in * ; do \ + $(call install_copy, tcl, 0, 0, 0644, \ + $(TCL_DIR)/library/encoding/$$file, \ + /usr/lib/tcl8.5/encoding/$$file, n); \ + done +# copy all tests to the target + @$(call install_copy, tcl, 0, 0, 0755, /usr/share/tcl-tests) + @cd $(TCL_DIR)/tests; \ + for file in * ; do \ + PER=`stat -c "%a" $$file` \ + $(call install_copy, tcl, 0, 0, $$PER, \ + $(TCL_DIR)/tests/$$file, \ + /usr/share/tcl-tests/$$file); \ + done + +# unresolved tests: +# Test file error: EscapeToUtfProc: invalid sub table + +endif +endif @$(call install_finish, tcl) |