commit: 33e8da86fc64502e76f5958bea4b2d99ba2284f8 Author: Peter Levine <plevine457 <AT> gmail <DOT> com> AuthorDate: Wed Oct 25 00:45:46 2017 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sat Nov 18 18:09:34 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33e8da86
media-libs/libpostproc: Fix undeclared macro Closes: https://bugs.gentoo.org/621172 Package-Manager: Portage-2.3.11, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/6042 .../libpostproc-10.20140517-support-MMXEXT.patch | 26 ++++++++++++++++++++++ .../libpostproc/libpostproc-10.20140517-r1.ebuild | 4 ++++ 2 files changed, 30 insertions(+) diff --git a/media-libs/libpostproc/files/libpostproc-10.20140517-support-MMXEXT.patch b/media-libs/libpostproc/files/libpostproc-10.20140517-support-MMXEXT.patch new file mode 100644 index 00000000000..8f7d5adc0ba --- /dev/null +++ b/media-libs/libpostproc/files/libpostproc-10.20140517-support-MMXEXT.patch @@ -0,0 +1,26 @@ +Bug: https://bugs.gentoo.org/621172 +Upstream commit: https://github.com/lu-zero/postproc/pull/1/commits/d0c9ca711ef69889ebd0e44da90dccc722fe663e + +From d0c9ca711ef69889ebd0e44da90dccc722fe663e Mon Sep 17 00:00:00 2001 +From: Peter-Levine <plevine...@gmail.com> +Date: Tue, 24 Oct 2017 19:24:10 -0400 +Subject: [PATCH] Use AV_CPU_FLAG_MMXEXT + +Use AV_CPU_FLAG_MMXEXT instead of AV_CPU_FLAG_MMX2. +--- + libpostproc/postprocess.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c +index 63b6822..951d1f0 100644 +--- a/libpostproc/postprocess.c ++++ b/libpostproc/postprocess.c +@@ -961,7 +961,7 @@ static int get_cpu_caps(int cpuCaps) + + if (caps & AV_CPU_FLAG_MMX) + cpuCaps |= PP_CPU_CAPS_MMX; +- if (caps & AV_CPU_FLAG_MMX2) ++ if (caps & AV_CPU_FLAG_MMXEXT) + cpuCaps |= PP_CPU_CAPS_MMX2; + if (caps & AV_CPU_FLAG_3DNOW) + cpuCaps |= PP_CPU_CAPS_3DNOW; diff --git a/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild b/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild index def8f1fe3e3..1a23881842a 100644 --- a/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild +++ b/media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild @@ -43,6 +43,10 @@ RDEPEND=" " DEPEND="${RDEPEND}" +src_prepare() { + epatch "${FILESDIR}"/${P}-support-MMXEXT.patch +} + multilib_src_configure() { local myconf=( ${EXTRA_LIBPOSTPROC_CONF} ) for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do