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 | |
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')
-rw-r--r-- | media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch | 4 | ||||
-rw-r--r-- | media-libs/libmpeg2/files/libmpeg2-0.5.1-armv4l.patch | 5 | ||||
-rw-r--r-- | media-libs/libmpeg2/libmpeg2-0.5.1-r3.ebuild | 59 |
3 files changed, 63 insertions, 5 deletions
diff --git a/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch b/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch index 617fe7509951..1c269695b8b4 100644 --- a/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch +++ b/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch @@ -1,5 +1,5 @@ ---- configure.ac.bak 2010-05-25 17:12:14.756245990 +0000 -+++ configure.ac 2010-05-25 17:11:51.629581723 +0000 +--- a/configure.ac 2010-05-25 17:12:14.756245990 +0000 ++++ b/configure.ac 2010-05-25 17:11:51.629581723 +0000 @@ -79,11 +79,10 @@ CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS" AC_MSG_CHECKING([if <altivec.h> is needed]) diff --git a/media-libs/libmpeg2/files/libmpeg2-0.5.1-armv4l.patch b/media-libs/libmpeg2/files/libmpeg2-0.5.1-armv4l.patch index bd9561e0c46f..be81db45653b 100644 --- a/media-libs/libmpeg2/files/libmpeg2-0.5.1-armv4l.patch +++ b/media-libs/libmpeg2/files/libmpeg2-0.5.1-armv4l.patch @@ -1,6 +1,5 @@ -diff -urNp libmpeg2.orig/libmpeg2/motion_comp_arm_s.S libmpeg2/libmpeg2/motion_comp_arm_s.S ---- libmpeg2.orig/libmpeg2/motion_comp_arm_s.S 2008-07-09 21:16:05.000000000 +0200 -+++ libmpeg2/libmpeg2/motion_comp_arm_s.S 2009-11-20 19:55:22.000000000 +0100 +--- a/libmpeg2/motion_comp_arm_s.S 2008-07-09 21:16:05.000000000 +0200 ++++ b/libmpeg2/motion_comp_arm_s.S 2009-11-20 19:55:22.000000000 +0100 @@ -19,6 +19,16 @@ @ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 +} |