Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2016 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Id$ |
4 |
|
5 |
EAPI=6 |
6 |
|
7 |
inherit toolchain-funcs |
8 |
|
9 |
DESCRIPTION="command-line utility and library for lossy compression of PNG images" |
10 |
HOMEPAGE="http://pngquant.org/" |
11 |
SRC_URI="http://pngquant.org/${P}-src.tar.gz" |
12 |
|
13 |
LICENSE="GPL-3 HPND rwpng" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
16 |
IUSE="debug lcms openmp cpu_flags_x86_sse2" |
17 |
|
18 |
RDEPEND="media-libs/libpng:0= |
19 |
sys-libs/zlib:= |
20 |
lcms? ( media-libs/lcms:2 )" |
21 |
DEPEND="${RDEPEND}" |
22 |
|
23 |
src_configure() { |
24 |
tc-export AR CC |
25 |
# Hand rolled configure script, so not all flags are supported. |
26 |
./configure \ |
27 |
--prefix="${EPREFIX}/usr" \ |
28 |
$(use debug && echo --enable-debug) \ |
29 |
$(use_enable cpu_flags_x86_sse2 sse) \ |
30 |
$(use openmp && tc-has-openmp && echo --with-openmp) \ |
31 |
$(use_with lcms lcms2) \ |
32 |
CFLAGS="${CFLAGS} ${CPPFLAGS}" \ |
33 |
LDFLAGS="${LDFLAGS}" |
34 |
} |
35 |
|
36 |
src_install() { |
37 |
default |
38 |
dodoc CHANGELOG README.md |
39 |
} |