diff options
author | David Michael <fedora.dm0@gmail.com> | 2021-01-15 14:44:55 -0500 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-23 22:12:58 +0100 |
commit | f244e0f8b631b8c77b5c1b124b139631f59367ed (patch) | |
tree | 6bf6e1f03b69fcc5a59905428bc9beb9ead01c55 /media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild | |
parent | media-libs/libdvdcss: EAPI 7, drop static-libs (diff) | |
download | gentoo-f244e0f8b631b8c77b5c1b124b139631f59367ed.tar.gz gentoo-f244e0f8b631b8c77b5c1b124b139631f59367ed.tar.bz2 gentoo-f244e0f8b631b8c77b5c1b124b139631f59367ed.zip |
media-libs/libmpeg2: EAPI 7, drop static-libs
Bug: https://bugs.gentoo.org/765565
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: David Michael <fedora.dm0@gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild')
-rw-r--r-- | media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild b/media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild new file mode 100644 index 000000000000..ae71156b99ad --- /dev/null +++ b/media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-minimal + +DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video" +HOMEPAGE="http://libmpeg2.sourceforge.net/" +SRC_URI="http://libmpeg2.sourceforge.net/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" +IUSE="sdl X" + +RDEPEND="sdl? ( media-libs/libsdl ) + X? ( + x11-libs/libXv + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + )" +DEPEND="${RDEPEND} + X? ( x11-base/xorg-proto )" + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +PATCHES=( + "${FILESDIR}"/${P}-altivec.patch + "${FILESDIR}"/${P}-arm-private-symbols.patch + "${FILESDIR}"/${P}-armv4l.patch + "${FILESDIR}"/${P}-global-symbol-test.patch +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-static \ + --enable-shared \ + $(multilib_native_use_enable sdl) \ + $(multilib_native_use_with X x) + + # remove useless subdirs + multilib_is_native_abi || sed -i -e 's/ libvo src//' Makefile || die +} + +multilib_src_compile() { + emake {MPEG2DEC,OPT}_CFLAGS="${CFLAGS}" LIBMPEG2_CFLAGS= +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -type f -name '*.la' -delete || die +} |