diff options
-rw-r--r-- | media-gfx/apng2gif/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/apng2gif/apng2gif-1.6.ebuild | 35 | ||||
-rw-r--r-- | media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch | 10 | ||||
-rw-r--r-- | media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch | 17 |
4 files changed, 70 insertions, 2 deletions
diff --git a/media-gfx/apng2gif/ChangeLog b/media-gfx/apng2gif/ChangeLog index b68e852df28e..7e7a645303da 100644 --- a/media-gfx/apng2gif/ChangeLog +++ b/media-gfx/apng2gif/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/apng2gif -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/apng2gif/ChangeLog,v 1.6 2012/02/23 07:55:50 radhermit Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/apng2gif/ChangeLog,v 1.7 2013/12/17 10:26:21 radhermit Exp $ + +*apng2gif-1.6 (17 Dec 2013) + + 17 Dec 2013; Tim Harder <radhermit@gentoo.org> +apng2gif-1.6.ebuild, + +files/apng2gif-1.6-gcc-4.3.patch, +files/apng2gif-1.6-makefile.patch: + Version bump. 23 Feb 2012; Tim Harder <radhermit@gentoo.org> -apng2gif-1.3.ebuild: Remove old. diff --git a/media-gfx/apng2gif/apng2gif-1.6.ebuild b/media-gfx/apng2gif/apng2gif-1.6.ebuild new file mode 100644 index 000000000000..27c6c46c1a30 --- /dev/null +++ b/media-gfx/apng2gif/apng2gif-1.6.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/apng2gif/apng2gif-1.6.ebuild,v 1.1 2013/12/17 10:26:21 radhermit Exp $ + +EAPI="5" + +inherit toolchain-funcs eutils + +DESCRIPTION="create a GIF from an APNG" +HOMEPAGE="http://sourceforge.net/projects/apng2gif/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-libs/zlib + media-libs/libpng:0=" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + epatch "${FILESDIR}"/${P}-gcc-4.3.patch + + tc-export CXX +} + +src_install() { + dobin ${PN} + dodoc readme.txt +} diff --git a/media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch b/media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch new file mode 100644 index 000000000000..b3d32647b19b --- /dev/null +++ b/media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch @@ -0,0 +1,10 @@ +--- apng2gif-1.6-src/apng2gif.cpp ++++ apng2gif-1.6-src/apng2gif.cpp +@@ -30,6 +30,7 @@ + */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+ #include "zlib.h"
diff --git a/media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch b/media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch new file mode 100644 index 000000000000..c004a3c5c0c4 --- /dev/null +++ b/media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch @@ -0,0 +1,17 @@ +--- apng2gif-1.6-src/Makefile ++++ apng2gif-1.6-src/Makefile +@@ -1,11 +1,10 @@ + PACKAGE = apng2gif +-CC = gcc +-CFLAGS = -Wall -pedantic +-CFLAGS_OPT = -O2 ++CXX ?= g++ ++CFLAGS += -Wall -pedantic + LIBS = -lstdc++ -lm -lpng -lz + + all : +- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o apng2gif apng2gif.cpp -s $(LIBS) ++ $(CXX) $(CFLAGS) $(LDFLAGS) -o apng2gif apng2gif.cpp $(LIBS) + + .PHONY : clean + |