[96933] trunk/dports/graphics/swftools

jmr at macports.org jmr at macports.org
Wed Aug 22 00:13:08 PDT 2012


Revision: 96933
          https://trac.macports.org/changeset/96933
Author:   jmr at macports.org
Date:     2012-08-22 00:13:06 -0700 (Wed, 22 Aug 2012)
Log Message:
-----------
swftools: fix build with giflib 4.2.0 (#34553), add license

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

Added Paths:
-----------
    trunk/dports/graphics/swftools/files/patch-src_gif2swf.c.diff

Modified: trunk/dports/graphics/swftools/Portfile
===================================================================
--- trunk/dports/graphics/swftools/Portfile	2012-08-22 07:07:09 UTC (rev 96932)
+++ trunk/dports/graphics/swftools/Portfile	2012-08-22 07:13:06 UTC (rev 96933)
@@ -1,9 +1,11 @@
 # $Id$
 
 PortSystem          1.0
+
 name                swftools
 version             0.9.2
 categories          graphics
+license             GPL-3+
 maintainers         nomaintainer
 description         SWF manipulation and generation tools
 long_description    ${description}
@@ -21,7 +23,8 @@
 
 patchfiles          patch-Makefile.common.in.diff \
                     patch-configure.diff \
-                    patch-setup.py.diff
+                    patch-setup.py.diff \
+                    patch-src_gif2swf.c.diff
 
 configure.python    ${prefix}/bin/python2.6
 
@@ -41,4 +44,3 @@
    ln -s ${swfs_dir}/tessel_loader.swf ${destroot}${swfs_dir}/default_loader.swf
    ln -s ${swfs_dir}/simple_viewer.swf ${destroot}${swfs_dir}/default_viewer.swf
 }
-

Added: trunk/dports/graphics/swftools/files/patch-src_gif2swf.c.diff
===================================================================
--- trunk/dports/graphics/swftools/files/patch-src_gif2swf.c.diff	                        (rev 0)
+++ trunk/dports/graphics/swftools/files/patch-src_gif2swf.c.diff	2012-08-22 07:13:06 UTC (rev 96933)
@@ -0,0 +1,28 @@
+--- src/gif2swf.c.orig	2011-01-02 14:30:29.000000000 +1100
++++ src/gif2swf.c	2012-08-22 17:04:57.000000000 +1000
+@@ -236,7 +236,11 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+     }
+ 
+     if (DGifSlurp(gft) != GIF_OK) {
+-        PrintGifError();
++        char *Err = GifErrorString();
++        if (Err != NULL) 
++            fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
++        else
++            fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError());
+         return t;
+     }
+ 
+@@ -499,7 +503,11 @@ int CheckInputFile(char *fname, char **r
+         global.max_image_height = gft->SHeight;
+ 
+     if (DGifSlurp(gft) != GIF_OK) { 
+-        PrintGifError();
++        char *Err = GifErrorString();
++        if (Err != NULL) 
++            fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
++        else
++            fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError());
+         return -1;
+     }
+     // After DGifSlurp() call, gft->ImageCount become available
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120822/abf48ab3/attachment.html>


More information about the macports-changes mailing list