Mercurial > mxe-octave
annotate octave-wrapper.in @ 5541:d862fd40cc42
Use ccache for packages built with cmake.
* Makefile.in: New variable CMAKE_CCACHE_FLAGS.
* src/armadillo.mk, src/cgal.mk, src/cmake.mk, src/cminpack,
src/double-conversion.mk, src/eigen.mk, src/gdcm.mk, src/gl2ps.mk,
src/hdf5.mk, src/lapack.mk, src/libical.mk, src/libproxy, src/llvm.mk,
src/of-dicom.mk, src/openal.mk, src/opencv.mk, src/openexr.mk,
src/openscenegraph.mk, src/physfs.mk, src/qhull.mk, src/qjson.mk,
src/rapidjson.mk, src/suitesparse.mk, src/sundials-ida.mk, src/taglib.mk,
src/vigra.mk, src/vmime.mk, src/vtk.mk, src/wt.mk: Add new variable to cmake
flags. Harmonize indentation in files.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 20 Sep 2020 11:57:01 +0200 |
parents | c4899150cfc4 |
children |
rev | line source |
---|---|
3442
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 #! /bin/sh |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 OCTAVE_HOME="" |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 if [ -z "$OCTAVE_HOME" ]; then |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 echo "you must edit $0 to set OCTAVE_HOME" 1>&2 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 exit 1; |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 fi |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 PATH="$OCTAVE_HOME/bin/:$PATH" |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
4506
f3d64fe692e6
octave-wrapper.in: Include GCC library directory in LD_LIBRARY_PATH.
John W. Eaton <jwe@octave.org>
parents:
4499
diff
changeset
|
12 GCC_VERSION="@GCC_VERSION@" |
f3d64fe692e6
octave-wrapper.in: Include GCC library directory in LD_LIBRARY_PATH.
John W. Eaton <jwe@octave.org>
parents:
4499
diff
changeset
|
13 GCC_ARCH="@GCC_ARCH@" |
f3d64fe692e6
octave-wrapper.in: Include GCC library directory in LD_LIBRARY_PATH.
John W. Eaton <jwe@octave.org>
parents:
4499
diff
changeset
|
14 GCC_LIB_DIR="$OCTAVE_HOME/lib/gcc/$GCC_ARCH/$GCC_VERSION" |
f3d64fe692e6
octave-wrapper.in: Include GCC library directory in LD_LIBRARY_PATH.
John W. Eaton <jwe@octave.org>
parents:
4499
diff
changeset
|
15 |
f3d64fe692e6
octave-wrapper.in: Include GCC library directory in LD_LIBRARY_PATH.
John W. Eaton <jwe@octave.org>
parents:
4499
diff
changeset
|
16 LD_LIBRARY_PATH="$OCTAVE_HOME/lib:$OCTAVE_HOME/lib64:$OCTAVE_HOME/lib/octave/@OCTAVE_VERSION@:$GCC_LIB_DIR" |
3442
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 TERMINFO="$OCTAVE_HOME/share/terminfo" |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 TERM="vt100" |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 FONTCONFIG_PATH="$OCTAVE_HOME/etc/fonts" |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 GNUPLOT_DRIVER_DIR="$OCTAVE_HOME/libexec/gnuplot/@GNUPLOT_MAJOR_MINOR_VERSION@" |
3864
3feb4f13794f
octave-wrapper.in: also set and export GNUPLOT_SHARE_DIR
John W. Eaton <jwe@octave.org>
parents:
3466
diff
changeset
|
25 GNUPLOT_SHARE_DIR="$OCTAVE_HOME/share/gnuplot/@GNUPLOT_MAJOR_MINOR_VERSION@" |
3884
d7758bf3793e
octave-wrapper.in: Set GNUPLOT_PS_DIR in environment.
John W. Eaton <jwe@octave.org>
parents:
3864
diff
changeset
|
26 GNUPLOT_PS_DIR="$GNUPLOT_SHARE_DIR/PostScript" |
3442
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
4670
c4899150cfc4
octave-wrapper.in: set LIBGL_ALWAYS_SOFTWARE in environment
John W. Eaton <jwe@octave.org>
parents:
4667
diff
changeset
|
28 LIBGL_ALWAYS_SOFTWARE=1 |
4490
788dc298ec00
octave-wrapper.in: Set and export LIBGL_DRIVERS_PATH.
John W. Eaton <jwe@octave.org>
parents:
3884
diff
changeset
|
29 LIBGL_DRIVERS_PATH="$OCTAVE_HOME/lib/dri" |
788dc298ec00
octave-wrapper.in: Set and export LIBGL_DRIVERS_PATH.
John W. Eaton <jwe@octave.org>
parents:
3884
diff
changeset
|
30 |
4667 | 31 PERL5LIB="$OCTAVE_HOME/lib/perl5" |
32 | |
4499
c10c61a3222c
octave-wrapper.in: Also set QT_PLUGIN_PATH.
John W. Eaton <jwe@octave.org>
parents:
4490
diff
changeset
|
33 QT_PLUGIN_PATH="$OCTAVE_HOME/plugins" |
c10c61a3222c
octave-wrapper.in: Also set QT_PLUGIN_PATH.
John W. Eaton <jwe@octave.org>
parents:
4490
diff
changeset
|
34 |
3442
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 export OCTAVE_HOME |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 export PATH |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 export LD_LIBRARY_PATH |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 export TERMINFO |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 export TERM |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 export FONTCONFIG_PATH |
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 export GNUPLOT_DRIVER_DIR |
3864
3feb4f13794f
octave-wrapper.in: also set and export GNUPLOT_SHARE_DIR
John W. Eaton <jwe@octave.org>
parents:
3466
diff
changeset
|
42 export GNUPLOT_SHARE_DIR |
3884
d7758bf3793e
octave-wrapper.in: Set GNUPLOT_PS_DIR in environment.
John W. Eaton <jwe@octave.org>
parents:
3864
diff
changeset
|
43 export GNUPLOT_PS_DIR |
4670
c4899150cfc4
octave-wrapper.in: set LIBGL_ALWAYS_SOFTWARE in environment
John W. Eaton <jwe@octave.org>
parents:
4667
diff
changeset
|
44 export LIBGL_ALWAYS_SOFTWARE |
4490
788dc298ec00
octave-wrapper.in: Set and export LIBGL_DRIVERS_PATH.
John W. Eaton <jwe@octave.org>
parents:
3884
diff
changeset
|
45 export LIBGL_DRIVERS_PATH |
4667 | 46 export PERL5LIB |
4499
c10c61a3222c
octave-wrapper.in: Also set QT_PLUGIN_PATH.
John W. Eaton <jwe@octave.org>
parents:
4490
diff
changeset
|
47 export QT_PLUGIN_PATH |
3442
ebe73c541a16
allow binary dist to work for gnu-linux target
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 |
3466
cf594095a7dc
* octave-wrapper.in: Use version in real program name.
John W. Eaton <jwe@octave.org>
parents:
3442
diff
changeset
|
49 exec "$OCTAVE_HOME/bin/@PROGRAM_NAME@-@OCTAVE_VERSION@.real" "$@" |