$OpenBSD: patch-src_supertux_main_cpp,v 1.3 2019/02/28 17:42:53 thfr Exp $

fix datadir on OpenBSD

Index: src/supertux/main.cpp
--- src/supertux/main.cpp.orig
+++ src/supertux/main.cpp
@@ -204,10 +204,7 @@ class PhysfsSubsystem final (public)
       }
       else
       {
-        // if the game is not run from the source directory, try to find
-        // the global install location
-        datadir = basepath.substr(0, basepath.rfind(INSTALL_SUBDIR_BIN));
-        datadir = FileSystem::join(datadir, INSTALL_SUBDIR_SHARE);
+        datadir = "${PREFIX}/share/supertux2";
       }
     }
 
