Package: mplayer2
Version: 2.0-728-g2c378c7-2
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

Currently mplayer2 doesn't built on ppc64el because this architecture/processor
is not known by the configure script, causing the following failure:

        Error: unsupported architecture UNKNOWN
        The architecture of your CPU (UNKNOWN) is not supported by this 
configure script

        It seems nobody has ported MPlayer to your OS or CPU type yet.

        Check "config.log" if you do not understand why it failed.
        make[1]: *** [override_dh_auto_configure] Error 1
        make[1]: Leaving directory `/«PKGBUILDDIR»'
        make: *** [build] Error 2
        dpkg-buildpackage: error: debian/rules build gave error exit status 2

This patch simply add ppc64le as a ppc64 architecture. It enable the package to
be built from source on ppc64el then.

Thank you
Breno
Index: mplayer2-2.0-728-g2c378c7/configure
===================================================================
--- mplayer2-2.0-728-g2c378c7.orig/configure
+++ mplayer2-2.0-728-g2c378c7/configure
@@ -222,7 +222,7 @@ x86() {
 
 ppc() {
   case "$host_arch" in
-    ppc|ppc64|powerpc|powerpc64) return 0;;
+    ppc|ppc64le|ppc64|powerpc|powerpc64) return 0;;
     *) return 1;;
   esac
 }
@@ -1098,6 +1098,7 @@ if test -z "$_target" ; then
       ia64) host_arch=ia64 ;;
       macppc|ppc) host_arch=ppc ;;
       ppc64) host_arch=ppc64 ;;
+      ppc64le) host_arch=ppc64 ;;
       alpha) host_arch=alpha ;;
       sparc) host_arch=sparc ;;
       sparc64) host_arch=sparc64 ;;
@@ -1764,12 +1765,12 @@ case "$host_arch" in
     iproc='sh4'
     ;;
 
-  ppc|ppc64|powerpc|powerpc64)
+  ppc|ppc64|ppc64le|powerpc|powerpc64)
     arch='ppc'
     def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'
     iproc='ppc'
 
-    if test "$host_arch" = "ppc64" -o "$host_arch" = "powerpc64" ; then
+    if test "$host_arch" = "ppc64" -o "$host_arch" = "ppc64le" -o "$host_arch" = "powerpc64" ; then
       subarch='ppc64'
       def_fast_64bit='#define HAVE_FAST_64BIT 1'
     fi
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to