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.
57 lines
1.3 KiB
57 lines
1.3 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI=8
|
||
6 years ago
|
|
||
2 years ago
|
# This ebuild is only for the libpng15.so.15 SONAME for ABI compat
|
||
6 years ago
|
|
||
3 years ago
|
inherit libtool multilib-minimal
|
||
6 years ago
|
|
||
4 years ago
|
MY_P="libpng-${PV}"
|
||
6 years ago
|
DESCRIPTION="Portable Network Graphics library"
|
||
|
HOMEPAGE="http://www.libpng.org/"
|
||
3 years ago
|
SRC_URI="mirror://sourceforge/libpng/${MY_P}.tar.xz"
|
||
4 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
6 years ago
|
|
||
|
LICENSE="libpng"
|
||
|
SLOT="1.5"
|
||
3 years ago
|
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||
3 years ago
|
IUSE="cpu_flags_arm_neon"
|
||
6 years ago
|
|
||
2 years ago
|
RDEPEND="
|
||
|
sys-libs/zlib:=[${MULTILIB_USEDEP}]
|
||
|
!=media-libs/libpng-1.5*
|
||
|
"
|
||
4 years ago
|
DEPEND="${RDEPEND}"
|
||
6 years ago
|
|
||
3 years ago
|
# Don't install any docs here because we're literally just installing the
|
||
|
# old library for compatibility. Use libpng for the full contents.
|
||
|
DOCS=()
|
||
6 years ago
|
|
||
|
pkg_setup() {
|
||
4 years ago
|
local _preserved_lib="${EROOT}/usr/$(get_libdir)/libpng15.so.15"
|
||
6 years ago
|
[[ -e ${_preserved_lib} ]] && rm -f "${_preserved_lib}"
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
2 years ago
|
|
||
6 years ago
|
elibtoolize
|
||
|
}
|
||
|
|
||
|
multilib_src_configure() {
|
||
4 years ago
|
local myeconfargs=(
|
||
3 years ago
|
$(use_enable cpu_flags_arm_neon arm-neon check)
|
||
4 years ago
|
)
|
||
2 years ago
|
|
||
4 years ago
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||
6 years ago
|
}
|
||
|
|
||
|
multilib_src_compile() {
|
||
|
emake libpng15.la
|
||
|
}
|
||
|
|
||
|
multilib_src_install() {
|
||
|
newlib.so .libs/libpng15.so.15.* libpng15.so.15
|
||
|
}
|