Ticket #5370: HandBrake.patch

File HandBrake.patch, 4.1 KB (added by rsorasen@…, 19 years ago)

Patch to compile HandBrake on Tiger

  • aqua/HandBrake/files/patch-Jamrules

     
     1--- Jamrules.orig       2004-05-25 19:51:32.000000000 +0200
     2+++ Jamrules    2005-10-13 12:17:31.000000000 +0200
     3@@ -8,10 +8,10 @@
     4 LANGUAGES  = fr de it pl ru nl es pt ja ;
     5 
     6 # Compilers & flags
     7-CC      = gcc ;
     8-C++     = g++ ;
     9+CC      = gcc-3.3 ;
     10+C++     = g++-3.3 ;
     11 AS      = nasm ;
     12-LINK    = g++ ;
     13+LINK    = g++-3.3 ;
     14 OPTIM   = -O3 -funroll-loops ;
     15 DEFINES = HB_$(OS) HB_VERSION=\\\"$(HB_VERSION)\\\" ;
  • aqua/HandBrake/files/patch-Jamrules_xcode2.1

     
     1--- Jamrules.orig       2004-05-25 19:51:32.000000000 +0200
     2+++ Jamrules    2005-10-13 12:17:31.000000000 +0200
     3@@ -122,9 +124,9 @@
     4 }
     5 actions BuildOSXApp
     6 {
     7-    $(RM) $(<) macosx/build/HandBrake.app && \
     8+    $(RM) $(<) macosx/build/Default/HandBrake.app && \
     9       ( cd macosx && xcodebuild ) && \
     10-      cp -r macosx/build/HandBrake.app $(<) && \
     11+      cp -r macosx/build/Default/HandBrake.app $(<) && \
     12       for i in $(LANGUAGES) ; do \
     13         ( cd $(<)/Contents/Resources && \
     14           cp -r English.lproj $i.lproj && \
  • aqua/HandBrake/files/patch-project.pbxproj

     
     1--- macosx/HandBrake.xcode/project.pbxproj.orig 2004-05-25 19:51:38.000000000 +0200
     2+++ macosx/HandBrake.xcode/project.pbxproj      2005-10-13 12:17:29.000000000 +0200
     3@@ -268,7 +268,7 @@
     4                                OTHER_LDFLAGS = "../core/libhb.a ../contrib/liba52/liba52.a ../contrib/libavcodec/libavcodec.a ../contrib/libdvdread/libdvdread.a ../contrib/libdvdcss/libdvdcss.a ../contrib/libfaac/libfaac.a ../contrib/libmp3lame/libmp3lame.a ../contrib/libmp4v2/libmp4v2.a ../contrib/libmpeg2/libmpeg2.a ../contrib/libvorbis/libvorbis.a ../contrib/libvorbis/libvorbisenc.a ../contrib/libogg/libogg.a ../contrib/libsamplerate/libsamplerate.a ../contrib/libx264/libx264.a ../contrib/libxvidcore/libxvidcore.a";
     5                                PRODUCT_NAME = HandBrake;
     6                                SECTORDER_FLAGS = "";
     7-                               WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
     8+                               WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -Wno-sequence-point";
     9                                WRAPPER_EXTENSION = app;
     10                        };
     11                        dependencies = (
  • aqua/HandBrake/files/patch-Controller.mm

     
     1--- macosx/Controller.mm.orgi   2004-05-25 19:51:38.000000000 +0200
     2+++ macosx/Controller.mm        2005-10-13 12:17:29.000000000 +0200
     3@@ -623,7 +623,7 @@
     4     drivesList = [NSMutableArray arrayWithCapacity: 1];
     5 
     6     next_media = IOIteratorNext( media_iterator );
     7-    if( next_media != NULL )
     8+    if( next_media != 0 )
     9     {
     10         char psz_buf[0x32];
     11         size_t dev_path_length;
     12@@ -657,7 +657,7 @@
     13 
     14             IOObjectRelease( next_media );
     15 
     16-        } while( ( next_media = IOIteratorNext( media_iterator ) ) != NULL );
     17+        } while( ( next_media = IOIteratorNext( media_iterator ) ) != 0 );
     18     }
     19 
     20     IOObjectRelease( media_iterator );
  • aqua/HandBrake/Portfile

     
    2626use_configure   no
    2727build.cmd       jam
    2828build.target
     29
     30patchfiles      patch-project.pbxproj patch-Jamrules patch-Controller.mm
     31
     32if {$xcodeversion == "2.1"} {
     33    patchfiles-append      patch-Jamrules_xcode2.1
     34}
     35
    2936destroot        {
    3037        set appPath ${destroot}/Applications/DarwinPorts
    3138        xinstall -d -m 755 ${appPath}