File kodi.aarch64.patch of Package kodi

--- configure.ac.orig
+++ configure.ac
@@ -624,13 +624,6 @@ case $host in
      ARCH="aarch64"
      use_arch="aarch64"
      use_neon=yes
-     # Check whether --enable-gl was given.
-     if test "${enable_gl+set}" = set; then :
-       enableval=$enable_gl; use_gl=$enableval
-     else
-       use_gl=no
-       use_gles=yes
-     fi
      USE_STATIC_FFMPEG=1
      ;;
   arm*-*linux-android*)
--- m4/xbmc_arch.m4.orig
+++ m4/xbmc_arch.m4
@@ -23,6 +23,9 @@ case $build in
   powerpc64-*-linux-gnu*|powerpc64-*-linux-uclibc*)
      AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_POWERPC64")
      ;;
+  aarch64-*-linux-gnu*|aarch64-*-linux-uclibc*)
+     AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
+     ;;
   arm*-*-linux-gnu*|arm*-*-linux-uclibc*)
      AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
      ;;
--- tools/depends/configure.ac.orig
+++ tools/depends/configure.ac
@@ -120,6 +120,9 @@ platform_cc=gcc
 platform_cxx=g++
 
 case $build in
+  aarch64*-*-linux-gnu*|aarch*-*-linux-be*)
+    build_os="linux"
+  ;;
   arm*-*-linux-gnu*|arm*-*-linux-uclibc*)
     build_os="linux"
   ;;