Mercurial > mxe-octave
annotate tools/set-mxe-env.sh.in @ 3968:d0d5dacd1941
octave: add msys2 patch
* src/mingw-default-octave-1-msys-fixes.patch: new file
* src/mingw-default-octave-1-msys-fixes.patch: new file
* dist-files.mk: add new patches
* src/default-octave.mk: add ac_cv_search_tputs=-ltermcap configure option for native mingw
* src/octave.mk: add ac_cv_search_tputs=-ltermcap configure option for native mingw
author | John Donoghue |
---|---|
date | Tue, 16 Jun 2015 11:43:16 -0400 |
parents | 6cf5d50556d4 |
children | 0962acdde3be |
rev | line source |
---|---|
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 #!/bin/bash |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 MXEDIR=@MXE_ROOTDIR@ |
3220
0d3feaef089f
Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents:
3180
diff
changeset
|
3 |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 if [ -z "$MXE_OCTAVE_ENV" ]; then |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
6 if [ "@MXE_NATIVE_BUILD@" = "yes" ]; then |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
7 MXE_PATH="$MXEDIR/usr/bin" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
8 MXE_INC_PATH="$MXEDIR/usr/include" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
9 MXE_LIB_PATH="$MXEDIR/usr/lib" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
10 else |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
11 HOST=$($MXEDIR/tools/config.guess) |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
13 MXE_PATH="$MXEDIR/usr/$HOST/bin:$MXEDIR/usr/bin" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
14 MXE_INC_PATH="$MXEDIR/usr/$HOST/include" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
15 MXE_LIB_PATH="$MXEDIR/usr/$HOST/lib" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
16 fi |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
17 |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
18 export PATH="$MXE_PATH:$PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
19 export CPPFLAGS="-I$MXE_INC_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
20 export LDFLAGS="-L$MXE_LIB_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
21 export LD_LIBRARY_PATH="$MXE_LIB_PATH:$LD_LIBRARY_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
22 export PKG_CONFIG_PATH="$MXE_LIB_PATH/pkgconfig" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
23 export PKG_CONFIG="$MXEDIR/usr/bin/pkg-config@EXEEXT@" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
24 |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
25 export MXE_OCTAVE_ENV=$MXEDIR |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
26 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
27 fi |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 |