Ticket #7086: themes_sysroot.patch

File themes_sysroot.patch, 1.8 KB (added by pebender@…, 11 years ago)
  • themes/configure

     
    44#
    55
    66prefix="/usr/local"
     7sysroot=""
    78
    89qmake="qmake"
    910
     
    1112  case "$opt" in
    1213  --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
    1314  ;;
     15  --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`
     16  ;;
    1417  --qmake=*) qmake=`echo $opt | cut -d '=' -f 2`
    1518  ;;
    1619  esac
     
    2225Usage:   configure [options]
    2326Options: [defaults in brackets after descriptions]
    2427Generic options:
    25   --prefix=PREFIX          MythTV install location PREFIX [$prefix]"
     28  --prefix=PREFIX          MythTV install location PREFIX [$prefix]
     29  --sysroot=SYSROOT        sysroot location SYSROOT [$sysroot]
    2630  --qmake=QMAKE            use specified qmake [$qmake]
    2731  --help                   print this message
    2832EOF
     
    3034fi
    3135
    3236# bring in mythtv config
    33 if [ -e $prefix/include/mythtv/mythconfig.mak ] ; then
     37if [ -e $sysroot$prefix/include/mythtv/mythconfig.mak ] ; then
    3438  rm mythconfig.mak 2> /dev/null
    35   ln -s $prefix/include/mythtv/mythconfig.mak mythconfig.mak
     39  ln -s $sysroot$prefix/include/mythtv/mythconfig.mak mythconfig.mak
    3640else
    37   echo "ERROR: mythconfig.mak not found at $prefix/include/mythtv/mythconfig.mak"
     41  echo "ERROR: mythconfig.mak not found at $sysroot$prefix/include/mythtv/mythconfig.mak"
    3842  echo "Did you make AND install MythTV first?"
    39   echo "Are you using the correct prefix ($prefix)?"
     43  echo "Are you using the correct prefix ($prefix) and sysroot ($sysroot)?"
    4044  echo "Bailing out!!"
    4145  exit
    4246fi
     
    4549{
    4650    $1 --version 2>&1 | grep -q "Qt version 4"
    4751}
    48 
     52 
    4953if ! is_qmake4 $qmake; then
    5054    if is_qmake4 qmake-qt4; then
    5155        qmake=qmake-qt4
     
    5660fi
    5761
    5862${qmake} QMAKE=$(which ${qmake}) themes.pro
    59 
    60