[108721] trunk/dports/graphics/gegl

devans at macports.org devans at macports.org
Wed Jul 31 11:16:43 PDT 2013


Revision: 108721
          https://trac.macports.org/changeset/108721
Author:   devans at macports.org
Date:     2013-07-31 11:16:43 -0700 (Wed, 31 Jul 2013)
Log Message:
-----------
gegl: fix ffmpeg deprecations that cause build with ffmpeg-devel to fail.

Modified Paths:
--------------
    trunk/dports/graphics/gegl/Portfile

Added Paths:
-----------
    trunk/dports/graphics/gegl/files/patch-ffmpeg-2.0.diff

Modified: trunk/dports/graphics/gegl/Portfile
===================================================================
--- trunk/dports/graphics/gegl/Portfile	2013-07-31 18:11:33 UTC (rev 108720)
+++ trunk/dports/graphics/gegl/Portfile	2013-07-31 18:16:43 UTC (rev 108721)
@@ -6,7 +6,7 @@
 
 name            gegl
 version         0.2.0
-revision        6
+revision        7
 license         {GPL-3+ LGPL-3+}
 set branch      [join [lrange [split ${version} .] 0 1] .]
 categories      graphics
@@ -50,7 +50,8 @@
 patchfiles     patch-configure.diff \
                opencl.patch \
                rename-for-altivec.patch \
-               patch-ffmpeg-1.0.diff
+               patch-ffmpeg-1.0.diff \
+               patch-ffmpeg-2.0.diff
 
 # introspection: Need to define Gegl_0_2_gir_FILES
 

Added: trunk/dports/graphics/gegl/files/patch-ffmpeg-2.0.diff
===================================================================
--- trunk/dports/graphics/gegl/files/patch-ffmpeg-2.0.diff	                        (rev 0)
+++ trunk/dports/graphics/gegl/files/patch-ffmpeg-2.0.diff	2013-07-31 18:16:43 UTC (rev 108721)
@@ -0,0 +1,22 @@
+--- operations/external/ff-load.c.orig	2013-07-28 22:44:18.000000000 -0700
++++ operations/external/ff-load.c	2013-07-28 22:45:01.000000000 -0700
+@@ -312,7 +312,7 @@
+       if (p->codec->capabilities & CODEC_CAP_TRUNCATED)
+         p->enc->flags |= CODEC_FLAG_TRUNCATED;
+ 
+-      if (avcodec_open (p->enc, p->codec) < 0)
++      if (avcodec_open2 (p->enc, p->codec, NULL) < 0)
+         {
+           g_warning ("error opening codec %s", p->enc->codec->name);
+           return;
+--- operations/workshop/external/ff-save.c.orig	2013-07-28 22:46:58.000000000 -0700
++++ operations/workshop/external/ff-save.c	2013-07-28 22:47:36.000000000 -0700
+@@ -568,7 +568,7 @@
+     }
+ 
+   /* open the codec */
+-  if (avcodec_open (c, codec) < 0)
++  if (avcodec_open2 (c, codec, NULL) < 0)
+     {
+       fprintf (stderr, "could not open codec\n");
+       exit (1);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130731/06422a4c/attachment.html>


More information about the macports-changes mailing list