Ticket #4522: myththemes_sysroot.diff

File myththemes_sysroot.diff, 1.3 KB (added by anonymous, 16 years ago)
  • myththemes/configure

    old new  
    44#
    55
    66prefix="/usr/local"
     7sysroot=""
    78
    89for opt do
    910  case "$opt" in
    1011  --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
    1112  ;;
     13  --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`
     14  ;;
    1215  esac
    1316done
    1417
     
    1922Options: [defaults in brackets after descriptions]
    2023Generic options:
    2124  --prefix=PREFIX          MythTV install location PREFIX [$prefix]"
     25  --sysroot=SYSROOT        SYSROOT location [$sysroot]
    2226  --help                   print this message
    2327EOF
    2428exit 1
    2529fi
    2630
    2731# bring in mythtv config
    28 if [ -e $prefix/include/mythtv/mythconfig.mak ] ; then
     32if [ -e $sysroot/$prefix/include/mythtv/mythconfig.mak ] ; then
    2933  rm mythconfig.mak 2> /dev/null
    30   ln -s $prefix/include/mythtv/mythconfig.mak mythconfig.mak
     34  ln -s $sysroot/$prefix/include/mythtv/mythconfig.mak mythconfig.mak
    3135else
    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"
    3337  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)?"
    3539  echo "Bailing out!!"
    3640  exit
    3741fi