summaryrefslogtreecommitdiff
path: root/community/swftools
diff options
context:
space:
mode:
Diffstat (limited to 'community/swftools')
-rw-r--r--community/swftools/PKGBUILD11
-rw-r--r--community/swftools/giflib-5.0.patch53
2 files changed, 60 insertions, 4 deletions
diff --git a/community/swftools/PKGBUILD b/community/swftools/PKGBUILD
index ffc3ea5cf..727b3c02d 100644
--- a/community/swftools/PKGBUILD
+++ b/community/swftools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 91933 2013-05-29 20:22:20Z lcarlier $
+# $Id: PKGBUILD 94930 2013-08-01 07:01:25Z bpiotrowski $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Vinay S Shastry <vinayshastry@gmail.com>
pkgname=swftools
pkgver=0.9.2
-pkgrel=2
+pkgrel=3
pkgdesc="A collection of SWF manipulation and creation utilities"
arch=('i686' 'x86_64')
url="http://www.swftools.org/"
@@ -13,13 +13,16 @@ depends=('giflib' 'freeglut' 'lame' 't1lib' 'libjpeg' 'fontconfig')
makedepends=('bison' 'flex' 'zlib' 'patch')
changelog=$pkgname.changelog
source=(http://www.swftools.org/$pkgname-$pkgver.tar.gz
- $pkgname-$pkgver.patch)
+ $pkgname-$pkgver.patch
+ giflib-5.0.patch)
sha256sums=('bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1'
- '80f69c86ed06b315f576a733fd1e24145b88aef9934085f3790179a119b7923d')
+ '80f69c86ed06b315f576a733fd1e24145b88aef9934085f3790179a119b7923d'
+ 'd163438fe736fb6d1ddbecaa5099a2edac35044c9fc697a8b7167e57f0d513e0')
prepare() {
cd ${srcdir}/$pkgname-$pkgver
+ patch -Np1 -i ../giflib-5.0.patch
sed -i 's#PrintGifError()#fprintf(stderr, "%s\\n", GifErrorString())#g' src/gif2swf.c
}
diff --git a/community/swftools/giflib-5.0.patch b/community/swftools/giflib-5.0.patch
new file mode 100644
index 000000000..48263c6f3
--- /dev/null
+++ b/community/swftools/giflib-5.0.patch
@@ -0,0 +1,53 @@
+diff -rupN a/src/gif2swf.c b/src/gif2swf.c
+--- a/src/gif2swf.c 2011-01-02 03:30:29.000000000 +0000
++++ b/src/gif2swf.c 2013-07-30 19:30:32.666103403 +0000
+@@ -65,6 +65,15 @@ enum disposal_method {
+ RESTORE_TO_PREVIOUS
+ };
+
++static void PrintGifError(int err)
++{
++ char *Err = GifErrorString(err);
++
++ if (Err != NULL)
++ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
++ else
++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", err);
++}
+
+ void SetFrameAction(TAG ** t, const char *src, int ver)
+ {
+@@ -230,13 +239,13 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(sname)) == NULL) {
++ if ((gft = DGifOpenFileName(sname, NULL)) == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", sname);
+ return t;
+ }
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ PrintGifError(DGifSlurp(gft));
+ return t;
+ }
+
+@@ -488,7 +497,7 @@ int CheckInputFile(char *fname, char **r
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(s)) == NULL) {
++ if ((gft = DGifOpenFileName(s, NULL)) == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", fname);
+ return -1;
+ }
+@@ -499,7 +508,7 @@ int CheckInputFile(char *fname, char **r
+ global.max_image_height = gft->SHeight;
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ PrintGifError(DGifSlurp(gft));
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available