Diff libpng-compat-1.2.59-r1 with a libpng-compat-1.5.30-r1
/usr/portage/media-libs/libpng-compat/libpng-compat-1.5.30-r1.ebuild 2023-10-09 14:52:31.692368406 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
# This ebuild is only for the libpng12.so.0 SONAME for ABI compat |
|
6 |
# This ebuild is only for the libpng15.so.15 SONAME for ABI compat |
|
7 | 7 | |
8 | 8 |
inherit libtool multilib-minimal |
9 | 9 | |
10 |
MY_P=libpng-${PV} |
|
10 |
MY_P="libpng-${PV}" |
|
11 | 11 |
DESCRIPTION="Portable Network Graphics library" |
12 | 12 |
HOMEPAGE="http://www.libpng.org/" |
13 | 13 |
SRC_URI="mirror://sourceforge/libpng/${MY_P}.tar.xz" |
14 |
S="${WORKDIR}"/${MY_P} |
|
14 |
S="${WORKDIR}/${MY_P}" |
|
15 | 15 | |
16 | 16 |
LICENSE="libpng" |
17 |
SLOT="1.2" |
|
18 |
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux" |
|
17 |
SLOT="1.5" |
|
18 |
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
|
19 |
IUSE="cpu_flags_arm_neon" |
|
19 | 20 | |
20 | 21 |
RDEPEND=" |
21 |
>=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] |
|
22 |
!=media-libs/libpng-1.2* |
|
22 |
sys-libs/zlib:=[${MULTILIB_USEDEP}] |
|
23 |
!=media-libs/libpng-1.5* |
|
23 | 24 |
" |
24 | 25 |
DEPEND="${RDEPEND}" |
25 | 26 | |
... | ... | |
27 | 28 |
# old library for compatibility. Use libpng for the full contents. |
28 | 29 |
DOCS=() |
29 | 30 | |
31 |
pkg_setup() { |
|
32 |
local _preserved_lib="${EROOT}/usr/$(get_libdir)/libpng15.so.15" |
|
33 |
[[ -e ${_preserved_lib} ]] && rm -f "${_preserved_lib}" |
|
34 |
} |
|
35 | ||
30 | 36 |
src_prepare() { |
31 | 37 |
default |
32 | 38 | |
... | ... | |
34 | 40 |
} |
35 | 41 | |
36 | 42 |
multilib_src_configure() { |
37 |
ECONF_SOURCE="${S}" econf |
|
43 |
local myeconfargs=( |
|
44 |
$(use_enable cpu_flags_arm_neon arm-neon check) |
|
45 |
) |
|
46 | ||
47 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
|
38 | 48 |
} |
39 | 49 | |
40 | 50 |
multilib_src_compile() { |
41 |
emake libpng12.la |
|
51 |
emake libpng15.la |
|
42 | 52 |
} |
43 | 53 | |
44 | 54 |
multilib_src_install() { |
45 |
newlib.so .libs/libpng12.so.0.* libpng12.so.0 |
|
55 |
newlib.so .libs/libpng15.so.15.* libpng15.so.15 |
|
46 | 56 |
} |