diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-08-19 22:23:11 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-08-19 22:27:58 -0400 |
commit | 516d483da275945f8f488829db96080f9f0a60db (patch) | |
tree | 01c5a9cfde6a9dbb35df39af42f0627e53dfd55a /media-gfx/apngopt | |
parent | app-arch/zopfli: remove old (diff) | |
download | gentoo-516d483da275945f8f488829db96080f9f0a60db.tar.gz gentoo-516d483da275945f8f488829db96080f9f0a60db.tar.bz2 gentoo-516d483da275945f8f488829db96080f9f0a60db.zip |
media-gfx/apngopt: version bump to 1.4
Diffstat (limited to 'media-gfx/apngopt')
-rw-r--r-- | media-gfx/apngopt/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/apngopt/apngopt-1.4.ebuild | 41 | ||||
-rw-r--r-- | media-gfx/apngopt/files/apngopt-1.4-makefile.patch | 27 |
3 files changed, 69 insertions, 0 deletions
diff --git a/media-gfx/apngopt/Manifest b/media-gfx/apngopt/Manifest index bf1a66cbbed6..98aaa82992de 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 000000000000..73de1497c8fb --- /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 000000000000..4ec6084139a0 --- /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) |