[150044] trunk/dports/multimedia/ffmpeg

devans at macports.org devans at macports.org
Sat Jul 9 14:00:40 PDT 2016


Revision: 150044
          https://trac.macports.org/changeset/150044
Author:   devans at macports.org
Date:     2016-07-09 14:00:40 -0700 (Sat, 09 Jul 2016)
Log Message:
-----------
ffmpeg: update to version 3.1.1, ABI compatible with previous version, enable audiotoolbox where supported, minor reordering to match ffmpeg-devel.

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

Added Paths:
-----------
    trunk/dports/multimedia/ffmpeg/files/patch-libavcodec-audiotoolboxenc.c.diff

Modified: trunk/dports/multimedia/ffmpeg/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg/Portfile	2016-07-09 15:41:11 UTC (rev 150043)
+++ trunk/dports/multimedia/ffmpeg/Portfile	2016-07-09 21:00:40 UTC (rev 150044)
@@ -10,7 +10,7 @@
 name                ffmpeg
 conflicts           ffmpeg-devel
 epoch               1
-version             3.0.2
+version             3.1.1
 license             LGPL-2.1+
 categories          multimedia
 maintainers         devans jeremyhu openmaintainer
@@ -52,8 +52,8 @@
 
 use_bzip2           yes
 
-checksums           rmd160  7255df119a4efef1b0da58e6e148028edeeed7f2 \
-                    sha256  30e3c77c2f4c358ed087869455a7496cbd7753a5e1b98d20ba49c1004009fd36
+checksums           rmd160  1b2b8e480d7140e43ff6f61ac4b05f2234b5681a \
+                    sha256  a5bca50a90a37b983eaa17c483a387189175f37ca678ae7e51d43e7610b4b3b4
 
 depends_build       port:pkgconfig \
                     port:gmake \
@@ -86,8 +86,7 @@
                     port:xz \
                     port:zlib
 
-build.cmd           ${prefix}/bin/gmake
-build.env-append    V=1
+patchfiles          patch-libavcodec-audiotoolboxenc.c.diff
 
 #
 # enable auto configure of asm optimizations
@@ -132,6 +131,7 @@
                     --disable-indev=jack \
                     --disable-outdev=xv \
                     --disable-vda \
+                    --disable-audiotoolbox \
                     --disable-videotoolbox \
                     --mandir=${prefix}/share/man \
                     --enable-shared --enable-pthreads \
@@ -157,6 +157,12 @@
         configure.args-append --enable-vda
     }
 
+    # AudiotoolBox support requires CoreMedia Framework available on 10.7+
+    if {${os.major} > 10} {
+        configure.args-delete --disable-audiotoolbox
+        configure.args-append --enable-audiotoolbox
+    }
+
     # VideotoolBox, a new hardware acceleration framework, is supported on 10.8+ and "here to stay".
     # It provides support for H264, H263, MPEG1, MPEG2 and MPEG4.
     if {${os.major} > 11} {
@@ -175,8 +181,13 @@
     }
 }
 
+build.cmd           ${prefix}/bin/gmake
+build.env-append    V=1
+
 test.run            yes
 
+destroot.env-append V=1
+
 #
 # configure isn't autoconf and they do use a dep cache
 #

Added: trunk/dports/multimedia/ffmpeg/files/patch-libavcodec-audiotoolboxenc.c.diff
===================================================================
--- trunk/dports/multimedia/ffmpeg/files/patch-libavcodec-audiotoolboxenc.c.diff	                        (rev 0)
+++ trunk/dports/multimedia/ffmpeg/files/patch-libavcodec-audiotoolboxenc.c.diff	2016-07-09 21:00:40 UTC (rev 150044)
@@ -0,0 +1,13 @@
+--- libavcodec/audiotoolboxenc.c.orig	2016-05-18 05:07:43.000000000 -0700
++++ libavcodec/audiotoolboxenc.c	2016-05-18 05:09:16.000000000 -0700
+@@ -64,8 +64,10 @@
+             return kAudioFormatMPEG4AAC_HE_V2;
+         case FF_PROFILE_AAC_LD:
+             return kAudioFormatMPEG4AAC_LD;
++#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
+         case FF_PROFILE_AAC_ELD:
+             return kAudioFormatMPEG4AAC_ELD;
++#endif
+         }
+     case AV_CODEC_ID_ADPCM_IMA_QT:
+         return kAudioFormatAppleIMA4;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160709/56c6b60a/attachment.html>


More information about the macports-changes mailing list