[121382] trunk/dports/multimedia/mkvtoolnix/Portfile

mojca at macports.org mojca at macports.org
Tue Jun 24 09:38:54 PDT 2014


Revision: 121382
          https://trac.macports.org/changeset/121382
Author:   mojca at macports.org
Date:     2014-06-24 09:38:54 -0700 (Tue, 24 Jun 2014)
Log Message:
-----------
mkvtoolnix: support building against libc++, create app bundle (#17366), make +wxwidgets default

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

Modified: trunk/dports/multimedia/mkvtoolnix/Portfile
===================================================================
--- trunk/dports/multimedia/mkvtoolnix/Portfile	2014-06-24 16:33:21 UTC (rev 121381)
+++ trunk/dports/multimedia/mkvtoolnix/Portfile	2014-06-24 16:38:54 UTC (rev 121382)
@@ -7,7 +7,7 @@
 
 name                mkvtoolnix
 version             7.0.0
-revision            1
+revision            2
 categories          multimedia
 maintainers         nomaintainer
 license             GPL-2+ LGPL-2.1+
@@ -56,11 +56,14 @@
 
 platform darwin {
     if {${os.major} < 13} {
-        # TODO: Need to link against static versions of boost and icu for this to work right
-        #       See: https://trac.macports.org/ticket/40231
+        if {${configure.cxx_stdlib} eq "libc++"} {
+            configure.ldflags-append "-stdlib=${configure.cxx_stdlib}"
+        } else {
+            # TODO: Need to link against static versions of boost and icu for this to work right
+            #       See: https://trac.macports.org/ticket/40231
 
-        # configure complains about gcc < 4.6 and clang
-        compiler.whitelist macports-gcc-4.7 macports-gcc-4.8 macports-gcc-4.9
+            compiler.whitelist macports-gcc-4.7 macports-gcc-4.8 macports-gcc-4.9
+        }
     }
 }
 
@@ -76,12 +79,15 @@
                     --disable-wxwidgets
 
 variant wxwidgets description {Build with the wxWidgets GUI} {
-    # TODO: make the GUI application respond by creating an app bundle
-    #       and using http://wiki.wxwidgets.org/WxMac-specific_topics#My_app_can.27t_be_brought_to_the_front.21
-    #
-    # see:  https://trac.macports.org/ticket/17366
-    depends_lib-append port:${wxWidgets.port}
+    PortGroup       app 1.0
+    app.name        Mkvtoolnix
+    app.executable  mmg
+    app.icon        ${worksrcpath}/share/icons/256x256/mkvmergeGUI.png
 
+    depends_build-append \
+        port:makeicns
+    depends_lib-append \
+        port:${wxWidgets.port}
     configure.args-delete \
         --disable-gui \
         --disable-wxwidgets
@@ -90,3 +96,5 @@
         --enable-wxwidgets \
         --with-wx-config=${wxWidgets.wxconfig}
 }
+
+default_variants    +wxwidgets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140624/e5ee60d6/attachment.html>


More information about the macports-changes mailing list