You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
inherit eutils autotools-multilib
|
|
|
|
DESCRIPTION="Multiple Image Networkgraphics lib (animated png's)"
|
|
HOMEPAGE="http://www.libmng.com/"
|
|
SRC_URI="mirror://sourceforge/libmng/${P}.tar.xz"
|
|
|
|
LICENSE="libmng"
|
|
SLOT="0/2"
|
|
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
IUSE="lcms static-libs"
|
|
|
|
RDEPEND=">=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}]
|
|
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
|
lcms? ( >=media-libs/lcms-2.5:2[${MULTILIB_USEDEP}] )"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_prepare() {
|
|
epatch \
|
|
"${FILESDIR}"/${P}-stdio.patch \
|
|
"${FILESDIR}"/${P}-jpeg-9a.patch
|
|
emake distclean
|
|
autotools-multilib_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
$(use_enable static-libs static)
|
|
--with-jpeg
|
|
$(use_with lcms lcms2)
|
|
--without-lcms
|
|
)
|
|
|
|
autotools-multilib_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
autotools-multilib_src_install
|
|
|
|
dodoc CHANGES README* doc/{doc.readme,libmng.txt}
|
|
doman doc/man/*.{3,5}
|
|
}
|