* [gentoo-commits] repo/gentoo:master commit in: media-gfx/apngopt/files/, media-gfx/apngopt/
@ 2016-08-20 2:28 Tim Harder
0 siblings, 0 replies; only message in thread
From: Tim Harder @ 2016-08-20 2:28 UTC (permalink / raw
To: gentoo-commits
commit: 516d483da275945f8f488829db96080f9f0a60db
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 20 02:23:11 2016 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Aug 20 02:27:58 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=516d483d
media-gfx/apngopt: version bump to 1.4
media-gfx/apngopt/Manifest | 1 +
media-gfx/apngopt/apngopt-1.4.ebuild | 41 ++++++++++++++++++++++
media-gfx/apngopt/files/apngopt-1.4-makefile.patch | 27 ++++++++++++++
3 files changed, 69 insertions(+)
diff --git a/media-gfx/apngopt/Manifest b/media-gfx/apngopt/Manifest
index bf1a66c..98aaa82 100644
--- a/media-gfx/apngopt/Manifest
+++ b/media-gfx/apngopt/Manifest
@@ -1 +1,2 @@
DIST apngopt-1.2-src.zip 12333 SHA256 a12b251da0f2485bfbc7434b4cc00609beb8e833d6657fd5ba2aaf3bd681b04e SHA512 0e09e7d2f3fab450904cb20fc515b18e46cdb6f907d9acbcd7df1400de2f5c985a81b55f7a11c6821cf234951ee53c95c3c1cc81c03bda6bf136069af85b8c76 WHIRLPOOL d4685fcc6e885660da2c02bf1c37a098919062b3cfa45783b8f11f04eda63ceba7f849a52a6a85a328e52bb73847fdd8873952c86e7da3476016b4ce1d3699d2
+DIST apngopt-1.4-src.zip 577703 SHA256 c96047a893645fbd4afa5631b5d1728db3e6874ba8d76637de34355294a38bcf SHA512 8dd97ca6fdd10b1285c3a850ab0f6e14113df0b4a607877a6fb7c5bacded02432504e3af87a43c4aa660bad7226f300af8e0967368ca1eef00c9df7f624d578c WHIRLPOOL d860b109bf897e27168af1b68f3b8c8365830434f1eeca69e42a53276e2d413adbf8f824d1812312b6bf7100af3a9ede1560fc4c5918dfb34610813b5b664a35
diff --git a/media-gfx/apngopt/apngopt-1.4.ebuild b/media-gfx/apngopt/apngopt-1.4.ebuild
new file mode 100644
index 0000000..73de149
--- /dev/null
+++ b/media-gfx/apngopt/apngopt-1.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="optimize APNG images"
+HOMEPAGE="https://sourceforge.net/projects/apng/"
+SRC_URI="mirror://sourceforge/apng/${P}-src.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/zlib
+ >=app-arch/zopfli-1.0.1-r2:=
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_prepare() {
+ default
+ rm -rf libpng zlib zopfli || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngopt/files/apngopt-1.4-makefile.patch b/media-gfx/apngopt/files/apngopt-1.4-makefile.patch
new file mode 100644
index 0000000..4ec6084
--- /dev/null
+++ b/media-gfx/apngopt/files/apngopt-1.4-makefile.patch
@@ -0,0 +1,27 @@
+Use system zopfli library and respect CFLAGS.
+
+--- apngopt-1.4-src/Makefile
++++ apngopt-1.4-src/Makefile
+@@ -1,10 +1,10 @@
+ PACKAGE = apngopt
+ CC = gcc
+-SRC_DIRS = . 7z zopfli
++SRC_DIRS = . 7z
+ CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
++#CFLAGS_OPT = -O2
+ CFLAGS_7Z = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses
+-LIBS = -lstdc++ -lm -lpng -lz
++LIBS = -lstdc++ -lm -lpng -lz -lzopfli
+
+ INCUDE_DIRS := $(addprefix -I./, $(SRC_DIRS))
+ OBJ_DIRS := $(addprefix obj/, $(SRC_DIRS))
+@@ -16,7 +16,7 @@
+ all : $(PACKAGE)
+
+ $(PACKAGE) : objdirs $(OBJECTS)
+- $(CC) -o $@ $(OBJECTS) -s $(LIBS)
++ $(CC) -o $@ $(OBJECTS) $(LIBS)
+
+ objdirs :
+ mkdir -p $(OBJ_DIRS)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-20 2:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20 2:28 [gentoo-commits] repo/gentoo:master commit in: media-gfx/apngopt/files/, media-gfx/apngopt/ Tim Harder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox