Ticket #7086: themes_sysroot.patch
File themes_sysroot.patch, 1.8 KB (added by , 15 years ago) |
---|
-
themes/configure
4 4 # 5 5 6 6 prefix="/usr/local" 7 sysroot="" 7 8 8 9 qmake="qmake" 9 10 … … 11 12 case "$opt" in 12 13 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` 13 14 ;; 15 --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2` 16 ;; 14 17 --qmake=*) qmake=`echo $opt | cut -d '=' -f 2` 15 18 ;; 16 19 esac … … 22 25 Usage: configure [options] 23 26 Options: [defaults in brackets after descriptions] 24 27 Generic options: 25 --prefix=PREFIX MythTV install location PREFIX [$prefix]" 28 --prefix=PREFIX MythTV install location PREFIX [$prefix] 29 --sysroot=SYSROOT sysroot location SYSROOT [$sysroot] 26 30 --qmake=QMAKE use specified qmake [$qmake] 27 31 --help print this message 28 32 EOF … … 30 34 fi 31 35 32 36 # bring in mythtv config 33 if [ -e $ prefix/include/mythtv/mythconfig.mak ] ; then37 if [ -e $sysroot$prefix/include/mythtv/mythconfig.mak ] ; then 34 38 rm mythconfig.mak 2> /dev/null 35 ln -s $ prefix/include/mythtv/mythconfig.mak mythconfig.mak39 ln -s $sysroot$prefix/include/mythtv/mythconfig.mak mythconfig.mak 36 40 else 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" 38 42 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)?" 40 44 echo "Bailing out!!" 41 45 exit 42 46 fi … … 45 49 { 46 50 $1 --version 2>&1 | grep -q "Qt version 4" 47 51 } 48 52 49 53 if ! is_qmake4 $qmake; then 50 54 if is_qmake4 qmake-qt4; then 51 55 qmake=qmake-qt4 … … 56 60 fi 57 61 58 62 ${qmake} QMAKE=$(which ${qmake}) themes.pro 59 60