diff options
author | David Michael <fedora.dm0@gmail.com> | 2021-03-21 20:00:23 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-03-21 20:00:23 +0100 |
commit | 3e967baacf89e82913e38d733f6d8a6f6f19fd6a (patch) | |
tree | 93d52807a966f6af1fa2e048f37326e6cdb9ec7e /media-libs | |
parent | dev-libs/libyaml: use BDEPEND with EAPI 7 (diff) | |
download | gentoo-3e967baacf89e82913e38d733f6d8a6f6f19fd6a.tar.gz gentoo-3e967baacf89e82913e38d733f6d8a6f6f19fd6a.tar.bz2 gentoo-3e967baacf89e82913e38d733f6d8a6f6f19fd6a.zip |
media-libs/libdvbcsa: EAPI 7, fix SIMD, drop static-libs
The previous revision would not actually use SSE2 if MMX was also
enabled.
This also drops the explicit int size specification for amd64/x86
since these values are automatically determined, and they apply for
other architectures as well. (It computes the size of long for the
default option, and this value is cached in a CONFIG_SITE file with
crossdev, so it works everywhere.)
Closes: https://bugs.gentoo.org/773100
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: David Michael <fedora.dm0@gmail.com>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libdvbcsa/libdvbcsa-1.1.0-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-libs/libdvbcsa/libdvbcsa-1.1.0-r1.ebuild b/media-libs/libdvbcsa/libdvbcsa-1.1.0-r1.ebuild new file mode 100644 index 000000000000..f0fa2c6f9dde --- /dev/null +++ b/media-libs/libdvbcsa/libdvbcsa-1.1.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Free implementation of the DVB Common Scrambling Algorithm - DVB/CSA" +HOMEPAGE="https://www.videolan.org/developers/libdvbcsa.html" +SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse2 debug" + +src_configure() { + local myeconfargs=( + --disable-static + $(use_enable cpu_flags_ppc_altivec altivec) + $(use_enable debug) + ) + + # Enabling MMX makes the configure script ignore SSE2. + if use cpu_flags_x86_sse2; then + myeconfargs+=( + --disable-mmx + --enable-sse2 + ) + else + myeconfargs+=( + $(use_enable cpu_flags_x86_mmx mmx) + --disable-sse2 + ) + fi + + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |