[arch-commits] Commit in swftools/repos (10 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Mon Dec 7 01:11:17 UTC 2015
Date: Monday, December 7, 2015 @ 02:11:16
Author: bpiotrowski
Revision: 149461
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
swftools/repos/community-staging-i686/
swftools/repos/community-staging-i686/PKGBUILD
(from rev 149460, swftools/trunk/PKGBUILD)
swftools/repos/community-staging-i686/giflib-5.1.patch
(from rev 149460, swftools/trunk/giflib-5.1.patch)
swftools/repos/community-staging-i686/swftools-0.9.2.patch
(from rev 149460, swftools/trunk/swftools-0.9.2.patch)
swftools/repos/community-staging-i686/swftools.changelog
(from rev 149460, swftools/trunk/swftools.changelog)
swftools/repos/community-staging-x86_64/
swftools/repos/community-staging-x86_64/PKGBUILD
(from rev 149460, swftools/trunk/PKGBUILD)
swftools/repos/community-staging-x86_64/giflib-5.1.patch
(from rev 149460, swftools/trunk/giflib-5.1.patch)
swftools/repos/community-staging-x86_64/swftools-0.9.2.patch
(from rev 149460, swftools/trunk/swftools-0.9.2.patch)
swftools/repos/community-staging-x86_64/swftools.changelog
(from rev 149460, swftools/trunk/swftools.changelog)
-----------------------------------------------+
community-staging-i686/PKGBUILD | 47 ++++++++++++
community-staging-i686/giflib-5.1.patch | 92 ++++++++++++++++++++++++
community-staging-i686/swftools-0.9.2.patch | 11 ++
community-staging-i686/swftools.changelog | 8 ++
community-staging-x86_64/PKGBUILD | 47 ++++++++++++
community-staging-x86_64/giflib-5.1.patch | 92 ++++++++++++++++++++++++
community-staging-x86_64/swftools-0.9.2.patch | 11 ++
community-staging-x86_64/swftools.changelog | 8 ++
8 files changed, 316 insertions(+)
Copied: swftools/repos/community-staging-i686/PKGBUILD (from rev 149460, swftools/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Vinay S Shastry <vinayshastry at gmail.com>
+
+pkgname=swftools
+pkgver=0.9.2
+pkgrel=5
+pkgdesc="A collection of SWF manipulation and creation utilities"
+arch=('i686' 'x86_64')
+url="http://www.swftools.org/"
+license=('GPL')
+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
+ giflib-5.1.patch)
+sha256sums=('bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1'
+ '80f69c86ed06b315f576a733fd1e24145b88aef9934085f3790179a119b7923d'
+ '6a995dfd674c5954f5b967e3d45d6845a186872fcaa4223d725902fd4d679f1b')
+
+prepare() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ patch -Np0 -i ../giflib-5.1.patch
+ sed -i 's#PrintGifError()#fprintf(stderr, "%s\\n", GifErrorString())#g' src/gif2swf.c
+}
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ patch -Np0 -i ${srcdir}/$pkgname-$pkgver.patch
+
+ make prefix=${pkgdir}/usr install
+
+ cd ${pkgdir}/usr/share/$pkgname/swfs
+ rm -f default_loader.swf default_viewer.swf
+ ln -s tessel_loader.swf default_loader.swf
+ ln -s simple_viewer.swf default_viewer.swf
+}
Copied: swftools/repos/community-staging-i686/giflib-5.1.patch (from rev 149460, swftools/trunk/giflib-5.1.patch)
===================================================================
--- community-staging-i686/giflib-5.1.patch (rev 0)
+++ community-staging-i686/giflib-5.1.patch 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,92 @@
+$NetBSD$
+
+Fix build with giflib-5.x.
+
+--- src/gif2swf.c.orig 2011-01-02 03:30:29.000000000 +0000
++++ src/gif2swf.c
+@@ -65,6 +65,17 @@ enum disposal_method {
+ RESTORE_TO_PREVIOUS
+ };
+
++/* from util/qprintf.c of giflib 5.0.4 */
++void
++PrintGifError(int ErrorCode)
++{
++ char *Err = GifErrorString(ErrorCode);
++
++ if (Err != NULL)
++ fprintf(stderr, "GIF-LIB error: %s.\n", Err);
++ else
++ fprintf(stderr, "GIF-LIB undefined error %d.\n", ErrorCode);
++}
+
+ void SetFrameAction(TAG ** t, const char *src, int ver)
+ {
+@@ -200,6 +211,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+ SRECT r;
+ MATRIX m;
+ int fs;
++ int ErrorCode;
+
+ U8 *imagedata, *from, *to;
+ GifImageDesc *img;
+@@ -230,13 +242,13 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(sname)) == NULL) {
++ if ((gft = DGifOpenFileName(sname, &ErrorCode)) == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", sname);
+ return t;
+ }
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ PrintGifError(ErrorCode);
+ return t;
+ }
+
+@@ -455,7 +467,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+
+ free(pal);
+ free(imagedata);
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+
+ return t;
+ }
+@@ -465,6 +477,7 @@ int CheckInputFile(char *fname, char **r
+ FILE *fi;
+ char *s = malloc(strlen(fname) + 5);
+ GifFileType *gft;
++ int ErrorCode;
+
+ if (!s)
+ exit(2);
+@@ -488,7 +501,7 @@ int CheckInputFile(char *fname, char **r
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(s)) == NULL) {
++ if ((gft = DGifOpenFileName(s, &ErrorCode)) == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", fname);
+ return -1;
+ }
+@@ -499,7 +512,7 @@ int CheckInputFile(char *fname, char **r
+ global.max_image_height = gft->SHeight;
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ PrintGifError(ErrorCode);
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available
+@@ -518,7 +531,7 @@ int CheckInputFile(char *fname, char **r
+ fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
+ }
+
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+
+ return 0;
+ }
Copied: swftools/repos/community-staging-i686/swftools-0.9.2.patch (from rev 149460, swftools/trunk/swftools-0.9.2.patch)
===================================================================
--- community-staging-i686/swftools-0.9.2.patch (rev 0)
+++ community-staging-i686/swftools-0.9.2.patch 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,11 @@
+--- swfs/Makefile.orig 2012-05-20 18:39:44.000000000 +0200
++++ swfs/Makefile 2012-05-20 19:17:45.246528998 +0200
+@@ -44,4 +44,4 @@
+- rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
+- $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
+- rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
+- $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
++# rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
++# $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
++# rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
++# $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
Copied: swftools/repos/community-staging-i686/swftools.changelog (from rev 149460, swftools/trunk/swftools.changelog)
===================================================================
--- community-staging-i686/swftools.changelog (rev 0)
+++ community-staging-i686/swftools.changelog 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,8 @@
+2012-05-20 Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+ * swftools 0.9.2-1
+
+2010-08-29 Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+ * swftools 0.9.1-1
+
+2009-05-07 Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+ * swftools 0.9.0-1
Copied: swftools/repos/community-staging-x86_64/PKGBUILD (from rev 149460, swftools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Vinay S Shastry <vinayshastry at gmail.com>
+
+pkgname=swftools
+pkgver=0.9.2
+pkgrel=5
+pkgdesc="A collection of SWF manipulation and creation utilities"
+arch=('i686' 'x86_64')
+url="http://www.swftools.org/"
+license=('GPL')
+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
+ giflib-5.1.patch)
+sha256sums=('bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1'
+ '80f69c86ed06b315f576a733fd1e24145b88aef9934085f3790179a119b7923d'
+ '6a995dfd674c5954f5b967e3d45d6845a186872fcaa4223d725902fd4d679f1b')
+
+prepare() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ patch -Np0 -i ../giflib-5.1.patch
+ sed -i 's#PrintGifError()#fprintf(stderr, "%s\\n", GifErrorString())#g' src/gif2swf.c
+}
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ patch -Np0 -i ${srcdir}/$pkgname-$pkgver.patch
+
+ make prefix=${pkgdir}/usr install
+
+ cd ${pkgdir}/usr/share/$pkgname/swfs
+ rm -f default_loader.swf default_viewer.swf
+ ln -s tessel_loader.swf default_loader.swf
+ ln -s simple_viewer.swf default_viewer.swf
+}
Copied: swftools/repos/community-staging-x86_64/giflib-5.1.patch (from rev 149460, swftools/trunk/giflib-5.1.patch)
===================================================================
--- community-staging-x86_64/giflib-5.1.patch (rev 0)
+++ community-staging-x86_64/giflib-5.1.patch 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,92 @@
+$NetBSD$
+
+Fix build with giflib-5.x.
+
+--- src/gif2swf.c.orig 2011-01-02 03:30:29.000000000 +0000
++++ src/gif2swf.c
+@@ -65,6 +65,17 @@ enum disposal_method {
+ RESTORE_TO_PREVIOUS
+ };
+
++/* from util/qprintf.c of giflib 5.0.4 */
++void
++PrintGifError(int ErrorCode)
++{
++ char *Err = GifErrorString(ErrorCode);
++
++ if (Err != NULL)
++ fprintf(stderr, "GIF-LIB error: %s.\n", Err);
++ else
++ fprintf(stderr, "GIF-LIB undefined error %d.\n", ErrorCode);
++}
+
+ void SetFrameAction(TAG ** t, const char *src, int ver)
+ {
+@@ -200,6 +211,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+ SRECT r;
+ MATRIX m;
+ int fs;
++ int ErrorCode;
+
+ U8 *imagedata, *from, *to;
+ GifImageDesc *img;
+@@ -230,13 +242,13 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(sname)) == NULL) {
++ if ((gft = DGifOpenFileName(sname, &ErrorCode)) == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", sname);
+ return t;
+ }
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ PrintGifError(ErrorCode);
+ return t;
+ }
+
+@@ -455,7 +467,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, c
+
+ free(pal);
+ free(imagedata);
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+
+ return t;
+ }
+@@ -465,6 +477,7 @@ int CheckInputFile(char *fname, char **r
+ FILE *fi;
+ char *s = malloc(strlen(fname) + 5);
+ GifFileType *gft;
++ int ErrorCode;
+
+ if (!s)
+ exit(2);
+@@ -488,7 +501,7 @@ int CheckInputFile(char *fname, char **r
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(s)) == NULL) {
++ if ((gft = DGifOpenFileName(s, &ErrorCode)) == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", fname);
+ return -1;
+ }
+@@ -499,7 +512,7 @@ int CheckInputFile(char *fname, char **r
+ global.max_image_height = gft->SHeight;
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ PrintGifError(ErrorCode);
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available
+@@ -518,7 +531,7 @@ int CheckInputFile(char *fname, char **r
+ fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
+ }
+
+- DGifCloseFile(gft);
++ DGifCloseFile(gft, NULL);
+
+ return 0;
+ }
Copied: swftools/repos/community-staging-x86_64/swftools-0.9.2.patch (from rev 149460, swftools/trunk/swftools-0.9.2.patch)
===================================================================
--- community-staging-x86_64/swftools-0.9.2.patch (rev 0)
+++ community-staging-x86_64/swftools-0.9.2.patch 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,11 @@
+--- swfs/Makefile.orig 2012-05-20 18:39:44.000000000 +0200
++++ swfs/Makefile 2012-05-20 19:17:45.246528998 +0200
+@@ -44,4 +44,4 @@
+- rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
+- $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
+- rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
+- $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
++# rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
++# $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
++# rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
++# $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
Copied: swftools/repos/community-staging-x86_64/swftools.changelog (from rev 149460, swftools/trunk/swftools.changelog)
===================================================================
--- community-staging-x86_64/swftools.changelog (rev 0)
+++ community-staging-x86_64/swftools.changelog 2015-12-07 01:11:16 UTC (rev 149461)
@@ -0,0 +1,8 @@
+2012-05-20 Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+ * swftools 0.9.2-1
+
+2010-08-29 Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+ * swftools 0.9.1-1
+
+2009-05-07 Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+ * swftools 0.9.0-1
More information about the arch-commits
mailing list