dont return a system path if cmake's 'WITH_INSTALL_PORTABLE' is enabled. this way...
[blender.git] / intern / ghost / intern / GHOST_SystemPathsX11.cpp
index 30c45de47bcc6691691c59ecbd99bffd60d565e1..dd8935732c504974a175336b4d0043612d47bad0 100644 (file)
 #include <stdio.h> // for fprintf only
 #include <cstdlib> // for exit
 
-#ifndef PREFIX
-#  define PREFIX "/usr/local"
-#endif
-
-
 using namespace std;
 
 GHOST_SystemPathsX11::GHOST_SystemPathsX11()
@@ -60,7 +55,12 @@ GHOST_SystemPathsX11::~GHOST_SystemPathsX11()
 
 const GHOST_TUns8* GHOST_SystemPathsX11::getSystemDir() const
 {
+       /* no prefix assumes a portable build which only uses bundled scripts */
+#ifdef PREFIX
        return (GHOST_TUns8*) PREFIX "/share";
+#else
+       return NULL;
+#endif
 }
 
 const GHOST_TUns8* GHOST_SystemPathsX11::getUserDir() const