diff options
author | Peter Levine <plevine457@gmail.com> | 2017-10-24 20:45:46 -0400 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-11-18 19:09:34 +0100 |
commit | 33e8da86fc64502e76f5958bea4b2d99ba2284f8 (patch) | |
tree | 1ae3685c33d7f9a96a6ff9ae030eb974f179ca9d /media-libs/libpostproc | |
parent | dev-util/ragel: Fix building with GCC-6 (diff) | |
download | gentoo-33e8da86fc64502e76f5958bea4b2d99ba2284f8.tar.gz gentoo-33e8da86fc64502e76f5958bea4b2d99ba2284f8.tar.bz2 gentoo-33e8da86fc64502e76f5958bea4b2d99ba2284f8.zip |
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
Diffstat (limited to 'media-libs/libpostproc')
-rw-r--r-- | media-libs/libpostproc/files/libpostproc-10.20140517-support-MMXEXT.patch | 26 | ||||
-rw-r--r-- | media-libs/libpostproc/libpostproc-10.20140517-r1.ebuild | 4 |
2 files changed, 30 insertions, 0 deletions
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 000000000000..8f7d5adc0baf --- /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 <plevine457@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 def8f1fe3e3c..1a23881842a4 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 |