Changeset 1680 for branches/blt4
- Timestamp:
- Mar 31, 2010, 9:17:51 AM (14 years ago)
- Location:
- branches/blt4
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/configure
r1643 r1680 646 646 MEX 647 647 MATLAB 648 VTKDIR 648 649 TCL_LIB_SPEC 649 650 TCL_INC_SPEC … … 683 684 FFLAGS 684 685 F77 685 MKDIR_P686 LN_S687 RANLIB688 686 ac_ct_CXX 689 687 CXXFLAGS … … 697 695 CC 698 696 SET_MAKE 697 MKDIR_P 698 LN_S 699 RANLIB 699 700 INSTALL_DATA 700 701 INSTALL_SCRIPT … … 748 749 enable_gui 749 750 with_tclsh 751 with_vtk 750 752 with_matlab 751 753 with_octave … … 1394 1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1395 1397 --with-tclsh=DIR location of tclsh [default=yes] 1398 --with-vtk=DIR location of vtk library [default=yes] 1396 1399 --with-matlab=DIR location of matlab and mex compiler [default=yes] 1397 1400 --with-octave=DIR location of octave compiler MKOCTFILE [default=yes] … … 2783 2786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2784 2787 2788 2789 if test -n "$ac_tool_prefix"; then 2790 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2791 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793 $as_echo_n "checking for $ac_word... " >&6; } 2794 if test "${ac_cv_prog_RANLIB+set}" = set; then : 2795 $as_echo_n "(cached) " >&6 2796 else 2797 if test -n "$RANLIB"; then 2798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2799 else 2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801 for as_dir in $PATH 2802 do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2807 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811 done 2812 done 2813 IFS=$as_save_IFS 2814 2815 fi 2816 fi 2817 RANLIB=$ac_cv_prog_RANLIB 2818 if test -n "$RANLIB"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 2820 $as_echo "$RANLIB" >&6; } 2821 else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823 $as_echo "no" >&6; } 2824 fi 2825 2826 2827 fi 2828 if test -z "$ac_cv_prog_RANLIB"; then 2829 ac_ct_RANLIB=$RANLIB 2830 # Extract the first word of "ranlib", so it can be a program name with args. 2831 set dummy ranlib; ac_word=$2 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833 $as_echo_n "checking for $ac_word... " >&6; } 2834 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 2835 $as_echo_n "(cached) " >&6 2836 else 2837 if test -n "$ac_ct_RANLIB"; then 2838 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2839 else 2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841 for as_dir in $PATH 2842 do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2847 ac_cv_prog_ac_ct_RANLIB="ranlib" 2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851 done 2852 done 2853 IFS=$as_save_IFS 2854 2855 fi 2856 fi 2857 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2858 if test -n "$ac_ct_RANLIB"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 2860 $as_echo "$ac_ct_RANLIB" >&6; } 2861 else 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2863 $as_echo "no" >&6; } 2864 fi 2865 2866 if test "x$ac_ct_RANLIB" = x; then 2867 RANLIB=":" 2868 else 2869 case $cross_compiling:$ac_tool_warned in 2870 yes:) 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2873 ac_tool_warned=yes ;; 2874 esac 2875 RANLIB=$ac_ct_RANLIB 2876 fi 2877 else 2878 RANLIB="$ac_cv_prog_RANLIB" 2879 fi 2880 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2882 $as_echo_n "checking whether ln -s works... " >&6; } 2883 LN_S=$as_ln_s 2884 if test "$LN_S" = "ln -s"; then 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2886 $as_echo "yes" >&6; } 2887 else 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2889 $as_echo "no, using $LN_S" >&6; } 2890 fi 2891 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2894 if test -z "$MKDIR_P"; then 2895 if test "${ac_cv_path_mkdir+set}" = set; then : 2896 $as_echo_n "(cached) " >&6 2897 else 2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2900 do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_prog in mkdir gmkdir; do 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2907 'mkdir (GNU coreutils) '* | \ 2908 'mkdir (coreutils) '* | \ 2909 'mkdir (fileutils) '4.1*) 2910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2911 break 3;; 2912 esac 2913 done 2914 done 2915 done 2916 IFS=$as_save_IFS 2917 2918 fi 2919 2920 test -d ./--version && rmdir ./--version 2921 if test "${ac_cv_path_mkdir+set}" = set; then 2922 MKDIR_P="$ac_cv_path_mkdir -p" 2923 else 2924 # As a last resort, use the slow shell script. Don't cache a 2925 # value for MKDIR_P within a source directory, because that will 2926 # break other packages using the cache if that directory is 2927 # removed, or if the value is a relative name. 2928 MKDIR_P="$ac_install_sh -d" 2929 fi 2930 fi 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2932 $as_echo "$MKDIR_P" >&6; } 2933 2785 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2786 2935 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } … … 3865 4014 3866 4015 # Avoid g95 3867 3868 if test -n "$ac_tool_prefix"; then3869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.3870 set dummy ${ac_tool_prefix}ranlib; ac_word=$23871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53872 $as_echo_n "checking for $ac_word... " >&6; }3873 if test "${ac_cv_prog_RANLIB+set}" = set; then :3874 $as_echo_n "(cached) " >&63875 else3876 if test -n "$RANLIB"; then3877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.3878 else3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3880 for as_dir in $PATH3881 do3882 IFS=$as_save_IFS3883 test -z "$as_dir" && as_dir=.3884 for ac_exec_ext in '' $ac_executable_extensions; do3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53888 break 23889 fi3890 done3891 done3892 IFS=$as_save_IFS3893 3894 fi3895 fi3896 RANLIB=$ac_cv_prog_RANLIB3897 if test -n "$RANLIB"; then3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&53899 $as_echo "$RANLIB" >&6; }3900 else3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&53902 $as_echo "no" >&6; }3903 fi3904 3905 3906 fi3907 if test -z "$ac_cv_prog_RANLIB"; then3908 ac_ct_RANLIB=$RANLIB3909 # Extract the first word of "ranlib", so it can be a program name with args.3910 set dummy ranlib; ac_word=$23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53912 $as_echo_n "checking for $ac_word... " >&6; }3913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :3914 $as_echo_n "(cached) " >&63915 else3916 if test -n "$ac_ct_RANLIB"; then3917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.3918 else3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3920 for as_dir in $PATH3921 do3922 IFS=$as_save_IFS3923 test -z "$as_dir" && as_dir=.3924 for ac_exec_ext in '' $ac_executable_extensions; do3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then3926 ac_cv_prog_ac_ct_RANLIB="ranlib"3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53928 break 23929 fi3930 done3931 done3932 IFS=$as_save_IFS3933 3934 fi3935 fi3936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB3937 if test -n "$ac_ct_RANLIB"; then3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&53939 $as_echo "$ac_ct_RANLIB" >&6; }3940 else3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&53942 $as_echo "no" >&6; }3943 fi3944 3945 if test "x$ac_ct_RANLIB" = x; then3946 RANLIB=":"3947 else3948 case $cross_compiling:$ac_tool_warned in3949 yes:)3950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&53951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}3952 ac_tool_warned=yes ;;3953 esac3954 RANLIB=$ac_ct_RANLIB3955 fi3956 else3957 RANLIB="$ac_cv_prog_RANLIB"3958 fi3959 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&53961 $as_echo_n "checking whether ln -s works... " >&6; }3962 LN_S=$as_ln_s3963 if test "$LN_S" = "ln -s"; then3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&53965 $as_echo "yes" >&6; }3966 else3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&53968 $as_echo "no, using $LN_S" >&6; }3969 fi3970 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&53972 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }3973 if test -z "$MKDIR_P"; then3974 if test "${ac_cv_path_mkdir+set}" = set; then :3975 $as_echo_n "(cached) " >&63976 else3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3978 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin3979 do3980 IFS=$as_save_IFS3981 test -z "$as_dir" && as_dir=.3982 for ac_prog in mkdir gmkdir; do3983 for ac_exec_ext in '' $ac_executable_extensions; do3984 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue3985 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(3986 'mkdir (GNU coreutils) '* | \3987 'mkdir (coreutils) '* | \3988 'mkdir (fileutils) '4.1*)3989 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext3990 break 3;;3991 esac3992 done3993 done3994 done3995 IFS=$as_save_IFS3996 3997 fi3998 3999 test -d ./--version && rmdir ./--version4000 if test "${ac_cv_path_mkdir+set}" = set; then4001 MKDIR_P="$ac_cv_path_mkdir -p"4002 else4003 # As a last resort, use the slow shell script. Don't cache a4004 # value for MKDIR_P within a source directory, because that will4005 # break other packages using the cache if that directory is4006 # removed, or if the value is a relative name.4007 MKDIR_P="$ac_install_sh -d"4008 fi4009 fi4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&54011 $as_echo "$MKDIR_P" >&6; }4012 4013 4014 4016 ac_ext=f 4015 4017 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' … … 7254 7256 7255 7257 7258 7259 7260 7261 # Check whether --with-vtk was given. 7262 if test "${with_vtk+set}" = set; then : 7263 withval=$with_vtk; with_vtk=$withval 7264 else 7265 with_vtk=yes 7266 fi 7267 7268 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5 7270 $as_echo_n "checking for vtk... " >&6; } 7271 VTKDIR="" 7272 7273 if test "$with_vtk" != "no" ; then 7274 if test "$with_vtk" = "yes" ; then 7275 for path in \ 7276 $libdir \ 7277 $prefix/lib \ 7278 $exec_prefix/lib \ 7279 /usr/lib 7280 do 7281 for vtk in $path/vtk-* ; do 7282 if test -d "${vtk}" ; then 7283 VTKDIR=${vtk} 7284 fi 7285 done 7286 if test "x${VTKDIR}" != "x" ; then 7287 break 7288 fi 7289 done 7290 fi 7291 fi 7292 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTKDIR" >&5 7294 $as_echo "$VTKDIR" >&6; } 7256 7295 7257 7296 -
branches/blt4/configure.in
r1643 r1680 24 24 25 25 AC_PROG_INSTALL 26 AC_PROG_INSTALL 27 AC_PROG_RANLIB 28 AC_PROG_LN_S 29 AC_PROG_MKDIR_P 26 30 AC_PROG_MAKE_SET 27 31 … … 30 34 AC_PROG_CXX 31 35 # Avoid g95 32 AC_PROG_INSTALL33 AC_PROG_RANLIB34 AC_PROG_LN_S35 AC_PROG_MKDIR_P36 37 36 AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32]) 38 37 … … 169 168 AC_SUBST(TCL_INC_SPEC) 170 169 AC_SUBST(TCL_LIB_SPEC) 170 171 AC_ARG_WITH( 172 [vtk], 173 [AS_HELP_STRING([--with-vtk[=DIR]], 174 [location of vtk library @<:@default=yes@:>@])], 175 [with_vtk=$withval], [with_vtk=yes]) 176 177 AC_MSG_CHECKING([for vtk]) 178 VTKDIR="" 179 180 if test "$with_vtk" != "no" ; then 181 if test "$with_vtk" = "yes" ; then 182 for path in \ 183 $libdir \ 184 $prefix/lib \ 185 $exec_prefix/lib \ 186 /usr/lib 187 do 188 for vtk in $path/vtk-* ; do 189 if test -d "${vtk}" ; then 190 VTKDIR=${vtk} 191 fi 192 done 193 if test "x${VTKDIR}" != "x" ; then 194 break 195 fi 196 done 197 fi 198 fi 199 AC_SUBST(VTKDIR) 200 AC_MSG_RESULT([$VTKDIR]) 201 171 202 172 203 AC_ARG_WITH( -
branches/blt4/examples/zoo/filechoice/filechoice.tcl
r1677 r1680 15 15 $driver put output.string(stats).about.label "Echo of choice" 16 16 set choice [$driver get input.filelist(stats).current] 17 set choice [join [split $choice ,] \n] 17 18 $driver put output.string(stats).current $choice 18 19 -
branches/blt4/gui/apps/rappture-csh.env.in
r1583 r1680 21 21 set bindir=@bindir@ 22 22 set libdir=@libdir@ 23 set vtkdir=@VTKDIR@ 24 set python_version=@PYTHON_VERSION@ 25 set tcl_version=@TCL_VERSION@ 23 26 24 27 set path = ( $bindir $path ) 25 28 26 if ( $? TCLLIBPATH ) then27 setenv TCLLIBPATH "${libdir}/vtk $TCLLIBPATH"29 if ( $?LD_LIBRARY_PATH ) then 30 setenv LD_LIBRARY_PATH "${libdir}:${vtkdir}:$LD_LIBRARY_PATH" 28 31 else 29 setenv TCLLIBPATH "${libdir}/vtk" 30 endif 31 32 if ( $?LD_LIBRARY_PATH ) then 33 setenv LD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2:${libdir}/vtk:$LD_LIBRARY_PATH" 34 else 35 setenv LD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2:${libdir}/vtk" 32 setenv LD_LIBRARY_PATH "${libdir}:${vtkdir}:${libdir}/vtk" 36 33 endif 37 34 38 35 if ( $?DYLD_LIBRARY_PATH ) then 39 setenv DYLD_LIBRARY_PATH "${libdir}:${ libdir}/vtk-5.2/${libdir}/vtk:$DYLD_LIBRARY_PATH"36 setenv DYLD_LIBRARY_PATH "${libdir}:${vtkdir}:$DYLD_LIBRARY_PATH" 40 37 else 41 setenv DYLD_LIBRARY_PATH "${libdir}:${ libdir}/vtk-5.2/${libdir}/vtk"38 setenv DYLD_LIBRARY_PATH "${libdir}:${vtkdir}" 42 39 endif 43 40 … … 66 63 endif 67 64 65 if ( $?PYTHONPATH ) then 66 setenv PYTHONPATH "${libdir}/python${python_version}/site-packages:$PYTHONPATH" 67 else 68 setenv PYTHONPATH "${libdir}/python${python_version}/site-packages" 69 endif 70 68 71 if ( $?RUBYLIB ) then 69 72 setenv RUBYLIB "${libdir}/ruby:$RUBYLIB" … … 73 76 74 77 if ( $?TCL_LIBRARY ) then 75 setenv TCL_LIBRARY "${libdir}/tcl 8.4:$TCL_LIBRARY"78 setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}:$TCL_LIBRARY" 76 79 else 77 setenv TCL_LIBRARY "${libdir}/tcl 8.4"80 setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}" 78 81 endif 79 82 80 83 if ( $?TK_LIBRARY ) then 81 setenv TK_LIBRARY "${libdir}/tk 8.4:$TK_LIBRARY"84 setenv TK_LIBRARY "${libdir}/tk${tcl_version}:$TK_LIBRARY" 82 85 else 83 setenv TK_LIBRARY "${libdir}/tk 8.4"86 setenv TK_LIBRARY "${libdir}/tk${tcl_version}" 84 87 endif 85 88 86 set python_version=@PYTHON_VERSION@ 87 88 if ( $?PYTHONPATH ) then 89 setenv PYTHONPATH "${libdir}/python${python_version}/site-packages:$PYTHONPATH" 89 if ( $?TCLLIBPATH ) then 90 setenv TCLLIBPATH "${vtkdir} $TCLLIBPATH" 90 91 else 91 setenv PYTHONPATH "${libdir}/python${python_version}/site-packages"92 setenv TCLLIBPATH "${vtkdir}" 92 93 endif -
branches/blt4/gui/apps/rappture.env.in
r1583 r1680 20 20 libdir=@libdir@ 21 21 bindir=@bindir@ 22 vtkdir=@VTKDIR@ 23 python_version=@PYTHON_VERSION@ 24 tcl_version=@TCL_VERSION@ 22 25 23 # no need to edit the rest...24 exportPATH=${bindir}:$PATH26 # No need to edit anything else 27 PATH=${bindir}:$PATH 25 28 26 export TCLLIBPATH="${libdir}/vtk $TCLLIBPATH" 29 LD_LIBRARY_PATH=${libdir}:${vtkdir}:$LD_LIBRARY_PATH 27 30 28 vtk_library_path=${libdir}/vtk-5.2:${libdir}/vtk 31 # For MacOS X 32 DYLD_LIBRARY_PATH=${libdir}:${vtkdir}:$DYLD_LIBRARY_PATH 29 33 30 export LD_LIBRARY_PATH=${libdir}:$vtk_library_path:$LD_LIBRARY_PATH 31 32 export DYLD_LIBRARY_PATH=${libdir}:${libdir}/vtk:$DYLD_LIBRARY_PATH 34 export PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH 33 35 34 36 MATLABPATH=${libdir}/matlab:$MATLABPATH 37 OCTAVE_LOADPATH=:${libdir}/octave:$OCTAVE_LOADPATH 35 38 OCTAVE_PATH=:${libdir}/octave:$OCTAVE_PATH 36 OCTAVE_LOADPATH=:${libdir}/octave:$OCTAVE_LOADPATH37 PERL5LIB=${libdir}/perl:$PERL5LIB38 RUBYLIB=${libdir}/ruby:$RUBYLIB39 TCL_LIBRARY=${libdir}/tcl8.4:$TCL_LIBRARY40 TK_LIBRARY=${libdir}/tk8.4:$TK_LIBRARY41 39 42 40 export MATLABPATH OCTAVE_PATH OCTAVE_LOADPATH 43 export PERL5LIB RUBYLIB TCL_LIBRARY TK_LIBRARY PYTHONPATH44 41 45 # This is done specifically for python right now. 46 python_version="@PYTHON_VERSION@" 42 PERL5LIB=${libdir}/perl:$PERL5LIB 47 43 PYTHONPATH=${libdir}/python${python_version}/site-packages:${PYTHONPATH} 44 RUBYLIB=${libdir}/ruby:$RUBYLIB 48 45 46 export PERL5LIB RUBYLIB PYTHONPATH 47 48 TCLLIBPATH="${vtkdir} $TCLLIBPATH" 49 TCL_LIBRARY=${libdir}/tcl${tcl_version}:$TCL_LIBRARY 50 TK_LIBRARY=${libdir}/tk${tcl_version}:$TK_LIBRARY 51 52 export TCL_LIBRARY TK_LIBRARY TCLLIBPATH 53 -
branches/blt4/gui/apps/rappture.use.in
r1633 r1680 11 11 libdir=@libdir@ 12 12 bindir=@bindir@ 13 vtkdir=@VTKDIR@ 14 python_version=@PYTHON_VERSION@ 15 tcl_version=@TCL_VERSION@ 13 16 14 destdir=@bindir@ 17 prepend PATH ${bindir}/bin 15 18 16 prepend PATH $destdir/bin 17 18 prepend TCLLIBPATH $destdir/lib/vtk 19 20 prepend LD_LIBRARY_PATH ${libdir}/vtk 21 prepend LD_LIBRARY_PATH ${libdir}/vtk-5.2 19 prepend LD_LIBRARY_PATH ${vtkdir} 22 20 prepend LD_LIBRARY_PATH ${libdir} 23 24 prepend DYLD_LIBRARY_PATH ${libdir}/vtk 25 prepend DYLD_LIBRARY_PATH ${libdir}/vtk-5.2 21 prepend DYLD_LIBRARY_PATH ${vtkdir} 26 22 prepend DYLD_LIBRARY_PATH ${libdir} 27 23 28 24 prepend MATLABPATH ${libdir}/matlab 29 30 25 prepend OCTAVE_PATH :${libdir}/octave: 31 26 prepend OCTAVE_LOADPATH :${libdir}/octave: 32 27 33 28 prepend PERL5LIB ${libdir}/perl 34 35 29 prepend RUBYLIB ${libdir}/ruby 36 37 prepend TCL_LIBRARY ${libdir}/tcl8.438 39 prepend TK_LIBRARY ${libdir}/tk8.440 41 python_version="@PYTHON_VERSION@"42 30 prepend PYTHONPATH ${libdir}/python${python_version}/site-packages 43 31 32 prepend TCLLIBPATH ${vtkdir} 33 prepend TCL_LIBRARY ${libdir}/tcl${tcl_version} 34 prepend TK_LIBRARY ${libdir}/tk${tcl_version} 35 36 -
branches/blt4/gui/scripts/filelistentry.tcl
r1677 r1680 39 39 public method tooltip {} 40 40 41 private method Toggle { id } 41 42 protected method _rebuild {} 42 protected method _newValue { }43 protected method _newValue { args } 43 44 protected method _tooltip {} 44 45 protected method _whenidle {} … … 81 82 itk_component add tree { 82 83 blt::treeview $itk_component(scrollset).tree -linewidth 0 \ 84 -alternatebackground "" \ 83 85 -bg white -selectmode multiple \ 84 86 -highlightthickness 0 \ … … 94 96 -weight 1.0 -text "" -pad 0 -borderwidth 0 -edit no 95 97 $itk_component(tree) column configure "show" -style "check" -pad {0 0} \ 96 -edit yes98 -edit no 97 99 pack $itk_component(scrollset) -fill both -expand yes 98 100 99 101 blt::table $itk_interior \ 100 102 0,0 $itk_component(scrollset) -fill both 101 103 $_tree trace create all "show" w [itcl::code $this _newValue] 102 104 bind $itk_component(tree) <<Value>> [itcl::code $this _newValue] 105 $itk_component(tree) bin Entry <Double-ButtonPress-1> \ 106 +[itcl::code $this Toggle current] 103 107 104 108 # First time, parse the <pattern> elements to generate notify callbacks … … 230 234 set glob [string trim [$_owner xml get $_path.$cname]] 231 235 # Successively replace each template with its value. 232 puts stderr "before glob=$glob"233 236 while { [regexp -indices {@@[^@]*@@} $glob range] } { 234 237 foreach {first last} $range break … … 237 240 set cpath [string range $glob $i1 $i2] 238 241 set value [$_owner xml get $cpath.current] 239 puts stderr "$cpath.current: value=$value"240 242 if { $value == "" } { 241 puts stderr "$_owner xml get $cpath.default"242 243 set value [$_owner xml get $cpath.default] 243 puts stderr "$cpath.default: value=$value"244 244 } 245 245 set glob [string replace $glob $first $last $value] … … 260 260 set data [list path $file show 0] 261 261 set id [$_tree insert root -label $tail -data $data -tag ""] 262 puts stderr "1. tags $id=[$_tree tag names $id]"263 262 } else { 264 $_tree tag delete $id unused 265 puts stderr "2. tags $id=[$_tree tag names $id]" 263 $_tree tag delete unused $id 266 264 } 267 265 set len [string length $tail] 268 266 if {$len > $max} { set max $len } 269 267 } 270 puts stderr ids=[$_tree tag nodes unused]271 268 eval $_tree delete [$_tree tag nodes unused] 272 269 $itk_component(tree) configure -width $max … … 280 277 # Sends a <<Value>> event to notify clients of the change. 281 278 # ---------------------------------------------------------------------- 282 itcl::body Rappture::FileListEntry::_newValue { } {279 itcl::body Rappture::FileListEntry::_newValue { args } { 283 280 event generate $itk_component(hull) <<Value>> 284 281 } … … 324 321 } 325 322 } 323 324 itcl::body Rappture::FileListEntry::Toggle { index } { 325 set id [$itk_component(tree) index $index] 326 set show [$_tree get $id "show" 0] 327 set show [expr $show==0] 328 $_tree set $id "show" $show 329 }
Note: See TracChangeset
for help on using the changeset viewer.