Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d3a7ab570d15ec96433edd0a2c79507aae656aec

commit d3a7ab570d15ec96433edd0a2c79507aae656aec
Author: Priyank <[EMAIL PROTECTED]>
Date:   Fri Sep 28 13:05:48 2007 +0530

gif2png-2.5.1-1-i686
* New package / Initial import

diff --git a/source/apps-extra/gif2png/FrugalBuild 
b/source/apps-extra/gif2png/FrugalBuild
new file mode 100644
index 0000000..184838b
--- /dev/null
+++ b/source/apps-extra/gif2png/FrugalBuild
@@ -0,0 +1,17 @@
+# Compiling Time: 0.1 SBU
+# Maintainer: Priyank Gosalia <[EMAIL PROTECTED]>
+
+pkgname=gif2png
+pkgver=2.5.1
+pkgrel=1
+pkgdesc="gif2png converts GIF files to PNG format."
+url="http://www.catb.org/~esr/gif2png/";
+depends=('libpng' 'zlib')
+groups=('apps-extra')
+archs=('i686' 'x86_64')
+up2date="lynx -dump $url | grep -m1 tar.gz | Flasttar"
+source=($url/$pkgname-$pkgver.tar.gz $pkgname-libpng.patch)
+sha1sums=('682f3dc2849ed1e938c12459eb089247aee09a2b' \
+          '1765dc6c714003740a5f1316a5083805bf114a63')
+
+# optimization OK
diff --git a/source/apps-extra/gif2png/gif2png-libpng.patch 
b/source/apps-extra/gif2png/gif2png-libpng.patch
new file mode 100644
index 0000000..6a8d93c
--- /dev/null
+++ b/source/apps-extra/gif2png/gif2png-libpng.patch
@@ -0,0 +1,32 @@
+--- gif2png.c.orig     2002-05-10 15:06:02.000000000 +0100
++++ gif2png.c  2006-04-18 13:52:45.000000000 +0100
+@@ -135,7 +135,7 @@
+     unsigned long hist_maxvalue;
+     int passcount;
+     int errtype, errorcount = 0;
+-    png_text software;
++    png_text comment, software;
+
+     /* these volatile declarations prevent gcc warnings ("variable might be
+      *  clobbered by `longjmp' or `vfork'") */
+@@ -517,11 +517,15 @@
+           j = s->size;
+           if (j > 0 && data[j-1] == '\0')  /* some apps include a NULL in GIF 
comment */
+               --j;
+-          if (j<500) {
+-              png_write_tEXt(png_ptr, "Comment", (png_charp)data, j);
+-          } else {
+-              png_write_zTXt(png_ptr, "Comment", (png_charp)data, j, 0);
+-          }
++          if (j<1000)
++              comment.compression = PNG_TEXT_COMPRESSION_NONE;
++          else
++              comment.compression = PNG_TEXT_COMPRESSION_zTXt;
++          comment.key = "Comment";
++          comment.text = data;
++          comment.text_length = j;
++
++          png_set_text(png_ptr, info_ptr, &comment, 1);
+           break;
+
+       case GIFapplication:
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to