Package: ioquake3
Version: 1.36+u20150412+dfsg1-2
Severity: wishlist
Tags: patch
User: debian-...@lists.debian.org
Usertags: arm64

It would be great if you'd support ARM64.  I've attached a patch.

Note that I sent the upstream parts to GitHub:
https://github.com/ioquake/ioq3/pull/128

-- 
Martin Michlmayr
Linux for HP Helion OpenStack, Hewlett-Packard
diff -urN a/debian/patches/Add-arm64-support.patch b/debian/patches/Add-arm64-support.patch
--- a/debian/patches/Add-arm64-support.patch	1970-01-01 00:00:00.000000000 +0000
+++ b/debian/patches/Add-arm64-support.patch	2015-06-30 12:23:05.139091000 +0000
@@ -0,0 +1,30 @@
+Description: Add ARM64 support
+Author: Martin Michlmayr <t...@cyrius.com>
+
+---
+Bug: https://github.com/ioquake/ioq3/pull/128
+
+--- ioquake3-1.36+u20150412+dfsg1.orig/Makefile
++++ ioquake3-1.36+u20150412+dfsg1/Makefile
+@@ -328,6 +328,10 @@ ifneq (,$(findstring "$(PLATFORM)", "lin
+   else
+   ifeq ($(ARCH),s390x)
+     LIB=lib64
++  else
++  ifeq ($(ARCH),aarch64)
++    LIB=lib64
++  endif
+   endif
+   endif
+   endif
+--- ioquake3-1.36+u20150412+dfsg1.orig/code/qcommon/q_platform.h
++++ ioquake3-1.36+u20150412+dfsg1/code/qcommon/q_platform.h
+@@ -207,6 +207,8 @@ Foundation, Inc., 51 Franklin St, Fifth
+ #define ARCH_STRING "sparc"
+ #elif defined __arm__
+ #define ARCH_STRING "arm"
++#elif defined __aarch64__
++#define ARCH_STRING "aarch64"
+ #elif defined __cris__
+ #define ARCH_STRING "cris"
+ #elif defined __hppa__
diff -urN a/debian/patches/series b/debian/patches/series
--- a/debian/patches/series	2015-05-04 07:55:37.000000000 +0000
+++ b/debian/patches/series	2015-06-30 12:18:37.229091000 +0000
@@ -6,3 +6,4 @@
 Don-t-crash-if-more-than-128-modes-are-available.patch
 ui-reinstate-minimal-code-to-determine-whether-this-.patch
 Allow-__DATE__-to-be-avoided-for-reproducible-builds.patch
+Add-arm64-support.patch
diff -urN a/debian/q3arch b/debian/q3arch
--- a/debian/q3arch	2015-05-04 07:55:37.000000000 +0000
+++ b/debian/q3arch	2015-06-30 12:00:28.000000000 +0000
@@ -58,7 +58,7 @@
         Q3ARCH=mips
 	;;
 
-    x86_64|s390|s390x|ia64|sparc|hppa|mips|arm)
+    x86_64|s390|s390x|ia64|sparc|hppa|mips|arm|aarch64)
         Q3ARCH=${DEB_X_GNU_CPU}
 	;;
 

Reply via email to