commit:     af8937c981e9c56681a1bb961cdcee20a47866ac
Author:     Han Gao <rabenda.cn <AT> gmail <DOT> com>
AuthorDate: Sat Mar 12 13:26:50 2022 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 10:43:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af8937c9

media-video/mplayer: add riscv support

Bug: https://bugs.gentoo.org/812855
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Han Gao <rabenda.cn <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 media-video/mplayer/files/mplayer-1.4-riscv-support.patch | 14 ++++++++++++++
 media-video/mplayer/mplayer-1.4-r1.ebuild                 |  2 ++
 2 files changed, 16 insertions(+)

diff --git a/media-video/mplayer/files/mplayer-1.4-riscv-support.patch 
b/media-video/mplayer/files/mplayer-1.4-riscv-support.patch
new file mode 100644
index 000000000000..282cdf3cef85
--- /dev/null
+++ b/media-video/mplayer/files/mplayer-1.4-riscv-support.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/812855
+
+diff --git a/configure b/configure
+index d1aa8cd..bdac866 100755
+--- a/configure
++++ b/configure
+@@ -1761,6 +1761,7 @@ if test -z "$_target" ; then
+       nios2) host_arch=nios2 ;;
+       vax) host_arch=vax ;;
+       xtensa*) host_arch=xtensa ;;
++      riscv*) host_arch=generic ;;
+       *) host_arch=UNKNOWN ;;
+   esac
+   }

diff --git a/media-video/mplayer/mplayer-1.4-r1.ebuild 
b/media-video/mplayer/mplayer-1.4-r1.ebuild
index e9da1de4a0b1..a73a14ac67fb 100644
--- a/media-video/mplayer/mplayer-1.4-r1.ebuild
+++ b/media-video/mplayer/mplayer-1.4-r1.ebuild
@@ -175,6 +175,8 @@ REQUIRED_USE="
        xv? ( X )"
 RESTRICT="faac? ( bindist )"
 
+PATCHES=( "${FILESDIR}/${P}-riscv-support.patch" )
+
 pkg_setup() {
        if [[ ${PV} == *9999* ]]; then
                elog

Reply via email to