Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: Skip some architectures + Seqan app combinations
Could be a bug in gcc or seqan, but the memory requirements on mips{,el} to
compile three of the apps balloons beyond 14GiB, so skip them

If you update this patch (add/remove an architecture/app combo),
then update debian/README.Debian

--- seqan2.orig/apps/razers/CMakeLists.txt
+++ seqan2/apps/razers/CMakeLists.txt
@@ -17,6 +17,16 @@
     return ()
 endif (SEQAN_TRAVIS_BUILD)
 
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "mips")
+    message (STATUS "  Not building razers on mips due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "mipsel")
+    message (STATUS "  Not building razers on mipsel due to memory requirements.")
+    return ()
+endif ()
+
+
 # ----------------------------------------------------------------------------
 # Dependencies
 # ----------------------------------------------------------------------------
--- seqan2.orig/apps/razers3/CMakeLists.txt
+++ seqan2/apps/razers3/CMakeLists.txt
@@ -12,6 +12,21 @@
 
 set (SEQAN_APP_VERSION "3.5.8")
 
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "mips")
+    message (STATUS "  Not building razers3 on mips due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "mipsel")
+    message (STATUS "  Not building razers3 on mipsel due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "sh4")
+    message (STATUS "  Not building razers3 on sh4 due to memory requirements.")
+    return ()
+endif ()
+
+
+
 # ----------------------------------------------------------------------------
 # Dependencies
 # ----------------------------------------------------------------------------
--- seqan2.orig/apps/yara/CMakeLists.txt
+++ seqan2/apps/yara/CMakeLists.txt
@@ -10,6 +10,40 @@
 project (seqan_apps_yara CXX)
 message (STATUS "Configuring apps/yara")
 
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "mips")
+    message (STATUS "  Not building yara on mips due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "mipsel")
+    message (STATUS "  Not building yara on mipsel due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "armhf")
+    message (STATUS "  Not building yara on armhf due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "sh4")
+    message (STATUS "  Not building yara on sh4 due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "armel")
+    message (STATUS "  Not building yara on armel due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "kfreebsd-i386")
+    message (STATUS "  Not building yara on kfreebsd-i386 due to memory requirements.")
+    return ()
+endif ()
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "hurd-i386")
+    message (STATUS "  Not building yara on hurd-i386 due to memory requirements.")
+    return ()
+endif ()
+
+
+
+
+
+
 # ----------------------------------------------------------------------------
 # Dependencies
 # ----------------------------------------------------------------------------
--- seqan2.orig/apps/searchjoin/CMakeLists.txt
+++ seqan2/apps/searchjoin/CMakeLists.txt
@@ -16,6 +16,11 @@
     message (STATUS "  Skipping build and test of searchjoin on Travis CI.")
     return ()
 endif (SEQAN_TRAVIS_BUILD)
+if ("$ENV{DEB_BUILD_ARCH}" STREQUAL "ia64")
+    message (STATUS "  Not building searchjoin on ia64 due to assembler errors.")
+    return ()
+endif ()
+
 
 # ----------------------------------------------------------------------------
 # Dependencies
