summaryrefslogtreecommitdiff
path: root/media-gfx/swftools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/swftools
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/swftools')
-rw-r--r--media-gfx/swftools/Manifest9
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_general.patch28
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_giflib.patch89
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_giflib5.patch26
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_nopdf.patch40
-rw-r--r--media-gfx/swftools/metadata.xml12
-rw-r--r--media-gfx/swftools/swftools-0.9.2-r1.ebuild47
7 files changed, 251 insertions, 0 deletions
diff --git a/media-gfx/swftools/Manifest b/media-gfx/swftools/Manifest
new file mode 100644
index 000000000000..d6495c93d85a
--- /dev/null
+++ b/media-gfx/swftools/Manifest
@@ -0,0 +1,9 @@
+AUX swftools-0.9.2_general.patch 1747 SHA256 593d5b4c480b6203bd3d5a875b1e5bdb8efa6038df7c1999cc665a9e76737608 SHA512 c6874f0a12939f67f93a1c7615e3dfe5ecdfadffe1bb9f790be44815b4329758566e8a10eb7d4ed6757580f4c8c0251ced12908a1555c500efb41727ef05307c WHIRLPOOL 0d164c592ddc8285a3a203d753b305c530f7b012428823ab5cdc56ece9550db7cc1e7884b96a6da70bd491e9744fd777e63e23bebbc71a613e706ca69a17307b
+AUX swftools-0.9.2_giflib.patch 2687 SHA256 f78e68d7ecf09169df43ae6fe6c7092e84d578ba4199c7f463250e1d38bde7c0 SHA512 88f8bf4d75578656ff37498cdfb4c577dda85f192222b749708dabffc27314605ca930aa6a8686e2205f0dd81f5b53988432685430ac0f8f15ac538658e6a03c WHIRLPOOL a60f0f6244f804a0c732fdc9dc927473436237f6870c215c77aaf2740ee9510c061c9177ddd4f5ccec42c298a85ad193590c5fb748ea260aa20377b655c53a98
+AUX swftools-0.9.2_giflib5.patch 678 SHA256 a6ec1f3413e386d38189ab2486354216b2cbed111c86281e6d18c1760b8854b0 SHA512 91a6bc2dd57aec2979b9b7eada5990b8dfa68748acf6d2c4f58c379e0312a9581637c0dfd0899107ba3805e72f34c6652fe4e59f07629a457534ee5d93663800 WHIRLPOOL b375c7303cbc9bfffd648639a3e6ae4ce92a3c849e7a72f7823d04186bd55b9c27bf916449609350405a510e604ef472e886bc38bfb9d577bbcd54b4dcd1751f
+AUX swftools-0.9.2_nopdf.patch 2366 SHA256 5a5326f28647a98cd472e64c7a613ce65a76a0af89fbf8ee7d5be7f52e1fa2a7 SHA512 aaecc86d3cea1b97d748959fdf00c4249891bc3ff4d668e7d7a2ec5277e53cc9bda9281a2de065c9395aab49175f5438822d82641a24768997ec48cd4bcd213b WHIRLPOOL 4f5f32e0f3c3239750b091271111aec1c2b732b251dfa0a71dcaf761cdf8baff5dcd5509607b3f4130a21da1d452755065b60fa96e05d41158506c8fba39d216
+DIST swftools-0.9.2.tar.gz 2675939 SHA256 bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1 SHA512 91bbd48914f9a8a1cdf85532b371721b01982c5f88648b908fbe99fbf4e17e9893ce575e4fd699927e9bc1c79d846f6bcd4f1d868578fb17403467cc1e28259b WHIRLPOOL a0c4699db82f488e464ad2246840de616595025e0f5f35880db2972b438deb503a5a702f911dd997e85e3ccc61e90515391090b5ec7289d1370f35bf00e36bf3
+EBUILD swftools-0.9.2-r1.ebuild 998 SHA256 e1d449b16d52a2646e5767f8184d887f1d63294b1a4164ea9253d13fcb68e5fc SHA512 f76750fefac4b480fd43131e1f4577c171fd8e3b11b6f056c95c8e588428149deaf9f9b43eec614d648ee49a2eb6eb61ab7dc9f34b748c41e34991eada7fdfbb WHIRLPOOL b326e744b81f23eaf7753e6d0734f0a1543e68d700e990985268279f81dc70754f5e3b6bb6a70ddb09ab7c4aa5cdbd00165992ddba86e842b51d5f0df0609835
+MISC ChangeLog 2924 SHA256 4e67773e299d09fb6b246d36c40b8395a41337d98080f9ffa2517a4a0afde54e SHA512 6eb247cd633334dd281841b9f679ef034817577ccb54d8e18a9d76266dfdc7f428991f25ac3a41b86d8dffde1c9fd7f5a6069b85adcf853e4b7db06646fcf99d WHIRLPOOL 2e67723a077dbfd72ed898a5aa2859728492a4f3bdd729e6963988769693362a9c447e371bea182d109df4e2c9b537705a163c06ac49f3a6b2d04b61caa57763
+MISC ChangeLog-2015 1221 SHA256 b2aeb11370d714c25b135dc1c81ef2e48844c797592393424afa285500088e3e SHA512 9e0052c2ee25cc398be7f2e0def888f323bceb6df8ddd4deee5a98955a9c0859e69efd738811ffd43a5a035235646e0e1a10dc4d5601833f58633db52cd14158 WHIRLPOOL 3d8df3887f01e15e79338ae79eb056c36c3000a79b6f11fa797347d70ab2f5eafceb87c2d9db82a2eded6084702642db6affcbc85197627ce2e0323e08daaab2
+MISC metadata.xml 373 SHA256 cb51cb89c0b29b601dfd56dc3ff61aae52f40cec32a7a54ca274c574820c1fca SHA512 3c13254770c4b250796162893d0fa4b3ae78993a371db8cf927ff5e469acf394085c65a03975c84575ea2302ed99f7a6dea649a83bccaf1bde68338dbba7148c WHIRLPOOL 6adacd3337b9cfa950c31e72d0e082282e89368850fdab22e6c25b225fec82be4d4903912cc162754234f7bea836ee2b53974a7e0db8612cf25664c2c4ef3755
diff --git a/media-gfx/swftools/files/swftools-0.9.2_general.patch b/media-gfx/swftools/files/swftools-0.9.2_general.patch
new file mode 100644
index 000000000000..f49fcb0d2f64
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_general.patch
@@ -0,0 +1,28 @@
+diff -urB swftools-0.9.2.old/src/png2swf.c swftools-0.9.2.jo/src/png2swf.c
+--- swftools-0.9.2.old/src/png2swf.c 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/src/png2swf.c 2012-04-11 23:29:08.569700175 +0200
+@@ -777,7 +777,7 @@
+ printf("-q , --quiet Omit normal log messages, only log errors\n");
+ printf("-C , --cgi For use as CGI- prepend http header, write to stdout\n");
+ printf("-V , --version Print version information and exit\n");
+- printf("-s , --scale <percent> Scale image to <percent>% size.\n");
++ printf("-s , --scale <percent> Scale image to <percent>%% size.\n");
+ printf("\n");
+ }
+
+diff -urB swftools-0.9.2.old/swfs/Makefile.in swftools-0.9.2.jo/swfs/Makefile.in
+--- swftools-0.9.2.old/swfs/Makefile.in 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/swfs/Makefile.in 2012-04-11 23:29:08.573699972 +0200
+@@ -41,10 +41,8 @@
+ $(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
+ $(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
+ $(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_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
++ cd $(pkgdatadir)/swfs; ${LN_S} simple_viewer.swf default_viewer.swf
++ cd $(pkgdatadir)/swfs; ${LN_S} tessel_loader.swf default_loader.swf
+
+ uninstall:
+ $(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
diff --git a/media-gfx/swftools/files/swftools-0.9.2_giflib.patch b/media-gfx/swftools/files/swftools-0.9.2_giflib.patch
new file mode 100644
index 000000000000..913b5e3b08d1
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_giflib.patch
@@ -0,0 +1,89 @@
+From 05c1df6a6da28734533722dc0ac99ea5b206a492 Mon Sep 17 00:00:00 2001
+From: Matthias Kramm <kramm@quiss.org>
+Date: Sat, 6 Jul 2013 12:09:53 -0700
+Subject: [PATCH] applied giflib patch from Jan Engelhardt
+
+---
+ src/gif2swf.c | 28 ++++++++++++++++++++++++----
+ 1 file changed, 24 insertions(+), 4 deletions(-)
+
+diff --git a/src/gif2swf.c b/src/gif2swf.c
+index 2359da5..5e52ea8 100644
+--- a/src/gif2swf.c
++++ b/src/gif2swf.c
+@@ -222,6 +222,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id, int imgidx)
+
+ GifFileType *gft;
+ FILE *fi;
++ int ret;
+
+ if ((fi = fopen(sname, "rb")) == NULL) {
+ if (VERBOSE(1))
+@@ -230,13 +231,24 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id, int imgidx)
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(sname)) == NULL) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ gft = DGifOpenFileName(sname, NULL);
++#else
++ gft = DGifOpenFileName(sname);
++#endif
++ if (gft == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", sname);
+ return t;
+ }
+
+- if (DGifSlurp(gft) != GIF_OK) {
++ if ((ret = DGifSlurp(gft)) != GIF_OK) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString());
++#elif defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString(ret));
++#else
+ PrintGifError();
++#endif
+ return t;
+ }
+
+@@ -465,6 +475,7 @@ int CheckInputFile(char *fname, char **realname)
+ FILE *fi;
+ char *s = malloc(strlen(fname) + 5);
+ GifFileType *gft;
++ int ret;
+
+ if (!s)
+ exit(2);
+@@ -488,7 +499,12 @@ int CheckInputFile(char *fname, char **realname)
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(s)) == NULL) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ gft = DGifOpenFileName(s, NULL);
++#else
++ gft = DGifOpenFileName(s);
++#endif
++ if (gft == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", fname);
+ return -1;
+ }
+@@ -498,8 +514,14 @@ int CheckInputFile(char *fname, char **realname)
+ if (global.max_image_height < gft->SHeight)
+ global.max_image_height = gft->SHeight;
+
+- if (DGifSlurp(gft) != GIF_OK) {
++ if ((ret = DGifSlurp(gft)) != GIF_OK) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString());
++#elif defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString(ret));
++#else
+ PrintGifError();
++#endif
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available
+--
+1.8.4
+
diff --git a/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch b/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch
new file mode 100644
index 000000000000..6450f827b87b
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch
@@ -0,0 +1,26 @@
+--- swftools-0.9.2.orig/src/gif2swf.c 2016-02-16 16:15:39.697992195 -0500
++++ swftools-0.9.2/src/gif2swf.c 2016-02-16 16:25:37.047992256 -0500
+@@ -467,7 +467,11 @@
+
+ free(pal);
+ free(imagedata);
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++ DGifCloseFile(gft, D_GIF_SUCCEEDED);
++#else
+ DGifCloseFile(gft);
++#endif
+
+ return t;
+ }
+@@ -542,7 +546,11 @@
+ fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
+ }
+
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++ DGifCloseFile(gft, D_GIF_SUCCEEDED);
++#else
+ DGifCloseFile(gft);
++#endif
+
+ return 0;
+ }
diff --git a/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch b/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch
new file mode 100644
index 000000000000..9dc6c2ac2560
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch
@@ -0,0 +1,40 @@
+diff -urB swftools-0.9.2.old/lib/Makefile.in swftools-0.9.2.jo/lib/Makefile.in
+--- swftools-0.9.2.old/lib/Makefile.in 2011-10-07 05:35:18.000000000 +0200
++++ swftools-0.9.2.jo/lib/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -3,7 +3,8 @@
+ top_srcdir = @top_srcdir@
+ include ../Makefile.common
+
+-all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
++#all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
++all: librfxswf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
+
+ lame_objects = lame/psymodel.$(O) lame/fft.$(O) lame/newmdct.$(O) lame/quantize.$(O) lame/takehiro.$(O) lame/reservoir.$(O) lame/quantize_pvt.$(O) lame/vbrquantize.$(O) lame/encoder.$(O) lame/id3tag.$(O) lame/version.$(O) lame/tables.$(O) lame/util.$(O) lame/bitstream.$(O) lame/set_get.$(O) lame/VbrTag.$(O) lame/lame.$(O)
+ lame_in_source = @lame_in_source@
+diff -urB swftools-0.9.2.old/Makefile.in swftools-0.9.2.jo/Makefile.in
+--- swftools-0.9.2.old/Makefile.in 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -8,8 +8,8 @@
+ cd m4;$(MAKE) $@
+ @echo making $@ in lib...
+ cd lib;$(MAKE) $@
+- @echo making $@ in lib/pdf...
+- cd lib/pdf;$(MAKE) $@
++# @echo making $@ in lib/pdf...
++# cd lib/pdf;$(MAKE) $@
+ @echo making $@ in lib...
+ cd lib;$(MAKE) $@
+ @echo making $@ in lib/python...
+diff -urB swftools-0.9.2.old/src/Makefile.in swftools-0.9.2.jo/src/Makefile.in
+--- swftools-0.9.2.old/src/Makefile.in 2011-10-07 05:20:17.000000000 +0200
++++ swftools-0.9.2.jo/src/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -3,7 +3,8 @@
+ top_srcdir = @top_srcdir@
+ include ../Makefile.common
+
+-install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
++#install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
++install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2PDF@
+ programs = $(install_programs) swfbytes$(E) ttftool$(E)
+
+ all: $(programs)
diff --git a/media-gfx/swftools/metadata.xml b/media-gfx/swftools/metadata.xml
new file mode 100644
index 000000000000..60b965ace907
--- /dev/null
+++ b/media-gfx/swftools/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>dblaci@dblaci.hu</email>
+ <description>Please assign bugs</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/swftools/swftools-0.9.2-r1.ebuild b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
new file mode 100644
index 000000000000..de698a91aa5b
--- /dev/null
+++ b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="SWF Tools is a collection of SWF manipulation and generation utilities"
+HOMEPAGE="http://www.swftools.org/"
+SRC_URI="http://www.swftools.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ app-text/poppler
+ media-libs/freetype:2
+ media-libs/giflib:0=
+ >=media-libs/t1lib-1.3.1:5
+ virtual/jpeg:0
+"
+DEPEND="${RDEPEND}
+ !<media-libs/ming-0.4.0_rc2
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}_nopdf.patch
+ epatch "${FILESDIR}"/${P}_general.patch
+ epatch "${FILESDIR}"/${P}_giflib.patch
+ epatch "${FILESDIR}"/${P}_giflib5.patch
+}
+
+src_configure() {
+ econf --enable-poppler
+ # disable the python interface; there's no configure switch; bug 118242
+ echo "all install uninstall clean:" > lib/python/Makefile
+}
+
+src_compile() {
+ emake FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ einstall
+ dodoc AUTHORS ChangeLog
+}