Ticket #4522: myththemes_sysroot.diff
File myththemes_sysroot.diff, 1.3 KB (added by , 16 years ago) |
---|
-
myththemes/configure
old new 4 4 # 5 5 6 6 prefix="/usr/local" 7 sysroot="" 7 8 8 9 for opt do 9 10 case "$opt" in 10 11 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` 11 12 ;; 13 --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2` 14 ;; 12 15 esac 13 16 done 14 17 … … 19 22 Options: [defaults in brackets after descriptions] 20 23 Generic options: 21 24 --prefix=PREFIX MythTV install location PREFIX [$prefix]" 25 --sysroot=SYSROOT SYSROOT location [$sysroot] 22 26 --help print this message 23 27 EOF 24 28 exit 1 25 29 fi 26 30 27 31 # bring in mythtv config 28 if [ -e $ prefix/include/mythtv/mythconfig.mak ] ; then32 if [ -e $sysroot/$prefix/include/mythtv/mythconfig.mak ] ; then 29 33 rm mythconfig.mak 2> /dev/null 30 ln -s $ prefix/include/mythtv/mythconfig.mak mythconfig.mak34 ln -s $sysroot/$prefix/include/mythtv/mythconfig.mak mythconfig.mak 31 35 else 32 echo "ERROR: mythconfig.mak not found at $ prefix/include/mythtv/mythconfig.mak"36 echo "ERROR: mythconfig.mak not found at $sysroot/$prefix/include/mythtv/mythconfig.mak" 33 37 echo "Did you make AND install MythTV first?" 34 echo "Are you using the correct prefix ($prefix) ?"38 echo "Are you using the correct prefix ($prefix) and sysroot ($sysroot)?" 35 39 echo "Bailing out!!" 36 40 exit 37 41 fi