blob: e5d8debea7bfe5ffa98ac6d0cf9a645c4f9d1cff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic toolchain-funcs
DESCRIPTION="create an APNG from multiple PNG files"
HOMEPAGE="https://sourceforge.net/projects/apngasm/"
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
LICENSE="ZLIB 7z? ( LGPL-2.1 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="7z zopfli"
RDEPEND="media-libs/libpng:0=[apng]
sys-libs/zlib
zopfli? ( app-arch/zopfli:= )"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}
PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
src_prepare() {
default
# remove bundled libs
rm -r zopfli zlib libpng || die
if use 7z; then
append-cflags -DFEATURE_7ZIP
else
sed -i '/^SRC_DIRS\s\+=/s/7z//' Makefile || die
fi
if use zopfli; then
append-cflags -DFEATURE_ZOPFLI
sed -i '/^LIBS\s\+=/s/$/ -lzopfli/' Makefile || die
fi
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dobin ${PN}
dodoc readme.txt
}
|