diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-12-14 02:08:08 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-12-14 02:08:39 +0100 |
commit | 0605f361b5e371c6b82dab684128be5642ccc204 (patch) | |
tree | 6ae5e7d304173591f1ae263514809c44eea8155a /media-gfx/pngquant | |
parent | media-gfx/libimagequant: bump to v2.12.2 (diff) | |
download | gentoo-0605f361b5e371c6b82dab684128be5642ccc204.tar.gz gentoo-0605f361b5e371c6b82dab684128be5642ccc204.tar.bz2 gentoo-0605f361b5e371c6b82dab684128be5642ccc204.zip |
media-gfx/pngquant: bump to v2.12.2
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-gfx/pngquant')
-rw-r--r-- | media-gfx/pngquant/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch | 17 | ||||
-rw-r--r-- | media-gfx/pngquant/pngquant-2.12.2.ebuild | 51 |
3 files changed, 69 insertions, 0 deletions
diff --git a/media-gfx/pngquant/Manifest b/media-gfx/pngquant/Manifest index f79cf2c93743..81e9b100501d 100644 --- a/media-gfx/pngquant/Manifest +++ b/media-gfx/pngquant/Manifest @@ -1,2 +1,3 @@ DIST pngquant-2.11.4-src.tar.gz 142149 BLAKE2B eccf0c7a279d62981cfdf44ab0e378b2331377cd892019161b453edc7ffe73616a2aa83a07cf5f8d7292a0f96bf25612c23129348463cac73647021eae44f160 SHA512 171949977e1fd71c05bd75552f2e62535f6c15f31c3192cbe31df7451091634a6fbbfd08b47dd040f353af3b5f41fcc13db4421a212ca07cc6836f029635ddd0 DIST pngquant-2.11.7-src.tar.gz 141959 BLAKE2B 00e36a818a2150aeb3c927daeb8621bafa41497a6fe32afe30e41ad04d788946390f382139aea9878f58fc7a84fdbaf597681c9d8769e0e23b785a10d2e0233c SHA512 5325577dcb16acf5dff81a5f3bcf8cfa2a12df07a7c2308ebb9a343b74e56ea21184ed3f87819122c8bb97b4a7ffd3b61046c60f7f339da9a93e76dfa17ebee6 +DIST pngquant-2.12.2-src.tar.gz 143404 BLAKE2B b06b1185fdeb1990e6b6f0cb77e33051729731fc2c2f4b1f618bd9077057354eabc21405872c938dbdf5395040860b4a884e9780bbd439da36f2af61d53e82a9 SHA512 ed82e0a57d9f4f3ee40258c4cbbf7ed086177dee1e2afdcb7d308f779c83fb2be9c7226c0713b9c72e6b6c22161dbaca3d14f2bdc2f0468daa608be80e9ef1c9 diff --git a/media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch b/media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch new file mode 100644 index 000000000000..c290af36fe5f --- /dev/null +++ b/media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch @@ -0,0 +1,17 @@ +--- a/configure ++++ b/configure +@@ -152,12 +152,12 @@ rm -f pngquant-gcccheck pngquant-gcccheck.c + status "Compiler" "$CC" + + # init flags +-CFLAGS=${CFLAGS:--fno-math-errno -funroll-loops -fomit-frame-pointer -Wall} ++CFLAGS=${CFLAGS:--fno-math-errno -funroll-loops -fomit-frame-pointer} + cflags "-std=c99 -I." + + # DEBUG + if [ -z "$DEBUG" ]; then +- cflags "-O3 -DNDEBUG" ++ cflags "-DNDEBUG" + status "Debug" "no" + else + cflags "-O1 -g" diff --git a/media-gfx/pngquant/pngquant-2.12.2.ebuild b/media-gfx/pngquant/pngquant-2.12.2.ebuild new file mode 100644 index 000000000000..5bc16502eb65 --- /dev/null +++ b/media-gfx/pngquant/pngquant-2.12.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="command-line utility and library for lossy compression of PNG images" +HOMEPAGE="https://pngquant.org/" +SRC_URI="https://pngquant.org/${P}-src.tar.gz" + +LICENSE="GPL-3 HPND rwpng" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug lcms openmp cpu_flags_x86_sse2" + +RDEPEND="media-libs/libpng:0= + media-gfx/libimagequant:= + sys-libs/zlib:= + lcms? ( media-libs/lcms:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch ) + +src_prepare() { + default + + # avoid silent fallback to bundled lib + rm -rv lib || die +} + +src_configure() { + tc-export AR CC + # Hand rolled configure script, so not all flags are supported. + ./configure \ + --prefix="${EPREFIX}/usr" \ + --with-libimagequant \ + $(use debug && echo --enable-debug) \ + $(use_enable cpu_flags_x86_sse2 sse) \ + $(use openmp && tc-has-openmp && echo --with-openmp) \ + $(use_with lcms lcms2) \ + CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin ${PN} + doman ${PN}.1 + dodoc CHANGELOG README.md +} |