Ticket #28281: VLC-1.1.7-WIP.patch
File VLC-1.1.7-WIP.patch, 31.5 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 13 years ago) |
---|
-
files/patch-png.c.diff
1 --- modules/codec/png.c.orig 2011-01-17 18:13:50.000000000 -05002 +++ modules/codec/png.c 2011-01-17 18:13:56.000000000 -05003 @@ -155,7 +155,7 @@4 p_info = png_create_info_struct( p_png );5 if( p_info == NULL )6 {7 - png_destroy_read_struct( &p_png, png_infopp_NULL, png_infopp_NULL );8 + png_destroy_read_struct( &p_png, (png_infopp) NULL, (png_infopp) NULL );9 block_Release( p_block ); *pp_block = NULL;10 return NULL;11 }12 @@ -163,7 +163,7 @@13 p_end_info = png_create_info_struct( p_png );14 if( p_end_info == NULL )15 {16 - png_destroy_read_struct( &p_png, &p_info, png_infopp_NULL );17 + png_destroy_read_struct( &p_png, &p_info, (png_infopp) NULL );18 block_Release( p_block ); *pp_block = NULL;19 return NULL;20 } -
files/patch-Makefile.am.diff
1 --- Makefile.am.orig 20 09-07-07 17:34:22.000000000 +02002 +++ Makefile.am 20 09-07-07 17:38:50.000000000 +02003 @@ -4 11,13 +411,6 @@1 --- Makefile.am.orig 2011-02-04 15:59:01.000000000 -0500 2 +++ Makefile.am 2011-02-04 15:59:01.000000000 -0500 3 @@ -426,13 +426,6 @@ 4 4 vlc$(EXEEXT): 5 ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT)5 $(AM_V_GEN)ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT) 6 6 7 7 -if HAVE_DARWIN 8 -if BUILD_ VLC8 -if BUILD_MACOSX_VLC_APP 9 9 -# Create the MacOS X app 10 10 -noinst_DATA = VLC.app 11 11 -endif 12 12 -endif 13 13 - 14 # VLC-release.app for packaging and giving it to your friends15 # use package-macosx to get a nice dmg16 VLC-release.app: vlc17 @@ -4 28,7 +421,7 @@14 silentstd = $(silentstd_$(V)) 15 silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY)) 16 silentstd_0 = 2>&1 >/dev/null 17 @@ -447,7 +440,7 @@ 18 18 for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do \ 19 19 cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \ 20 20 done 21 - REVISION=` git describe --always` && \22 + REVISION="$(VER ISON_REVISION)" && \21 - REVISION=`(git --git-dir=$(srcdir)/.git describe --always || echo exported)` && \ 22 + REVISION="$(VERSION_REVISION)" && \ 23 23 cat $(top_builddir)/extras/package/macosx/Info.plist | \ 24 24 sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist 25 25 cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/ 26 @@ -582,7 +575,7 @@ 26 @@ -509,7 +500,7 @@ 27 $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \ 28 xcodebuild -target vlc SYMROOT=../../../build DSTROOT=../../../build $(silentstd) && \ 29 cd ../../../../ && \ 30 - cp -R $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC-release.app; \ 31 + cp -r $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC-release.app; \ 32 rm -Rf $(top_builddir)/tmp 33 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS 34 PRODUCT="VLC-release.app" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh 35 @@ -600,7 +591,7 @@ 27 36 for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \ 28 37 cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \ 29 38 done 30 - REVISION=` git describe --always` && \39 - REVISION=`(git --git-dir=$(srcdir)/.git describe --always || echo exported)` && \ 31 40 + REVISION="$(VERSION_REVISION)" && \ 32 41 cat $(top_builddir)/extras/package/macosx/Info.plist | \ 33 42 sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist 34 43 cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/ 44 @@ -662,12 +651,12 @@ 45 $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \ 46 xcodebuild install -target vlc SYMROOT=../../../build DSTROOT=../../../build $(silentstd) && \ 47 cd ../../../../ && \ 48 - cp -R $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC.app 49 + cp -r $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC.app 50 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS 51 touch $(top_builddir)/VLC.app/Contents/MacOS/VLC 52 chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC 53 $(INSTALL) $(top_builddir)/bin/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC 54 - ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/plugins 55 + ln -sf "$(vlclibdir)/plugins" $(top_builddir)/VLC.app/Contents/MacOS/plugins 56 install -d $(top_builddir)/VLC.app/Contents/MacOS/share 57 for i in `ls $(srcdir)/share`; do \ 58 ln -sf `pwd`/$(srcdir)/share/$$i $(top_builddir)/VLC.app/Contents/MacOS/share/; \ 59 --- src/Makefile.am.orig 2011-02-04 15:59:01.000000000 -0500 60 +++ src/Makefile.am 2011-02-04 15:59:01.000000000 -0500 61 @@ -525,8 +525,7 @@ 62 63 stamp-revision: 64 $(AM_V_at)rm -f -- revision.tmp 65 - $(AM_V_GEN)(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \ 66 - --match '?.*.*' --always || echo exported) > revision.tmp 67 + $(AM_V_GEN)(echo "$(VERSION_REVISION)") > revision.tmp 68 $(AM_V_at)if diff revision.tmp revision.txt >/dev/null 2>&1; then \ 69 rm -f -- revision.tmp; \ 70 else \ -
files/patch-fdatasync_sl.diff
1 --- configure.ac.orig .sl 2009-09-19 15:25:24.000000000 +02002 +++ configure.ac 20 09-09-19 15:25:47.000000000 +02003 @@ -5 67,9 +567,7 @@4 AC_CHECK_FUNCS(fcntl)5 AC_ REPLACE_FUNCS([asprintf atof atoll getcwd gmtime_r lldiv localtime_r rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtoll vasprintf swab])6 AC_ CHECK_FUNCS([stricmp strnicmp])1 --- configure.ac.orig 2011-02-04 15:59:01.000000000 -0500 2 +++ configure.ac 2011-02-04 15:59:01.000000000 -0500 3 @@ -552,9 +552,7 @@ 4 dnl Check for usual libc functions 5 AC_CHECK_FUNCS([ctime_r daemon fcntl fdopendir fstatvfs fork getenv getpwuid_r gettimeofday isatty lstat memalign openat posix_fadvise posix_madvise posix_memalign setenv setlocale stricmp strnicmp tdestroy uselocale]) 6 AC_REPLACE_FUNCS([asprintf atof atoll getcwd getdelim getpid gmtime_r lldiv localtime_r nrand48 rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtok_r strtoll swab vasprintf]) 7 7 -AC_CHECK_FUNCS(fdatasync,, 8 8 - [AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.]) 9 9 -]) 10 10 +AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.]) 11 11 12 dnl Check for Linuxsystem calls13 AC_CHECK_FUNCS([ vmsplice])12 dnl Check for non-standard system calls 13 AC_CHECK_FUNCS([accept4 dup3 eventfd vmsplice]) -
files/patch-no-sparkle.diff
1 --- Makefile.am.orig 2011-02-04 15:59:01.000000000 -0500 2 +++ Makefile.am 2011-02-04 15:59:01.000000000 -0500 3 @@ -447,8 +447,6 @@ 4 for i in AUTHORS COPYING THANKS; do \ 5 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \ 6 done 7 - mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle 8 - cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle 9 mkdir -p $(top_builddir)/tmp/modules/audio_output 10 mkdir -p $(top_builddir)/tmp/modules/gui/macosx 11 for i in \ 12 @@ -600,8 +598,6 @@ 13 for i in AUTHORS COPYING THANKS; do \ 14 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \ 15 done 16 - mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle 17 - cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle 18 mkdir -p $(top_builddir)/tmp/modules/audio_output 19 mkdir -p $(top_builddir)/tmp/modules/gui/macosx 20 for i in \ 21 --- configure.ac.orig 2011-02-04 15:59:01.000000000 -0500 22 +++ configure.ac 2011-02-04 15:59:01.000000000 -0500 23 @@ -4037,8 +4035,6 @@ 24 VLC_ADD_LDFLAGS([macosx minimal_macosx], [-Wl,-framework,CoreServices]) 25 VLC_ADD_LDFLAGS([macosx minimal_macosx], [-Wl,-framework,AGL]) 26 VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,IOKit]) 27 - VLC_ADD_LDFLAGS([macosx], [-F${CONTRIB_DIR}/Sparkle -Wl,-framework,Sparkle]) 28 - VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}/Sparkle]) 29 dnl For bug report 30 VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,AddressBook]) 31 VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,WebKit]) 32 --- extras/package/macosx/vlc.xcodeproj/project.pbxproj.orig 2011-02-04 15:59:01.000000000 -0500 33 +++ extras/package/macosx/vlc.xcodeproj/project.pbxproj 2011-02-04 15:59:01.000000000 -0500 34 @@ -133,8 +133,6 @@ 35 CC402F420E00ABBB006A4BA4 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC3DC89B0A7CDB9600B53F32 /* ApplicationServices.framework */; }; 36 CC402F430E00ABBB006A4BA4 /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC1941240B9C1F8400635F6B /* QTKit.framework */; }; 37 CC402F440E00ABBB006A4BA4 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC962E2C0CC7992800A56695 /* WebKit.framework */; }; 38 - CC426FD11020D44F00A32659 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC426FD01020D44F00A32659 /* Sparkle.framework */; }; 39 - CC426FD71020D47100A32659 /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = CC426FD01020D44F00A32659 /* Sparkle.framework */; }; 40 CC62B8D00FC5787D0077BB8C /* aiff.icns in Resources */ = {isa = PBXBuildFile; fileRef = CC62B8C50FC5787D0077BB8C /* aiff.icns */; }; 41 CC62B8D10FC5787D0077BB8C /* audio.icns in Resources */ = {isa = PBXBuildFile; fileRef = CC62B8C60FC5787D0077BB8C /* audio.icns */; }; 42 CC62B8D20FC5787D0077BB8C /* flv.icns in Resources */ = {isa = PBXBuildFile; fileRef = CC62B8C70FC5787D0077BB8C /* flv.icns */; }; 43 @@ -173,20 +171,6 @@ 44 CCF11B540F8BFB520088542D /* ErrorPanel.nib in Resources */ = {isa = PBXBuildFile; fileRef = CCF11B520F8BFB520088542D /* ErrorPanel.nib */; }; 45 /* End PBXBuildFile section */ 46 47 -/* Begin PBXCopyFilesBuildPhase section */ 48 - CC426FD81020D48700A32659 /* Copy Frameworks */ = { 49 - isa = PBXCopyFilesBuildPhase; 50 - buildActionMask = 2147483647; 51 - dstPath = ""; 52 - dstSubfolderSpec = 10; 53 - files = ( 54 - CC426FD71020D47100A32659 /* Sparkle.framework in Copy Frameworks */, 55 - ); 56 - name = "Copy Frameworks"; 57 - runOnlyForDeploymentPostprocessing = 0; 58 - }; 59 -/* End PBXCopyFilesBuildPhase section */ 60 - 61 /* Begin PBXFileReference section */ 62 089C1672FE841209C02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; }; 63 089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; }; 64 @@ -296,7 +280,6 @@ 65 CC33C2500D2578F5008C4683 /* fullscreen_graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = fullscreen_graphite.png; path = Resources/fullscreen_graphite.png; sourceTree = "<group>"; }; 66 CC3DC89B0A7CDB9600B53F32 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = "<absolute>"; }; 67 CC402F4B0E00ABBB006A4BA4 /* VLC.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VLC.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 68 - CC426FD01020D44F00A32659 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = ../../contrib/Sparkle/Sparkle.framework; sourceTree = SOURCE_ROOT; }; 69 CC4A33210F8CB017000FC4A7 /* coredialogs.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = coredialogs.m; path = ../../../modules/gui/macosx/coredialogs.m; sourceTree = SOURCE_ROOT; }; 70 CC4A33220F8CB017000FC4A7 /* coredialogs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = coredialogs.h; path = ../../../modules/gui/macosx/coredialogs.h; sourceTree = SOURCE_ROOT; }; 71 CC4ED9AC0ABE07C800CA4CC5 /* add_embedded_blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = add_embedded_blue.png; path = Resources/add_embedded_blue.png; sourceTree = "<group>"; }; 72 @@ -438,7 +421,6 @@ 73 CC402F430E00ABBB006A4BA4 /* QTKit.framework in Frameworks */, 74 CC402F440E00ABBB006A4BA4 /* WebKit.framework in Frameworks */, 75 CCBE999F0F922C51000705F8 /* CoreServices.framework in Frameworks */, 76 - CC426FD11020D44F00A32659 /* Sparkle.framework in Frameworks */, 77 ); 78 runOnlyForDeploymentPostprocessing = 0; 79 }; 80 @@ -547,7 +529,6 @@ 81 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */ = { 82 isa = PBXGroup; 83 children = ( 84 - CC426FD01020D44F00A32659 /* Sparkle.framework */, 85 CCBE999E0F922C51000705F8 /* CoreServices.framework */, 86 CC962E2C0CC7992800A56695 /* WebKit.framework */, 87 CC1941240B9C1F8400635F6B /* QTKit.framework */, 88 @@ -852,7 +833,6 @@ 89 CC402EAF0E00ABBB006A4BA4 /* Resources */, 90 CC402F400E00ABBB006A4BA4 /* Frameworks */, 91 CC402F450E00ABBB006A4BA4 /* Rez */, 92 - CC426FD81020D48700A32659 /* Copy Frameworks */, 93 ); 94 buildRules = ( 95 ); 96 @@ -1177,9 +1157,7 @@ 97 COPY_PHASE_STRIP = NO; 98 FRAMEWORK_SEARCH_PATHS = ( 99 "$(inherited)", 100 - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 101 ); 102 - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../contrib/Sparkle\""; 103 GCC_DYNAMIC_NO_PIC = NO; 104 GCC_ENABLE_FIX_AND_CONTINUE = YES; 105 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 106 @@ -1211,9 +1189,7 @@ 107 COPY_PHASE_STRIP = YES; 108 FRAMEWORK_SEARCH_PATHS = ( 109 "$(inherited)", 110 - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 111 ); 112 - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../contrib/Sparkle\""; 113 GCC_ENABLE_FIX_AND_CONTINUE = NO; 114 GCC_SYMBOLS_PRIVATE_EXTERN = NO; 115 HEADER_SEARCH_PATHS = ""; 116 @@ -1241,9 +1217,7 @@ 117 buildSettings = { 118 FRAMEWORK_SEARCH_PATHS = ( 119 "$(inherited)", 120 - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 121 ); 122 - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../contrib/Sparkle\""; 123 GCC_SYMBOLS_PRIVATE_EXTERN = NO; 124 HEADER_SEARCH_PATHS = ""; 125 INFOPLIST_FILE = Info.plist; 126 --- modules/gui/macosx/intf.m.orig 2011-02-04 15:59:01.000000000 -0500 127 +++ modules/gui/macosx/intf.m 2011-02-04 15:59:01.000000000 -0500 128 @@ -56,7 +56,6 @@ 129 130 #import <AddressBook/AddressBook.h> /* for crashlog send mechanism */ 131 #import <IOKit/hidsystem/ev_keymap.h> /* for the media key support */ 132 -#import <Sparkle/Sparkle.h> /* we're the update delegate */ 133 134 /***************************************************************************** 135 * Local prototypes. 136 @@ -900,19 +899,6 @@ 137 } 138 139 #pragma mark - 140 -#pragma mark Sparkle delegate 141 -/* received directly before the update gets installed, so let's shut down a bit */ 142 -- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update 143 -{ 144 - [o_remote stopListening: self]; 145 - var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_STOP ); 146 - 147 - /* Close the window directly, because we do know that there 148 - * won't be anymore video. It's currently waiting a bit. */ 149 - [[[o_controls voutView] window] orderOut:self]; 150 -} 151 - 152 -#pragma mark - 153 #pragma mark Toolbar delegate 154 155 /* Our item identifiers */ 156 --- modules/gui/macosx/simple_prefs.m.orig 2011-02-04 15:59:01.000000000 -0500 157 +++ modules/gui/macosx/simple_prefs.m 2011-02-04 15:59:01.000000000 -0500 158 @@ -29,7 +29,6 @@ 159 #import "misc.h" 160 #import "intf.h" 161 #import "AppleRemote.h" 162 -#import <Sparkle/Sparkle.h> //for o_intf_last_update_lbl 163 164 static NSString* VLCSPrefsToolbarIdentifier = @"Our Simple Preferences Toolbar Identifier"; 165 static NSString* VLCIntfSettingToolbarIdentifier = @"Intf Settings Item Identifier"; 166 @@ -462,10 +461,6 @@ 167 [self setupButton: o_intf_mediakeys_ckb forBoolValue: "macosx-mediakeys"]; 168 [self setupButton: o_intf_mediakeys_bg_ckb forBoolValue: "macosx-mediakeys-background"]; 169 [o_intf_mediakeys_bg_ckb setEnabled: [o_intf_mediakeys_ckb state]]; 170 - if( [[SUUpdater sharedUpdater] lastUpdateCheckDate] != NULL ) 171 - [o_intf_last_update_lbl setStringValue: [NSString stringWithFormat: _NS("Last check on: %@"), [[[SUUpdater sharedUpdater] lastUpdateCheckDate] descriptionWithLocale: [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]]]]; 172 - else 173 - [o_intf_last_update_lbl setStringValue: _NS("No check was performed yet.")]; 174 175 /****************** 176 * audio settings * -
files/patch-configure.ac-xcb.diff
1 --- configure.ac.orig 2009-07-12 12:31:28.000000000 +02002 +++ configure.ac 2009-07-12 12:32:23.000000000 +02003 @@ -5362,19 +5362,6 @@4 fi5 fi6 7 -dnl8 -dnl Global hotkeys using XCB9 -dnl10 -PKG_CHECK_MODULES(XCB, [xcb], [11 - PKG_CHECK_MODULES(XCB_KEYSYMS, [xcb-keysyms], [12 - PKG_CHECK_MODULES(XPROTO, [xproto], [13 - VLC_ADD_PLUGIN([globalhotkeys])14 - VLC_ADD_CFLAGS([globalhotkeys],[${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS}] )15 - VLC_ADD_LIBS([globalhotkeys],[${XCB_KEYSYMS_LIBS} ${XCB_LIBS}] )16 - ], [ AC_MSG_WARN( [Xproto not found] ) ])17 - ], [ AC_MSG_WARN( [XCB keysyms was not found]) ])18 -], [ AC_MSG_WARN( [XCB was not found]) ])19 -20 AC_ARG_WITH(,[Misc options:])21 22 dnl -
files/patch-qt4-x11.diff
1 --- configure.ac.orig 2009-04-13 18:24:35.000000000 -0700 2 +++ configure.ac 2009-04-13 18:25:36.000000000 -0700 3 @@ -4965,7 +4965,7 @@ AS_IF([test "${enable_qt4}" != "no"], [ 4 VLC_ADD_PLUGIN([qt4]) 5 AC_DEFINE([HAVE_QT4], 1, [Define to 1 if you have QT4 library.]) 1 --- configure.ac.orig 2011-02-04 15:59:01.000000000 -0500 2 +++ configure.ac 2011-02-04 15:59:01.000000000 -0500 3 @@ -3995,7 +3993,7 @@ 6 4 ALIASES="${ALIASES} qvlc" 7 - AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" -a "${SYS}" != "cygwin" -a "${SYS}" != "darwin"], [ 8 + AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" -a "${SYS}" != "cygwin"], [ 9 VLC_ADD_LIBS([qt4],[$QT4_LIBS -lX11]) 10 ], [ 11 VLC_ADD_LIBS([qt4],[$QT4_LIBS -lqjpeg]) 5 QT4LOCALEDIR="$(eval $PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/" 6 AC_SUBST(QT4LOCALEDIR) 7 - AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" -a "${SYS}" != "darwin"], [ 8 + AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"], [ 9 VLC_ADD_LIBS([qt4],[$QT4_LIBS ${X_LIBS} ${X_PRE_LIBS} -lX11]) 10 need_xid_provider="no" 11 VLC_ADD_CXXFLAGS([qt4],[$QT4_CFLAGS ${X_CFLAGS} -DQT4LOCALEDIR=\\\\\\\"${QT4LOCALEDIR}\\\\\\\"]) -
files/patch-matroska.diff
1 --- modules/demux/mkv/matroska_segment.cpp.orig 2011-02-04 15:59:01.000000000 -0500 2 +++ modules/demux/mkv/matroska_segment.cpp 2011-02-04 15:59:01.000000000 -0500 3 @@ -220,74 +220,6 @@ 4 } 5 ep->Up(); 6 } 7 - else if( MKV_IS_ID( el, KaxTagGeneral ) ) 8 - { 9 - msg_Dbg( &sys.demuxer, "| + General" ); 10 - ep->Down(); 11 - while( ( el = ep->Get() ) != NULL ) 12 - { 13 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() ); 14 - } 15 - ep->Up(); 16 - } 17 - else if( MKV_IS_ID( el, KaxTagGenres ) ) 18 - { 19 - msg_Dbg( &sys.demuxer, "| + Genres" ); 20 - ep->Down(); 21 - while( ( el = ep->Get() ) != NULL ) 22 - { 23 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() ); 24 - } 25 - ep->Up(); 26 - } 27 - else if( MKV_IS_ID( el, KaxTagAudioSpecific ) ) 28 - { 29 - msg_Dbg( &sys.demuxer, "| + Audio Specific" ); 30 - ep->Down(); 31 - while( ( el = ep->Get() ) != NULL ) 32 - { 33 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() ); 34 - } 35 - ep->Up(); 36 - } 37 - else if( MKV_IS_ID( el, KaxTagImageSpecific ) ) 38 - { 39 - msg_Dbg( &sys.demuxer, "| + Images Specific" ); 40 - ep->Down(); 41 - while( ( el = ep->Get() ) != NULL ) 42 - { 43 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() ); 44 - } 45 - ep->Up(); 46 - } 47 - else if( MKV_IS_ID( el, KaxTagMultiComment ) ) 48 - { 49 - msg_Dbg( &sys.demuxer, "| + Multi Comment" ); 50 - } 51 - else if( MKV_IS_ID( el, KaxTagMultiCommercial ) ) 52 - { 53 - msg_Dbg( &sys.demuxer, "| + Multi Commercial" ); 54 - } 55 - else if( MKV_IS_ID( el, KaxTagMultiDate ) ) 56 - { 57 - msg_Dbg( &sys.demuxer, "| + Multi Date" ); 58 - } 59 - else if( MKV_IS_ID( el, KaxTagMultiEntity ) ) 60 - { 61 - msg_Dbg( &sys.demuxer, "| + Multi Entity" ); 62 - } 63 - else if( MKV_IS_ID( el, KaxTagMultiIdentifier ) ) 64 - { 65 - msg_Dbg( &sys.demuxer, "| + Multi Identifier" ); 66 - } 67 - else if( MKV_IS_ID( el, KaxTagMultiLegal ) ) 68 - { 69 - msg_Dbg( &sys.demuxer, "| + Multi Legal" ); 70 - } 71 - else if( MKV_IS_ID( el, KaxTagMultiTitle ) ) 72 - { 73 - msg_Dbg( &sys.demuxer, "| + Multi Title" ); 74 - } 75 else 76 { 77 msg_Dbg( &sys.demuxer, "| + LoadTag Unknown (%s)", typeid( *el ).name() ); 78 --- modules/demux/mkv/mkv.hpp.orig 2011-02-04 15:59:01.000000000 -0500 79 +++ modules/demux/mkv/mkv.hpp 2011-02-04 15:59:01.000000000 -0500 80 @@ -92,7 +92,6 @@ 81 #include "matroska/KaxSegment.h" 82 #include "matroska/KaxTag.h" 83 #include "matroska/KaxTags.h" 84 -#include "matroska/KaxTagMulti.h" 85 #include "matroska/KaxTracks.h" 86 #include "matroska/KaxTrackAudio.h" 87 #include "matroska/KaxTrackVideo.h" -
files/patch-noKaxTagMulti.diff
1 --- modules/demux/mkv/matroska_segment.cpp.orig 2011-03-13 17:17:07.000000000 -07002 +++ modules/demux/mkv/matroska_segment.cpp 2011-03-13 17:17:31.000000000 -07003 @@ -215,74 +215,6 @@ void matroska_segment_c::LoadTags( KaxTa4 }5 ep->Up();6 }7 - else if( MKV_IS_ID( el, KaxTagGeneral ) )8 - {9 - msg_Dbg( &sys.demuxer, "| + General" );10 - ep->Down();11 - while( ( el = ep->Get() ) != NULL )12 - {13 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() );14 - }15 - ep->Up();16 - }17 - else if( MKV_IS_ID( el, KaxTagGenres ) )18 - {19 - msg_Dbg( &sys.demuxer, "| + Genres" );20 - ep->Down();21 - while( ( el = ep->Get() ) != NULL )22 - {23 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() );24 - }25 - ep->Up();26 - }27 - else if( MKV_IS_ID( el, KaxTagAudioSpecific ) )28 - {29 - msg_Dbg( &sys.demuxer, "| + Audio Specific" );30 - ep->Down();31 - while( ( el = ep->Get() ) != NULL )32 - {33 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() );34 - }35 - ep->Up();36 - }37 - else if( MKV_IS_ID( el, KaxTagImageSpecific ) )38 - {39 - msg_Dbg( &sys.demuxer, "| + Images Specific" );40 - ep->Down();41 - while( ( el = ep->Get() ) != NULL )42 - {43 - msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() );44 - }45 - ep->Up();46 - }47 - else if( MKV_IS_ID( el, KaxTagMultiComment ) )48 - {49 - msg_Dbg( &sys.demuxer, "| + Multi Comment" );50 - }51 - else if( MKV_IS_ID( el, KaxTagMultiCommercial ) )52 - {53 - msg_Dbg( &sys.demuxer, "| + Multi Commercial" );54 - }55 - else if( MKV_IS_ID( el, KaxTagMultiDate ) )56 - {57 - msg_Dbg( &sys.demuxer, "| + Multi Date" );58 - }59 - else if( MKV_IS_ID( el, KaxTagMultiEntity ) )60 - {61 - msg_Dbg( &sys.demuxer, "| + Multi Entity" );62 - }63 - else if( MKV_IS_ID( el, KaxTagMultiIdentifier ) )64 - {65 - msg_Dbg( &sys.demuxer, "| + Multi Identifier" );66 - }67 - else if( MKV_IS_ID( el, KaxTagMultiLegal ) )68 - {69 - msg_Dbg( &sys.demuxer, "| + Multi Legal" );70 - }71 - else if( MKV_IS_ID( el, KaxTagMultiTitle ) )72 - {73 - msg_Dbg( &sys.demuxer, "| + Multi Title" );74 - }75 else76 {77 msg_Dbg( &sys.demuxer, "| + LoadTag Unknown (%s)", typeid( *el ).name() );78 --- modules/demux/mkv/mkv.hpp.orig 2011-03-13 17:17:39.000000000 -070079 +++ modules/demux/mkv/mkv.hpp 2011-03-13 17:17:49.000000000 -070080 @@ -93,7 +93,6 @@81 #include "matroska/KaxSegment.h"82 #include "matroska/KaxTag.h"83 #include "matroska/KaxTags.h"84 -#include "matroska/KaxTagMulti.h"85 #include "matroska/KaxTracks.h"86 #include "matroska/KaxTrackAudio.h"87 #include "matroska/KaxTrackVideo.h" -
files/patch-modules.c.diff
1 --- src/modules/modules.c.orig 2011-02-04 15:59:01.000000000 -0500 2 +++ src/modules/modules.c 2011-02-04 15:59:01.000000000 -0500 3 @@ -824,6 +824,9 @@ 4 if( asprintf( &path, "%s" DIR_SEP "plugins", vlcpath ) != -1 ) 5 vlc_array_append( arraypaths, path ); 6 7 + if( asprintf( &path, "%s" DIR_SEP "plugins", PKGLIBDIR ) != -1 ) 8 + vlc_array_append( arraypaths, path ); 9 + 10 /* If the user provided a plugin path, we add it to the list */ 11 char *userpaths = var_InheritString( p_this, "plugin-path" ); 12 char *paths_iter; -
Portfile
5 5 PortSystem 1.0 6 6 7 7 name VLC 8 version 1.0.6 9 revision 9 8 version 1.1.7 10 9 11 10 categories multimedia 12 11 … … 27 26 distname vlc-${version} 28 27 use_bzip2 yes 29 28 30 checksums md5 246a3865ec037f8f5757ef6b973a80fc\31 sha1 834346a84a71d915440b7741e04b6e02de451786\32 rmd160 2185eb418748f2aadfce5e61b7a9de66a62ef2d129 checksums md5 932ce1fa4afa54b56ac0ccc0655667b6 \ 30 sha1 6bd559fe2bba51c5ed1ae71d18dc8ac611e72a04 \ 31 rmd160 1662f458c5e1cec41e27fa1320af817551577def 33 32 34 33 depends_lib port:lame port:a52dec port:libogg port:flac \ 35 34 port:libdca port:libcddb port:libcdio port:libmad \ … … 46 45 } 47 46 } 48 47 49 patchfiles patch-Makefile.am.diff patch-configure.ac-xcb.diff patch-png.c.diff patch-configure.ac-no_qtcapture.diff patch-configure.ac-macosx_audio.diff patch-noKaxTagMulti.diff patch-yadif.diff patch-compat.diff 48 patchfiles \ 49 patch-Makefile.am.diff \ 50 patch-matroska.diff \ 51 patch-modules.c.diff \ 52 patch-no-sparkle.diff \ 53 patch-compat.diff \ 54 patch-yadif.diff 50 55 56 #patch-configure.ac-no_qtcapture.diff \ 57 #patch-configure.ac-macosx_audio.diff \ 58 59 51 60 post-patch { 52 61 reinplace "s:librsvg-2/librsvg:librsvg:" ${worksrcpath}/modules/misc/svg.c 53 62 reinplace "s:HOST_NAME_MAX:_POSIX_HOST_NAME_MAX:" ${worksrcpath}/modules/video_output/xcb/window.c … … 71 80 universal_variant no 72 81 73 82 configure.args-append --disable-macosx-defaults \ 74 --enable- release --enable-macosx --disable-macosx-audio --enable-a52 --enable-cddax\83 --enable-macosx --disable-macosx-audio --enable-a52 \ 75 84 --enable-dvdnav --enable-dvdread --enable-faad --enable-flac --enable-live555 \ 76 85 --enable-vorbis --enable-ogg --enable-mad --disable-libass --enable-asademux \ 77 86 --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \ 78 87 --with-live555-tree=${prefix}/lib/live \ 79 88 --disable-jack --disable-portaudio \ 80 --disable-debug --disable-x 11 --disable-xvideo --disable-glx --disable-xinerama\81 --disable-xcb --disable- xvmc --disable-qt4 --disable-quicktime \89 --disable-debug --disable-xvideo --disable-glx \ 90 --disable-xcb --disable-qt4 --disable-quicktime \ 82 91 --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \ 83 92 --disable-speex --disable-theora --disable-x264 --disable-dvbpsi \ 84 93 --disable-vcdx --disable-fontconfig --disable-freetype \ … … 92 101 configure.args-append --enable-jack 93 102 } 94 103 95 variant jackdescription {Enable portaudio module for audio output} {104 variant portaudio description {Enable portaudio module for audio output} { 96 105 depends_lib-append port:portaudio 97 106 configure.args-delete --disable-portaudio 98 107 configure.args-append --enable-portaudio … … 219 228 port:xorg-xcb-util \ 220 229 port:xorg-xcb-util-keysyms 221 230 222 configure.args-delete --disable-x11 --disable-xvideo --disable-glx --disable-xinerama --disable-xcb 223 configure.args-append --enable-x11 --enable-xvideo --enable-glx --enable-xinerama --enable-xcb 224 patchfiles-delete patch-configure.ac-xcb.diff 231 configure.args-delete --disable-xvideo --disable-glx --disable-xcb 232 configure.args-append --enable-xvideo --enable-glx --enable-xcb 225 233 } 226 234 227 235 variant qt4 description {Build using QT4 UI. This will use qt4-x11 if +x11 and qt4-mac otherwise.} {