Ticket #5044: themes-qmake.patch

File themes-qmake.patch, 1.1 KB (added by pebender@…, 12 years ago)

themes patch

  • configure

    diff -Naur myththemes-addons-trunk-16798-old/configure myththemes-addons-trunk-16798-new/configure
    old new  
    55
    66prefix="/usr/local"
    77
     8qmake="qmake"
     9
    810for opt do
    911  case "$opt" in
    1012  --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
    1113  ;;
     14  --qmake=*) qmake=`echo $opt | cut -d '=' -f 2`
     15  ;;
    1216  esac
    1317done
    1418
     
    1923Options: [defaults in brackets after descriptions]
    2024Generic options:
    2125  --prefix=PREFIX          MythTV install location PREFIX [$prefix]"
     26  --qmake=QMAKE            use specified qmake [$qmake]
    2227  --help                   print this message
    2328EOF
    2429exit 1
     
    3641  exit
    3742fi
    3843
    39 qmake themes.pro
     44is_qmake4()
     45{
     46    $1 --version 2>&1 | grep -q "Qt version 4"
     47}
     48 
     49if ! is_qmake4 $qmake; then
     50    if is_qmake4 qmake-qt4; then
     51        qmake=qmake-qt4
     52    else
     53        echo "qmake for Qt4 not found. Please specify the correct qmake with --qmake="
     54        exit 1
     55    fi
     56fi
     57
     58${qmake} QMAKE=$(which ${qmake}) themes.pro