diff options
author | David Seifert <soap@gentoo.org> | 2021-03-13 18:06:37 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-03-13 18:06:37 +0100 |
commit | e5950f6ca763c86aa63b41293da35726dcb84b85 (patch) | |
tree | 75929e52e432ff67e02862cf755174c6617e7109 | |
parent | media-libs/libmng: Take over maintenance (diff) | |
download | gentoo-e5950f6ca763c86aa63b41293da35726dcb84b85.tar.gz gentoo-e5950f6ca763c86aa63b41293da35726dcb84b85.tar.bz2 gentoo-e5950f6ca763c86aa63b41293da35726dcb84b85.zip |
media-libs/libmng: [QA] Remove .la files and 'static-libs'
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r-- | media-libs/libmng/libmng-2.0.3-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/media-libs/libmng/libmng-2.0.3-r1.ebuild b/media-libs/libmng/libmng-2.0.3-r1.ebuild new file mode 100644 index 000000000000..02fad4102451 --- /dev/null +++ b/media-libs/libmng/libmng-2.0.3-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-minimal + +DESCRIPTION="Multiple Image Networkgraphics lib (animated png's)" +HOMEPAGE="https://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 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="lcms" + +RDEPEND=" + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] + lcms? ( >=media-libs/lcms-2.5:2[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-jpeg-9a.patch ) + +src_prepare() { + default + # effect of 'make distclean' + rm Makefile config.h config.log config.status libmng.pc stamp-h1 || die + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-static \ + --with-jpeg \ + --without-lcms \ + $(use_with lcms lcms2) +} + +multilib_src_install_all() { + einstalldocs + dodoc doc/{doc.readme,libmng.txt} + + doman doc/man/*.{3,5} + + # no static archives + find "${ED}" -name '*.la' -delete || die +} |