diff --git a/trunk/dports/multimedia/VLC/Portfile b/trunk/dports/multimedia/VLC/Portfile
a
|
b
|
|
6 | 6 | |
7 | 7 | name VLC |
8 | 8 | version 2.1.5 |
9 | | revision 2 |
| 9 | revision 3 |
10 | 10 | categories multimedia |
11 | 11 | |
12 | | maintainers nomaintainer |
| 12 | maintainers gmail.com:rjvbertin nomaintainer |
13 | 13 | description VLC is a cross-platform media player and streaming server |
14 | 14 | long_description VLC media player is a highly portable multimedia player for \ |
15 | 15 | various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \ |
… |
… |
|
114 | 114 | |
115 | 115 | configure.args-append \ |
116 | 116 | --with-contrib=${worksrcpath}/contrib \ |
| 117 | --enable-shared \ |
117 | 118 | --disable-debug \ |
118 | 119 | --disable-update-check \ |
119 | 120 | --disable-dbus \ |
… |
… |
|
254 | 255 | |
255 | 256 | # Audio Plugins |
256 | 257 | depends_lib-append \ |
257 | | port:libsamplerate \ |
258 | | port:pulseaudio |
| 258 | port:libsamplerate |
259 | 259 | |
260 | 260 | configure.args-append \ |
261 | | --disable-chromaprint \ |
| 261 | --disable-chromaprint \ |
| 262 | --disable-macosx-audio \ |
| 263 | --enable-samplerate \ |
262 | 264 | --disable-jack \ |
263 | | --disable-macosx-audio \ |
264 | | --enable-pulse \ |
265 | | --enable-samplerate |
| 265 | --disable-pulse |
266 | 266 | |
267 | 267 | # Interface Plugins |
268 | 268 | depends_lib-append \ |
… |
… |
|
292 | 292 | --enable-bonjour \ |
293 | 293 | --enable-upnp |
294 | 294 | |
| 295 | variant dbus description {Enable DBus support} { |
| 296 | depends_lib-append port:dbus |
| 297 | configure.args-delete --disable-dbus |
| 298 | configure.args-append --enable-dbus |
| 299 | } |
| 300 | |
| 301 | variant pulse description {Enable PulseAudio support} { |
| 302 | depends_lib-append port:pulseaudio |
| 303 | configure.args-delete --disable-pulse |
| 304 | configure.args-append --enable-pulse |
| 305 | } |
| 306 | |
295 | 307 | variant eyetv description {Enable eyetv plugin} { |
296 | 308 | configure.args-delete --disable-macosx-eyetv |
297 | 309 | configure.args-append --enable-macosx-eyetv |
… |
… |
|
396 | 408 | --enable-xvideo |
397 | 409 | } |
398 | 410 | |
399 | | variant qt4 description {Build using QT4 UI. This will use qt4-mac} { |
| 411 | variant qt4 description {Build using QT4 UI. This will use qt4-mac} { |
400 | 412 | configure.args-delete --disable-qt |
401 | 413 | configure.args-append --enable-qt |
| 414 | patchfiles-append patch-vlc-qt4mac.diff |
402 | 415 | |
403 | 416 | PortGroup qt4 1.0 |
404 | 417 | |
… |
… |
|
410 | 423 | } |
411 | 424 | |
412 | 425 | variant quartz { |
| 426 | patchfiles-append patch-vlc-for-macports.diff |
| 427 | |
413 | 428 | depends_lib-append port:BGHUDAppKit |
| 429 | depends_lib-delete port:libsamplerate |
414 | 430 | configure.args-delete --disable-macosx \ |
415 | 431 | --disable-macosx-avfoundation \ |
416 | | --disable-macosx-dialog-provider \ |
| 432 | --enable-samplerate |
417 | 433 | |
418 | 434 | configure.args-append --enable-macosx \ |
419 | | --enable-macosx-avfoundation \ |
420 | | --enable-macosx-dialog-provider |
| 435 | --enable-macosx-avfoundation |
| 436 | # taken from VLC's own configure.sh script for OS X: |
| 437 | configure.args-append --disable-samplerate \ |
| 438 | --enable-merge-ffmpeg \ |
| 439 | --enable-realrtsp \ |
| 440 | --enable-libass |
421 | 441 | } |
422 | 442 | |
423 | 443 | default_variants +mod +mpc +osd +quartz |
424 | 444 | |
425 | 445 | variant huge \ |
426 | | requires dvb eyetv fribidi jack mod mpc osd sdl shout speex svg vcd \ |
427 | | description {Enable all variants except quartz, qt4, smb, and x11} {} |
| 446 | requires dvb eyetv fribidi jack mod mpc osd sdl shout speex svg vcd pulse \ |
| 447 | description {Enable all variants except quartz, qt4, smb, and x11} {} |
428 | 448 | |
429 | 449 | variant full \ |
430 | 450 | requires huge qt4 quartz smb x11 \ |
431 | | description {Enable all variants} {} |
| 451 | description {Enable all variants} {} |
432 | 452 | |
433 | 453 | platform macosx { |
434 | 454 | default_variants-append +qtkit |
… |
… |
|
489 | 509 | # http://trac.macports.org/ticket/35131 |
490 | 510 | ln -s ${prefix}/lib ${destroot}${applications_dir}/VLC.app/Contents/MacOS/lib |
491 | 511 | ln -s ${prefix}/lib/vlc/plugins ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins |
| 512 | # the vlc executable needs to be started with a full path to the app bundle executable |
| 513 | # or else the Mac OS X interface will hang beyond even a ^C or ^\ : |
| 514 | file delete ${destroot}${prefix}/bin/vlc |
| 515 | set vlc [open "${filespath}/vlc" "w"] |
| 516 | puts ${vlc} "#!/bin/sh" |
| 517 | puts ${vlc} "" |
| 518 | puts ${vlc} "exec ${applications_dir}/VLC.app/Contents/MacOS/VLC \"$@\"" |
| 519 | close ${vlc} |
| 520 | xinstall -m 755 ${filespath}/vlc ${destroot}${prefix}/bin |
492 | 521 | } |
493 | 522 | } |
494 | 523 | } |