[92689] trunk/dports/multimedia/VLC/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Thu May 3 16:14:38 PDT 2012


Revision: 92689
          https://trac.macports.org/changeset/92689
Author:   jeremyhu at macports.org
Date:     2012-05-03 16:14:38 -0700 (Thu, 03 May 2012)
Log Message:
-----------
VLC: Add a +quartz variant for the default interface, warn about +qt4 being unstable.

Modified Paths:
--------------
    trunk/dports/multimedia/VLC/Portfile

Modified: trunk/dports/multimedia/VLC/Portfile
===================================================================
--- trunk/dports/multimedia/VLC/Portfile	2012-05-03 22:51:31 UTC (rev 92688)
+++ trunk/dports/multimedia/VLC/Portfile	2012-05-03 23:14:38 UTC (rev 92689)
@@ -102,7 +102,7 @@
     --with-contrib=${worksrcpath}/contrib \
     --disable-debug --disable-update-check --enable-gnutls \
     --disable-notify --disable-telepathy --disable-dbus \
-    --disable-grow
+    --disable-grow --disable-macosx-vlc-app
 
 # Input Plugins
 configure.args-append \
@@ -136,7 +136,7 @@
 
 # Interface Plugins
 configure.args-append \
-    --disable-macos --disable-macosx-dialog-provider \
+    --disable-macosx --disable-macosx-dialog-provider \
     --disable-qt4 --enable-ncurses --disable-skins2
 
 # Visualisations and Video Filter Plugins
@@ -287,39 +287,60 @@
     configure.args-append --enable-qt4
 
     PortGroup qt4 1.0
+
+    post-activate {
+        if {![variant_isset quartz]} {
+            ui_info "The qt4 interface module for VLC is not very stable.  If you encounter bugs with it, please file them with VLC and not MacPorts."
+        }
+    }
 }
 
-default_variants +dvd +ffmpeg +mod +mpc +osd +theora +twolame +x264
+variant quartz description {Enable the OS X native UI} {
+    configure.args-delete \
+        --disable-macosx --disable-macosx-dialog-provider
 
+    configure.args-append \
+        --enable-macosx --enable-macosx-dialog-provider
+}
+
+default_variants +dvd +ffmpeg +mod +mpc +osd +theora +twolame +x264 +quartz
+
 variant huge \
     requires bonjour dvb dvd ffmpeg fribidi jack mod mpc osd qtkit sdl shout speex svg theora twolame vcd x264 \
-    description {Enable all variants except x11, qt4, and smb} {}
+    description {Enable all variants except quartz, qt4, smb, and x11} {}
 
 variant full \
-    requires huge qt4 smb x11 \
+    requires huge qt4 quartz smb x11 \
     description {Enable all variants} {}
 
 platform macosx {
     configure.args-delete \
         --disable-macosx-vout --disable-macosx-audio \
-        --disable-macos --disable-macosx-dialog-provider
 
     configure.args-append \
         --enable-macosx-vout --enable-macosx-audio \
-        --enable-macos --enable-macosx-dialog-provider \
         --with-macosx-sdk=/
 
+    if {[variant_isset qt4] || [variant_isset quartz]} {
+        configure.args-delete --disable-macosx-vlc-app
+        configure.args-append --enable-macosx-vlc-app
+    }
+
     post-destroot {
-        file rename ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC.app
+        eval file delete [glob ${destroot}${prefix}/lib/vlc/plugins/*.la]
 
-        # These are already in ${prefix}, so we don't need to bundle them as well
-        file delete -force ${destroot}${applications_dir}/VLC.app/Contents/Frameworks
-        file delete -force ${destroot}${applications_dir}/VLC.app/Contents/lib
+        if {[variant_isset qt4] || [variant_isset quartz]} {
+            file rename ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC.app
 
-        # There's no need to install these into the bundle and the prefix
-        file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/include
-        file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/lib
-        file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins
-        ln -s ${prefix}/lib/vlc/plugins ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins
+            # These are already in ${prefix}, so we don't need to bundle them as well
+            file delete -force ${destroot}${applications_dir}/VLC.app/Contents/Frameworks
+            file delete -force ${destroot}${applications_dir}/VLC.app/Contents/lib
+
+            # There's no need to install these into the bundle and the prefix
+            file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/include
+            file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/lib
+            file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins
+            ln -s ${prefix}/lib/vlc/plugins ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120503/cce87033/attachment-0001.html>


More information about the macports-changes mailing list