source: gs2-extensions/imagemagick/trunk/src/setup.bash@ 26879

Last change on this file since 26879 was 26879, checked in by davidb, 8 years ago

Change to using _FEEDBACK_ in DYLD ... variable

File size: 1.4 KB
Line 
1extdesc="the ImageMagick extension"
2
3full_setup=`pwd`/${BASH_SOURCE}
4fulldir=${full_setup%/*}
5fulldir=${fulldir%/.}
6
7if [ "x$GSDLHOME" = "x" ] ; then
8 if [ -e ../../setup.bash ] ; then
9 export gsopt_noexts=1 && pushd ../.. && source setup.bash && popd
10 export gsopt_noexts=
11 fi
12fi
13
14if [ "x$GEXTIMAGEMAGICK" = "x" ] ; then
15 export GEXTIMAGEMAGICK=$fulldir
16 export GEXTIMAGEMAGICK_INSTALLED=$GEXTIMAGEMAGICK/$GSDLOS
17
18 export PATH=$GEXTIMAGEMAGICK_INSTALLED/bin:$GEXTIMAGEMAGICK_INSTALLED/script:$PATH
19
20 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
21 export LD_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib
22 else
23 export LD_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib:$LD_LIBRARY_PATH
24 fi
25 if [ "x$DYLD_FALLBACK_LIBRARY_PATH" = "x" ] ; then
26 export DYLD_FALLBACK_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib
27 else
28 export DYLD_FALLBACK_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib:$DYLD_FALLBACK_LIBRARY_PATH
29 fi
30
31 if [ -e "devel-srcpack" ] ; then
32 export LD_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/devel/lib:$LD_LIBRARY_PATH
33 export DYLD_FALLBACK_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/devel/lib:$DYLD_FALLBACK_LIBRARY_PATH
34 fi
35
36
37 extdir=${GEXTIMAGEMAGICK##*/}
38
39 if [ "x$GSDLEXTS" = "x" ] ; then
40 export GSDLEXTS=$extdir
41 else
42 export GSDLEXTS=$GSDLEXTS:$extdir
43 fi
44
45
46 echo "+Your environment is now setup for $extdesc"
47else
48 echo "+Your environment is already setup for $extdesc"
49fi
Note: See TracBrowser for help on using the repository browser.