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

Last change on this file since 28167 was 28167, checked in by ak19, 8 years ago

Need to export MAGICK_HOME from the setup scripts for gs2build/bin/script/gs_magick.pl to work in tandem with this

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