Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
May 02, 2012
Jeremy Huddleston VLC: Initial import of VLC for development
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
b1f1dac
Jeremy Huddleston VLC: Update to 1.1.7
Builds, but buggy

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
39a050a
Jeremy Huddleston VLC: Bump to 2.0.1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
96bf5a4
279 multimedia/VLC/Portfile
... ... @@ -0,0 +1,279 @@
  1 +# -*- 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
  2 +# -*- 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
  3 +# $Id: Portfile 90303 2012-03-01 18:12:40Z raimue@macports.org $
  4 +
  5 +PortSystem 1.0
  6 +
  7 +name VLC
  8 +version 2.0.1
  9 +
  10 +categories multimedia
  11 +
  12 +maintainers nomaintainer
  13 +description VLC is a cross-platform media player and streaming server
  14 +long_description VLC media player is a highly portable multimedia player for \
  15 + various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \
  16 + mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. \
  17 + It can also be used as a server to stream in unicast or multicast \
  18 + in IPv4 or IPv6 on a high-bandwidth network.
  19 +license GPL
  20 +
  21 +platforms darwin
  22 +conflicts VLC09
  23 +
  24 +homepage http://www.videolan.org
  25 +master_sites http://download.videolan.org/pub/videolan/vlc/${version}/
  26 +distname vlc-${version}
  27 +use_xz yes
  28 +
  29 +checksums md5 5ad114755670e4881a2b35354e2f79bc \
  30 + sha1 40d0ed360dd3fa7dc3ff4fbc9c319553ebb22538 \
  31 + rmd160 9d932e1be72b65cf47057191d9e84deeedea282c
  32 +
  33 +depends_lib port:lame port:a52dec port:libogg port:flac port:BGHUDAppKit \
  34 + port:libdca port:libcddb port:libcdio port:libmad \
  35 + port:libvorbis port:libmatroska port:libid3tag \
  36 + port:ncurses port:lua port:libpng port:jpeg \
  37 + port:libdvdplay port:libdvdnav path:lib/libavcodec.dylib:ffmpeg \
  38 + port:gnutls port:taglib port:libxml2 port:faad2
  39 +
  40 +# TODO: port:live555
  41 +
  42 +pre-fetch {
  43 + if {"darwin" == ${os.platform} && ${os.major} < 9} {
  44 + ui_error "${name} ${version} requires Mac OS X 10.5 or greater, use port 'VLC09' instead"
  45 + return -code error "incompatible Mac OS X version"
  46 + }
  47 +}
  48 +
  49 +patchfiles \
  50 + patch-no-sparkle.diff
  51 +
  52 +post-patch {
  53 + reinplace "/Sparkle.framework/d" \
  54 + ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj
  55 + reinplace "/SDKROOT/d" \
  56 + ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj
  57 + reinplace "/Growl.framework/d" \
  58 + ${worksrcpath}/extras/package/macosx/package.mak
  59 + reinplace "s:librsvg-2/librsvg:librsvg:" \
  60 + ${worksrcpath}/modules/text_renderer/svg.c
  61 + reinplace "s:HOST_NAME_MAX:_POSIX_HOST_NAME_MAX:" \
  62 + ${worksrcpath}/modules/video_output/xcb/window.c
  63 +
  64 + ln -s ${frameworks_dir}/BGHUDAppKit.framework ${worksrcpath}/contrib/BGHUDAppKit.framework
  65 +
  66 + # To trick configure
  67 + file mkdir "${worksrcpath}/contrib/lib"
  68 +}
  69 +
  70 +use_parallel_build no
  71 +
  72 +use_autoreconf yes
  73 +autoreconf.args -fvi
  74 +
  75 +configure.env-append CXXCPP="${configure.cxx} -E"
  76 +build.args-append DESTDIR=${worksrcpath}/dest_ignore
  77 +
  78 +build.target all
  79 +destroot.target install
  80 +
  81 +livecheck.url http://download.videolan.org/pub/videolan/vlc/
  82 +livecheck.regex <a href=\"(\\d\[\\d|\.|\\w\]+).*/\">
  83 +
  84 +# live555 and possibly others are not universal, so disabling for now
  85 +universal_variant no
  86 +
  87 +configure.args-append \
  88 + --enable-macosx --disable-macosx-audio --enable-a52 \
  89 + --enable-dvdnav --enable-dvdread --enable-faad --enable-flac --disable-live555 \
  90 + --enable-vorbis --enable-ogg --enable-mad --disable-libass \
  91 + --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \
  92 + --disable-jack --disable-portaudio \
  93 + --disable-debug --disable-xvideo --disable-glx \
  94 + --disable-xcb --disable-qt4 --disable-quicktime \
  95 + --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \
  96 + --disable-speex --disable-theora --disable-x264 --disable-dvbpsi \
  97 + --disable-vcdx --disable-fontconfig --disable-freetype \
  98 + --disable-dbus --disable-bonjour --disable-fribidi --disable-goom \
  99 + --disable-growl --disable-sdl --disable-caca --disable-smb \
  100 + --disable-update-check --without-x --with-contrib=${worksrcpath}/contrib \
  101 + --with-macosx-sdk=/
  102 +
  103 +variant jack description {Enable jack plugin for audio output} {
  104 + depends_lib-append port:jack
  105 + configure.args-delete --disable-jack
  106 + configure.args-append --enable-jack
  107 +}
  108 +
  109 +variant portaudio description {Enable portaudio module for audio output} {
  110 + depends_lib-append port:portaudio
  111 + configure.args-delete --disable-portaudio
  112 + configure.args-append --enable-portaudio
  113 +}
  114 +
  115 +variant auhal description {Enable CoreAudio module for audio output (doesn't work on Snow Leopard)} {
  116 + configure.args-delete --disable-macosx-audio
  117 + configure.args-append --enable-macosx-audio
  118 +}
  119 +
  120 +variant qtcapture description {Enable qtcapture module (doesn't work on Snow Leopard)} {
  121 + patchfiles-delete patch-configure.ac-no_qtcapture.diff
  122 +}
  123 +
  124 +variant x264 description {Enable H.264 en/decoding} {
  125 + depends_lib-append port:x264
  126 + configure.args-delete --disable-x264
  127 + configure.args-append --enable-x264
  128 +}
  129 +
  130 +variant theora description {Enable OggTheora support} {
  131 + depends_lib-append port:libtheora
  132 + configure.args-delete --disable-theora
  133 + configure.args-append --enable-theora
  134 +}
  135 +
  136 +variant twolame description {Enable MPEG Audio Layer 2 encoding} {
  137 + depends_lib-append port:twolame
  138 + configure.args-delete --disable-twolame
  139 + configure.args-append --enable-twolame
  140 +}
  141 +
  142 +variant speex description {Enable Speex decoder support} {
  143 + depends_lib-append path:lib/libspeex.dylib:speex
  144 + configure.args-delete --disable-speex
  145 + configure.args-append --enable-speex
  146 +}
  147 +
  148 +variant svg description {Enable SVG support} {
  149 + depends_lib-append port:librsvg
  150 + configure.args-append --enable-svg
  151 +}
  152 +
  153 +variant shout description {Enable Shoutcast support} {
  154 + depends_lib-append port:libshout2
  155 + configure.args-append --enable-shout
  156 +}
  157 +
  158 +variant vcd description {Enable VCD support} {
  159 + depends_lib-append port:vcdimager
  160 + configure.args-delete --disable-vcdx
  161 + configure.args-append --enable-vcdx
  162 +}
  163 +
  164 +variant mod description {Enable MOD demuxer support} {
  165 + depends_lib-append port:libmodplug
  166 + configure.args-delete --disable-mod
  167 + configure.args-append --enable-mod
  168 +}
  169 +
  170 +variant mpc description {enable Musepack Decoder library support} {
  171 + depends_lib-append port:libmpcdec
  172 + configure.args-delete --disable-mpc
  173 + configure.args-append --enable-mpc
  174 +}
  175 +
  176 +variant dvb description {enable DVB Program Specific Information support} {
  177 + depends_lib-append port:libdvbpsi
  178 + configure.args-delete --disable-dvbpsi
  179 + configure.args-append --enable-dvbpsi
  180 +}
  181 +
  182 +variant osd description {Enable onscreen display and TrueType font support} {
  183 + depends_lib-append port:fontconfig port:freetype
  184 + configure.args-delete --disable-fontconfig
  185 + configure.args-delete --disable-freetype
  186 + configure.args-append --enable-freetype
  187 +}
  188 +
  189 +variant fribidi requires osd description {Enable FriBidi Unicode support} {
  190 + depends_lib-append port:fribidi
  191 + configure.args-delete --disable-fribidi
  192 + configure.args-append --enable-fribidi
  193 +}
  194 +
  195 +variant bonjour description {Enable Bonjour support} {
  196 + depends_lib-append port:avahi
  197 + configure.args-delete --disable-dbus --disable-bonjour
  198 + configure.args-append --enable-dbus --enable-bonjour
  199 +}
  200 +
  201 +variant sdl description {Enable SDL/SDL-Image support} {
  202 + depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image
  203 + configure.args-delete --disable-sdl
  204 + configure.args-append --enable-sdl
  205 +}
  206 +
  207 +variant smb description {Enable Samba 3 support} {
  208 + depends_lib-append port:samba3
  209 + configure.args-delete --disable-smb
  210 + configure.args-append --enable-smb
  211 + configure.ldflags-append -L${prefix}/lib/samba3
  212 +}
  213 +
  214 +variant no_dvd description {disable DVD and DeCSS support} {
  215 + depends_lib-delete port:libdvdnav port:libdvdread
  216 + configure.args-append --disable-dvdnav --disable-dvdread
  217 +}
  218 +
  219 +variant no_ffmpeg description {disable FFmpeg support} {
  220 + depends_lib-delete path:lib/libavcodec.dylib:ffmpeg
  221 + configure.args-append --disable-avcodec --disable-avformat \
  222 + --disable-postproc --disable-swscale
  223 +}
  224 +
  225 +variant x11 {
  226 + depends_lib-append \
  227 + port:mesa \
  228 + port:xorg-libXinerama \
  229 + port:xorg-libXv \
  230 + port:xorg-libXxf86vm \
  231 + port:xorg-xcb-util \
  232 + port:xorg-xcb-util-keysyms
  233 +
  234 + configure.args-delete --without-x --disable-xvideo --disable-glx --disable-xcb
  235 + configure.args-append --with-x --x-include=${prefix}/include --x-lib=${prefix}/lib \
  236 + --enable-xvideo --enable-glx --enable-xcb
  237 +}
  238 +
  239 +variant qt4 description {Build using QT4 UI. This will use qt4-x11 if +x11 and qt4-mac otherwise.} {
  240 + configure.args-delete --disable-qt4
  241 + configure.args-append --enable-qt4
  242 +
  243 + if {[variant_isset x11]} {
  244 + depends_lib-append port:qt4-x11
  245 + set qt_dir ${prefix}/libexec/qt4-x11
  246 + configure.cppflags-append -D__USE_WS_X11__
  247 + configure.env-append QTDIR=${qt_dir}
  248 + set env(PATH) "${qt_dir}/bin:$env(PATH)"
  249 + configure.pkg_config_path "${configure.pkg_config_path}:${qt_dir}/lib/pkgconfig"
  250 + } else {
  251 + PortGroup qt4 1.0
  252 + }
  253 +}
  254 +
  255 +variant minimal description {VLC Mac OS X minimal configuration} {}
  256 +
  257 +variant huge conflicts minimal \
  258 + requires bonjour svg vcd speex dvb fribidi sdl shout jack \
  259 + description {Enable all variants except x11, qt4, smb and no_*} {}
  260 +
  261 +variant full requires huge qt4 smb \
  262 + description {Enable all variants except x11 and no_*} {}
  263 +
  264 +# Unless minimal variant is set compile with default Mac OS X configuration
  265 +if {![variant_isset minimal]} {
  266 + default_variants +x264 +theora +twolame +mod +mpc +osd +portaudio +qtcapture +auhal
  267 +}
  268 +
  269 +if {[variant_isset x11]} {
  270 + default_variants-append +qt4
  271 +}
  272 +
  273 +platform macosx {
  274 + # The VLC.app target is not well-written, so we need to do it during destroot
  275 + destroot.target-append VLC.app
  276 + post-destroot {
  277 + file rename ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC.app
  278 + }
  279 +}
10 multimedia/VLC/files/patch-configure.ac-no_qtcapture.diff
... ... @@ -0,0 +1,10 @@
  1 +--- configure.ac.orig 2011-03-13 16:30:41.000000000 -0700
  2 ++++ configure.ac 2011-03-13 16:31:04.000000000 -0700
  3 +@@ -5176,7 +5176,6 @@ then
  4 + VLC_ADD_OBJCFLAGS([macosx minimal_macosx opengllayer growl], [-fobjc-exceptions] )
  5 +
  6 + VLC_ADD_PLUGIN([access_eyetv])
  7 +- VLC_ADD_PLUGIN([qtcapture])
  8 + VLC_ADD_PLUGIN([macosx])
  9 + VLC_ADD_PLUGIN([minimal_macosx])
  10 +
68 multimedia/VLC/files/patch-no-sparkle.diff
... ... @@ -0,0 +1,68 @@
  1 +diff -Naurp vlc-2.0.1.orig/configure.ac vlc-2.0.1/configure.ac
  2 +--- configure.ac 2012-03-08 04:18:41.000000000 -0800
  3 ++++ configure.ac 2012-05-01 23:51:46.000000000 -0700
  4 +@@ -3766,13 +3766,6 @@ then
  5 +
  6 + VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit -Wl,-framework,IOKit -Wl,-framework,AddressBook -Wl,-framework,WebKit])
  7 +
  8 +- if test ! -d ${CONTRIB_DIR}/Sparkle.framework
  9 +- then
  10 +- AC_MSG_ERROR([Sparkle framework is required and was not found in ${CONTRIB_DIR}])
  11 +- fi
  12 +- VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR} -Wl,-framework,Sparkle])
  13 +- VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}])
  14 +-
  15 + if test ! -d ${CONTRIB_DIR}/BGHUDAppKit.framework
  16 + then
  17 + AC_MSG_ERROR([BGHUDAppKit framework is required and was not found in ${CONTRIB_DIR}])
  18 +diff -Naurp vlc-2.0.1.orig/modules/gui/macosx/intf.m vlc-2.0.1/modules/gui/macosx/intf.m
  19 +--- modules/gui/macosx/intf.m 2012-03-14 04:07:48.000000000 -0700
  20 ++++ modules/gui/macosx/intf.m 2012-05-01 23:53:28.000000000 -0700
  21 +@@ -62,7 +62,6 @@
  22 + #import "TrackSynchronization.h"
  23 +
  24 + #import <AddressBook/AddressBook.h> /* for crashlog send mechanism */
  25 +-#import <Sparkle/Sparkle.h> /* we're the update delegate */
  26 +
  27 + /*****************************************************************************
  28 + * Local prototypes.
  29 +@@ -788,16 +787,6 @@ static VLCMain *_o_sharedMainInstance =
  30 + }
  31 +
  32 + #pragma mark -
  33 +-#pragma mark Sparkle delegate
  34 +-/* received directly before the update gets installed, so let's shut down a bit */
  35 +-- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
  36 +-{
  37 +- [NSApp activateIgnoringOtherApps:YES];
  38 +- [o_remote stopListening: self];
  39 +- [[VLCCoreInteraction sharedInstance] stop];
  40 +-}
  41 +-
  42 +-#pragma mark -
  43 + #pragma mark Media Key support
  44 +
  45 + -(void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event
  46 +diff -Naurp vlc-2.0.1.orig/modules/gui/macosx/simple_prefs.m vlc-2.0.1/modules/gui/macosx/simple_prefs.m
  47 +--- modules/gui/macosx/simple_prefs.m 2012-03-15 16:55:17.000000000 -0700
  48 ++++ modules/gui/macosx/simple_prefs.m 2012-05-01 23:54:38.000000000 -0700
  49 +@@ -36,8 +36,6 @@
  50 + #import "intf.h"
  51 + #import "AppleRemote.h"
  52 +
  53 +-#import <Sparkle/Sparkle.h> //for o_intf_last_update_lbl
  54 +-
  55 + static NSString* VLCSPrefsToolbarIdentifier = @"Our Simple Preferences Toolbar Identifier";
  56 + static NSString* VLCIntfSettingToolbarIdentifier = @"Intf Settings Item Identifier";
  57 + static NSString* VLCAudioSettingToolbarIdentifier = @"Audio Settings Item Identifier";
  58 +@@ -483,10 +481,6 @@ static inline char * __config_GetLabel(
  59 + [self setupButton: o_intf_appleremote_ckb forBoolValue: "macosx-appleremote"];
  60 +
  61 + [self setupButton: o_intf_mediakeys_ckb forBoolValue: "macosx-mediakeys"];
  62 +- if( [[SUUpdater sharedUpdater] lastUpdateCheckDate] != NULL )
  63 +- [o_intf_last_update_lbl setStringValue: [NSString stringWithFormat: _NS("Last check on: %@"), [[[SUUpdater sharedUpdater] lastUpdateCheckDate] descriptionWithLocale: [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]]]];
  64 +- else
  65 +- [o_intf_last_update_lbl setStringValue: _NS("No check was performed yet.")];
  66 + psz_tmp = config_GetPsz( p_intf, "control" );
  67 + if (psz_tmp) {
  68 + [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.