Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: Try patch from upstream to fix kfreebsd/hurd builds
Forwarded: https://github.com/seqan/seqan/issues/1861#issuecomment-252621210
--- seqan2.orig/util/cmake/FindSeqAn.cmake
+++ seqan2/util/cmake/FindSeqAn.cmake
@@ -287,7 +287,7 @@
 
 # librt, libpthread -- implicit, on Linux only
 
-if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") OR (${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") OR (${CMAKE_SYSTEM_NAME} STREQUAL "GNU"))
   set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} rt pthread)
 elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") OR (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD"))
   set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} pthread)
