root/gs2-extensions/imagemagick/trunk/src/setup.bash @ 30676

Revision 30676, 1.6 KB (checked in by davidb, 4 years ago)

Additional packages, and updates to existing ones after testing on MacOS El Capitain

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  # Developer setting (for compilation: configure in ImageMagick)
19  # better in devel.bash?
20  export PKG_CONFIG_PATH="$GEXTIMAGEMAGICK_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
21
22  export MAGICK_HOME=$GEXTIMAGEMAGICK_INSTALLED
23  export PATH=$GEXTIMAGEMAGICK_INSTALLED/bin:$GEXTIMAGEMAGICK_INSTALLED/script:$PATH
24
25  if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
26    export LD_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib
27  else
28    export LD_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib:$LD_LIBRARY_PATH
29  fi
30  if [ "x$DYLD_FALLBACK_LIBRARY_PATH" = "x" ] ; then
31    export DYLD_FALLBACK_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib
32  else
33    export DYLD_FALLBACK_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/lib:$DYLD_FALLBACK_LIBRARY_PATH
34  fi
35
36  if [ -e "devel-srcpack" ] ; then
37    export LD_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/devel/lib:$LD_LIBRARY_PATH
38    export DYLD_FALLBACK_LIBRARY_PATH=$GEXTIMAGEMAGICK_INSTALLED/devel/lib:$DYLD_FALLBACK_LIBRARY_PATH
39  fi
40
41 
42  extdir=${GEXTIMAGEMAGICK##*/}
43
44  if [ "x$GSDLEXTS" = "x" ] ; then
45    export GSDLEXTS=$extdir
46  else
47    export GSDLEXTS=$GSDLEXTS:$extdir
48  fi
49
50
51  echo "+Your environment is now setup for $extdesc"
52else
53  echo "+Your environment is already setup for $extdesc"
54fi
Note: See TracBrowser for help on using the browser.