Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jeremyhu/dports_jeremyhu
base: 05b9dfdbd0
...
head fork: jeremyhu/dports_jeremyhu
compare: 96bf5a4219
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on May 02, 2012
@jeremyhu VLC: Initial import of VLC for development
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
b1f1dac
@jeremyhu VLC: Update to 1.1.7
Builds, but buggy

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
39a050a
@jeremyhu VLC: Bump to 2.0.1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
96bf5a4
View
279 multimedia/VLC/Portfile
@@ -0,0 +1,279 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id: Portfile 90303 2012-03-01 18:12:40Z raimue@macports.org $
+
+PortSystem 1.0
+
+name VLC
+version 2.0.1
+
+categories multimedia
+
+maintainers nomaintainer
+description VLC is a cross-platform media player and streaming server
+long_description VLC media player is a highly portable multimedia player for \
+ various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \
+ mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. \
+ It can also be used as a server to stream in unicast or multicast \
+ in IPv4 or IPv6 on a high-bandwidth network.
+license GPL
+
+platforms darwin
+conflicts VLC09
+
+homepage http://www.videolan.org
+master_sites http://download.videolan.org/pub/videolan/vlc/${version}/
+distname vlc-${version}
+use_xz yes
+
+checksums md5 5ad114755670e4881a2b35354e2f79bc \
+ sha1 40d0ed360dd3fa7dc3ff4fbc9c319553ebb22538 \
+ rmd160 9d932e1be72b65cf47057191d9e84deeedea282c
+
+depends_lib port:lame port:a52dec port:libogg port:flac port:BGHUDAppKit \
+ port:libdca port:libcddb port:libcdio port:libmad \
+ port:libvorbis port:libmatroska port:libid3tag \
+ port:ncurses port:lua port:libpng port:jpeg \
+ port:libdvdplay port:libdvdnav path:lib/libavcodec.dylib:ffmpeg \
+ port:gnutls port:taglib port:libxml2 port:faad2
+
+# TODO: port:live555
+
+pre-fetch {
+ if {"darwin" == ${os.platform} && ${os.major} < 9} {
+ ui_error "${name} ${version} requires Mac OS X 10.5 or greater, use port 'VLC09' instead"
+ return -code error "incompatible Mac OS X version"
+ }
+}
+
+patchfiles \
+ patch-no-sparkle.diff
+
+post-patch {
+ reinplace "/Sparkle.framework/d" \
+ ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj
+ reinplace "/SDKROOT/d" \
+ ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj
+ reinplace "/Growl.framework/d" \
+ ${worksrcpath}/extras/package/macosx/package.mak
+ reinplace "s:librsvg-2/librsvg:librsvg:" \
+ ${worksrcpath}/modules/text_renderer/svg.c
+ reinplace "s:HOST_NAME_MAX:_POSIX_HOST_NAME_MAX:" \
+ ${worksrcpath}/modules/video_output/xcb/window.c
+
+ ln -s ${frameworks_dir}/BGHUDAppKit.framework ${worksrcpath}/contrib/BGHUDAppKit.framework
+
+ # To trick configure
+ file mkdir "${worksrcpath}/contrib/lib"
+}
+
+use_parallel_build no
+
+use_autoreconf yes
+autoreconf.args -fvi
+
+configure.env-append CXXCPP="${configure.cxx} -E"
+build.args-append DESTDIR=${worksrcpath}/dest_ignore
+
+build.target all
+destroot.target install
+
+livecheck.url http://download.videolan.org/pub/videolan/vlc/
+livecheck.regex <a href=\"(\\d\[\\d|\.|\\w\]+).*/\">
+
+# live555 and possibly others are not universal, so disabling for now
+universal_variant no
+
+configure.args-append \
+ --enable-macosx --disable-macosx-audio --enable-a52 \
+ --enable-dvdnav --enable-dvdread --enable-faad --enable-flac --disable-live555 \
+ --enable-vorbis --enable-ogg --enable-mad --disable-libass \
+ --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \
+ --disable-jack --disable-portaudio \
+ --disable-debug --disable-xvideo --disable-glx \
+ --disable-xcb --disable-qt4 --disable-quicktime \
+ --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \
+ --disable-speex --disable-theora --disable-x264 --disable-dvbpsi \
+ --disable-vcdx --disable-fontconfig --disable-freetype \
+ --disable-dbus --disable-bonjour --disable-fribidi --disable-goom \
+ --disable-growl --disable-sdl --disable-caca --disable-smb \
+ --disable-update-check --without-x --with-contrib=${worksrcpath}/contrib \
+ --with-macosx-sdk=/
+
+variant jack description {Enable jack plugin for audio output} {
+ depends_lib-append port:jack
+ configure.args-delete --disable-jack
+ configure.args-append --enable-jack
+}
+
+variant portaudio description {Enable portaudio module for audio output} {
+ depends_lib-append port:portaudio
+ configure.args-delete --disable-portaudio
+ configure.args-append --enable-portaudio
+}
+
+variant auhal description {Enable CoreAudio module for audio output (doesn't work on Snow Leopard)} {
+ configure.args-delete --disable-macosx-audio
+ configure.args-append --enable-macosx-audio
+}
+
+variant qtcapture description {Enable qtcapture module (doesn't work on Snow Leopard)} {
+ patchfiles-delete patch-configure.ac-no_qtcapture.diff
+}
+
+variant x264 description {Enable H.264 en/decoding} {
+ depends_lib-append port:x264
+ configure.args-delete --disable-x264
+ configure.args-append --enable-x264
+}
+
+variant theora description {Enable OggTheora support} {
+ depends_lib-append port:libtheora
+ configure.args-delete --disable-theora
+ configure.args-append --enable-theora
+}
+
+variant twolame description {Enable MPEG Audio Layer 2 encoding} {
+ depends_lib-append port:twolame
+ configure.args-delete --disable-twolame
+ configure.args-append --enable-twolame
+}
+
+variant speex description {Enable Speex decoder support} {
+ depends_lib-append path:lib/libspeex.dylib:speex
+ configure.args-delete --disable-speex
+ configure.args-append --enable-speex
+}
+
+variant svg description {Enable SVG support} {
+ depends_lib-append port:librsvg
+ configure.args-append --enable-svg
+}
+
+variant shout description {Enable Shoutcast support} {
+ depends_lib-append port:libshout2
+ configure.args-append --enable-shout
+}
+
+variant vcd description {Enable VCD support} {
+ depends_lib-append port:vcdimager
+ configure.args-delete --disable-vcdx
+ configure.args-append --enable-vcdx
+}
+
+variant mod description {Enable MOD demuxer support} {
+ depends_lib-append port:libmodplug
+ configure.args-delete --disable-mod
+ configure.args-append --enable-mod
+}
+
+variant mpc description {enable Musepack Decoder library support} {
+ depends_lib-append port:libmpcdec
+ configure.args-delete --disable-mpc
+ configure.args-append --enable-mpc
+}
+
+variant dvb description {enable DVB Program Specific Information support} {
+ depends_lib-append port:libdvbpsi
+ configure.args-delete --disable-dvbpsi
+ configure.args-append --enable-dvbpsi
+}
+
+variant osd description {Enable onscreen display and TrueType font support} {
+ depends_lib-append port:fontconfig port:freetype
+ configure.args-delete --disable-fontconfig
+ configure.args-delete --disable-freetype
+ configure.args-append --enable-freetype
+}
+
+variant fribidi requires osd description {Enable FriBidi Unicode support} {
+ depends_lib-append port:fribidi
+ configure.args-delete --disable-fribidi
+ configure.args-append --enable-fribidi
+}
+
+variant bonjour description {Enable Bonjour support} {
+ depends_lib-append port:avahi
+ configure.args-delete --disable-dbus --disable-bonjour
+ configure.args-append --enable-dbus --enable-bonjour
+}
+
+variant sdl description {Enable SDL/SDL-Image support} {
+ depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image
+ configure.args-delete --disable-sdl
+ configure.args-append --enable-sdl
+}
+
+variant smb description {Enable Samba 3 support} {
+ depends_lib-append port:samba3
+ configure.args-delete --disable-smb
+ configure.args-append --enable-smb
+ configure.ldflags-append -L${prefix}/lib/samba3
+}
+
+variant no_dvd description {disable DVD and DeCSS support} {
+ depends_lib-delete port:libdvdnav port:libdvdread
+ configure.args-append --disable-dvdnav --disable-dvdread
+}
+
+variant no_ffmpeg description {disable FFmpeg support} {
+ depends_lib-delete path:lib/libavcodec.dylib:ffmpeg
+ configure.args-append --disable-avcodec --disable-avformat \
+ --disable-postproc --disable-swscale
+}
+
+variant x11 {
+ depends_lib-append \
+ port:mesa \
+ port:xorg-libXinerama \
+ port:xorg-libXv \
+ port:xorg-libXxf86vm \
+ port:xorg-xcb-util \
+ port:xorg-xcb-util-keysyms
+
+ configure.args-delete --without-x --disable-xvideo --disable-glx --disable-xcb
+ configure.args-append --with-x --x-include=${prefix}/include --x-lib=${prefix}/lib \
+ --enable-xvideo --enable-glx --enable-xcb
+}
+
+variant qt4 description {Build using QT4 UI. This will use qt4-x11 if +x11 and qt4-mac otherwise.} {
+ configure.args-delete --disable-qt4
+ configure.args-append --enable-qt4
+
+ if {[variant_isset x11]} {
+ depends_lib-append port:qt4-x11
+ set qt_dir ${prefix}/libexec/qt4-x11
+ configure.cppflags-append -D__USE_WS_X11__
+ configure.env-append QTDIR=${qt_dir}
+ set env(PATH) "${qt_dir}/bin:$env(PATH)"
+ configure.pkg_config_path "${configure.pkg_config_path}:${qt_dir}/lib/pkgconfig"
+ } else {
+ PortGroup qt4 1.0
+ }
+}
+
+variant minimal description {VLC Mac OS X minimal configuration} {}
+
+variant huge conflicts minimal \
+ requires bonjour svg vcd speex dvb fribidi sdl shout jack \
+ description {Enable all variants except x11, qt4, smb and no_*} {}
+
+variant full requires huge qt4 smb \
+ description {Enable all variants except x11 and no_*} {}
+
+# Unless minimal variant is set compile with default Mac OS X configuration
+if {![variant_isset minimal]} {
+ default_variants +x264 +theora +twolame +mod +mpc +osd +portaudio +qtcapture +auhal
+}
+
+if {[variant_isset x11]} {
+ default_variants-append +qt4
+}
+
+platform macosx {
+ # The VLC.app target is not well-written, so we need to do it during destroot
+ destroot.target-append VLC.app
+ post-destroot {
+ file rename ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC.app
+ }
+}
View
10 multimedia/VLC/files/patch-configure.ac-no_qtcapture.diff
@@ -0,0 +1,10 @@
+--- configure.ac.orig 2011-03-13 16:30:41.000000000 -0700
++++ configure.ac 2011-03-13 16:31:04.000000000 -0700
+@@ -5176,7 +5176,6 @@ then
+ VLC_ADD_OBJCFLAGS([macosx minimal_macosx opengllayer growl], [-fobjc-exceptions] )
+
+ VLC_ADD_PLUGIN([access_eyetv])
+- VLC_ADD_PLUGIN([qtcapture])
+ VLC_ADD_PLUGIN([macosx])
+ VLC_ADD_PLUGIN([minimal_macosx])
+
View
68 multimedia/VLC/files/patch-no-sparkle.diff
@@ -0,0 +1,68 @@
+diff -Naurp vlc-2.0.1.orig/configure.ac vlc-2.0.1/configure.ac
+--- configure.ac 2012-03-08 04:18:41.000000000 -0800
++++ configure.ac 2012-05-01 23:51:46.000000000 -0700
+@@ -3766,13 +3766,6 @@ then
+
+ VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit -Wl,-framework,IOKit -Wl,-framework,AddressBook -Wl,-framework,WebKit])
+
+- if test ! -d ${CONTRIB_DIR}/Sparkle.framework
+- then
+- AC_MSG_ERROR([Sparkle framework is required and was not found in ${CONTRIB_DIR}])
+- fi
+- VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR} -Wl,-framework,Sparkle])
+- VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}])
+-
+ if test ! -d ${CONTRIB_DIR}/BGHUDAppKit.framework
+ then
+ AC_MSG_ERROR([BGHUDAppKit framework is required and was not found in ${CONTRIB_DIR}])
+diff -Naurp vlc-2.0.1.orig/modules/gui/macosx/intf.m vlc-2.0.1/modules/gui/macosx/intf.m
+--- modules/gui/macosx/intf.m 2012-03-14 04:07:48.000000000 -0700
++++ modules/gui/macosx/intf.m 2012-05-01 23:53:28.000000000 -0700
+@@ -62,7 +62,6 @@
+ #import "TrackSynchronization.h"
+
+ #import <AddressBook/AddressBook.h> /* for crashlog send mechanism */
+-#import <Sparkle/Sparkle.h> /* we're the update delegate */
+
+ /*****************************************************************************
+ * Local prototypes.
+@@ -788,16 +787,6 @@ static VLCMain *_o_sharedMainInstance =
+ }
+
+ #pragma mark -
+-#pragma mark Sparkle delegate
+-/* received directly before the update gets installed, so let's shut down a bit */
+-- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
+-{
+- [NSApp activateIgnoringOtherApps:YES];
+- [o_remote stopListening: self];
+- [[VLCCoreInteraction sharedInstance] stop];
+-}
+-
+-#pragma mark -
+ #pragma mark Media Key support
+
+ -(void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event
+diff -Naurp vlc-2.0.1.orig/modules/gui/macosx/simple_prefs.m vlc-2.0.1/modules/gui/macosx/simple_prefs.m
+--- modules/gui/macosx/simple_prefs.m 2012-03-15 16:55:17.000000000 -0700
++++ modules/gui/macosx/simple_prefs.m 2012-05-01 23:54:38.000000000 -0700
+@@ -36,8 +36,6 @@
+ #import "intf.h"
+ #import "AppleRemote.h"
+
+-#import <Sparkle/Sparkle.h> //for o_intf_last_update_lbl
+-
+ static NSString* VLCSPrefsToolbarIdentifier = @"Our Simple Preferences Toolbar Identifier";
+ static NSString* VLCIntfSettingToolbarIdentifier = @"Intf Settings Item Identifier";
+ static NSString* VLCAudioSettingToolbarIdentifier = @"Audio Settings Item Identifier";
+@@ -483,10 +481,6 @@ static inline char * __config_GetLabel(
+ [self setupButton: o_intf_appleremote_ckb forBoolValue: "macosx-appleremote"];
+
+ [self setupButton: o_intf_mediakeys_ckb forBoolValue: "macosx-mediakeys"];
+- if( [[SUUpdater sharedUpdater] lastUpdateCheckDate] != NULL )
+- [o_intf_last_update_lbl setStringValue: [NSString stringWithFormat: _NS("Last check on: %@"), [[[SUUpdater sharedUpdater] lastUpdateCheckDate] descriptionWithLocale: [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]]]];
+- else
+- [o_intf_last_update_lbl setStringValue: _NS("No check was performed yet.")];
+ psz_tmp = config_GetPsz( p_intf, "control" );
+ if (psz_tmp) {
+ [o_intf_enableGrowl_ckb setState: (NSInteger)strstr( psz_tmp, "growl")];

No commit comments for this range

Something went wrong with that request. Please try again.