Ticket #4200: Trac4200.0-20-fixes.diff

File Trac4200.0-20-fixes.diff, 5.3 KB (added by Nigel, 16 years ago)

Patch of osx-packager.pl to attempt 10.5 builds

  • .osx-packager/src/myth-svn/mythtv/contrib/osx-packager.pl

     
    111111    'url'
    112112    => 'http://subversion.tigris.org/downloads/subversion-1.4.3.tar.bz2',
    113113    'pre-conf'
    114     => 'tar -xjf subversion-deps-1.4.3.tar.bz2',
     114    => 'tar -xjf ../subversion-deps-1.4.3.tar.bz2',
    115115    'conf'
    116116    =>  [
    117117           '--disable-keychain',  # Workaround a 10.3 build problem
     
    200200#   },
    201201  {
    202202    'url'
    203     =>  'http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/qt-mac-free-3.3.6.tar.gz',
     203    =>  'http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/qt-mac-free-3.3.8.tar.gz',
     204    'pre-conf' =>
     205    'echo \'' . q^
     206diff -ru qt-mac-free-3.3.8.orig/config.tests/mac/mac_version.test qt-mac-free-3.3.8.new/config.tests/mac/mac_version.test
     207--- qt-mac-free-3.3.8.orig/config.tests/mac/mac_version.test    2004-04-24 02:40:40.000000000 +1000
     208+++ qt-mac-free-3.3.8.new/config.tests/mac/mac_version.test     2008-01-01 10:33:55.000000000 +1100
     209@@ -17,13 +17,17 @@
     210 TSTFILE=mac_version.cpp
     211 
     212 rm -f $TSTFILE
     213-echo "#include <Carbon/Carbon.h>" >$TSTFILE
     214-echo "#include <stdio.h>" >>$TSTFILE
     215-echo "int main() {" >>$TSTFILE
     216-echo "  long gestalt_version;" >>$TSTFILE
     217-echo "  fprintf(stdout, \"%d\\\n\", (Gestalt(gestaltSystemVersion, &gestalt_version) == noErr) ? gestalt_version : 0);" >>$TSTFILE
     218-echo "  return 1;" >>$TSTFILE
     219-echo "}" >>$TSTFILE
     220+cat << END >$TSTFILE
     221+#include <Carbon/Carbon.h>
     222+#include <stdio.h>
     223+int main() {
     224+  long gestalt_version;
     225+  if (Gestalt(gestaltSystemVersion, &gestalt_version) != noErr)
     226+    gestalt_version=0;
     227+  fprintf(stdout, "0x%x\n", gestalt_version);
     228+  return 1;
     229+}
     230+END
     231 
     232 COMPILE_ERROR=yes
     233 if [ "$VERBOSE" = "yes" ]; then
     234diff -ru qt-mac-free-3.3.8.orig/include/qglobal.h qt-mac-free-3.3.8.new/include/qglobal.h
     235--- qt-mac-free-3.3.8.orig/include/qglobal.h    2007-02-03 01:01:04.000000000 +1100
     236+++ qt-mac-free-3.3.8.new/include/qglobal.h     2008-01-01 10:47:28.000000000 +1100
     237@@ -183,7 +183,10 @@
     238 #  if !defined(MAC_OS_X_VERSION_10_4)
     239 #       define MAC_OS_X_VERSION_10_4 MAC_OS_X_VERSION_10_3 + 1
     240 #  endif
     241-#  if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
     242+#  if !defined(MAC_OS_X_VERSION_10_5)
     243+#       define MAC_OS_X_VERSION_10_5 MAC_OS_X_VERSION_10_4 + 1
     244+#  endif
     245+#  if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5)
     246 #    error "This version of Mac OS X is unsupported"
     247 #  endif
     248 #endif
     249diff -ru qt-mac-free-3.3.8.orig/src/kernel/qcursor_mac.cpp qt-mac-free-3.3.8.new/src/kernel/qcursor_mac.cpp
     250--- qt-mac-free-3.3.8.orig/src/kernel/qcursor_mac.cpp   2007-02-03 01:01:16.000000000 +1100
     251+++ qt-mac-free-3.3.8.new/src/kernel/qcursor_mac.cpp    2008-01-01 10:45:15.000000000 +1100
     252@@ -177,7 +177,9 @@
     253 #ifdef QMAC_USE_BIG_CURSOR_API
     254        char *big_cursor_name;
     255 #endif
     256+#ifdef QMAC_NO_FAKECURSOR
     257        CursorImageRec *ci;
     258+#endif
     259        struct {
     260            QMacAnimateCursor *anim;
     261            ThemeCursor curs;
     262@@ -258,7 +260,9 @@
     263        if(curs.cp.hcurs && curs.cp.my_cursor)
     264            free(curs.cp.hcurs);
     265     } else if(type == TYPE_CursorImage) {
     266+#ifdef QMAC_NO_FAKECURSOR
     267        free(curs.ci);
     268+#endif
     269 #ifdef QMAC_USE_BIG_CURSOR_API
     270     } else if(type == TYPE_BigCursor) {
     271        QDUnregisterNamedPixMapCursur(curs.big_cursor_name);
     272diff -ru qt-mac-free-3.3.8.orig/src/kernel/qt_mac.h qt-mac-free-3.3.8.new/src/kernel/qt_mac.h
     273--- qt-mac-free-3.3.8.orig/src/kernel/qt_mac.h  2007-02-03 01:01:13.000000000 +1100
     274+++ qt-mac-free-3.3.8.new/src/kernel/qt_mac.h   2008-01-01 18:03:04.000000000 +1100
     275@@ -54,7 +54,7 @@
     276 # define QMAC_DEFAULT_STYLE "QMacStyle" //DefaultStyle
     277 #endif
     278 
     279-#if !defined(Q_WS_MACX) || QT_MACOSX_VERSION < 0x1020 || QT_MACOSX_VERSION >= 0x1030
     280+#if !defined(Q_WS_MACX) || QT_MACOSX_VERSION < 0x1020 || (QT_MACOSX_VERSION >= 0x1030 && QT_MACOSX_VERSION < 0x1050)
     281 # define QMAC_NO_FAKECURSOR
     282 #endif
     283 
     284diff -ru qt-mac-free-3.3.8.orig/src/tools/qglobal.h qt-mac-free-3.3.8.new/src/tools/qglobal.h
     285--- qt-mac-free-3.3.8.orig/src/tools/qglobal.h  2007-02-03 01:01:04.000000000 +1100
     286+++ qt-mac-free-3.3.8.new/src/tools/qglobal.h   2008-01-01 10:47:28.000000000 +1100
     287@@ -183,7 +183,10 @@
     288 #  if !defined(MAC_OS_X_VERSION_10_4)
     289 #       define MAC_OS_X_VERSION_10_4 MAC_OS_X_VERSION_10_3 + 1
     290 #  endif
     291-#  if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
     292+#  if !defined(MAC_OS_X_VERSION_10_5)
     293+#       define MAC_OS_X_VERSION_10_5 MAC_OS_X_VERSION_10_4 + 1
     294+#  endif
     295+#  if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5)
     296 #    error "This version of Mac OS X is unsupported"
     297 #  endif
     298 #endif
     299^ . '\' | patch -p1',
    204300    'conf-cmd'
    205301    =>  'echo yes | ./configure',
    206302    'conf'
     
    638734    }
    639735  }
    640736 
    641   if ($pkg->{'pre-conf'})
    642   {
    643     &Syscall([ $pkg->{'pre-conf'} ], 'munge' => 1) or die;
    644   }
    645 
    646737  # Configure
    647738  chdir($dirname);
    648739  unless (-e '.osx-config')
    649740  {
    650741    &Verbose("Configuring $sw");
     742    if ($pkg->{'pre-conf'})
     743    {
     744      &Syscall([ $pkg->{'pre-conf'} ], 'munge' => 1) or die;
     745    }
     746
    651747    my (@configure, $munge);
    652748   
    653749    if ($pkg->{'conf-cmd'})
     
    9851081  }
    9861082}
    9871083
    988 if ( $backend )
     1084if ( $backend && grep(m/MythBackend/, @targets) )
    9891085{
    9901086  my $BE = "$SCRIPTDIR/MythBackend.app";
    9911087