freebsd-ports/multimedia/jahshaka/files/patch-jah_Source_jahshaka.cpp
Pav Lucistnik 206ef322e1 Jahshaka is a video and film compositing, editing and special fx system
that uses OpenGL & OpenML hardware rendering to give operators real time
interactivity. The system is cross platform, and also includes full CG,
paint and image processing modules.

PR:		ports/85838
Submitted by:	Igor Pokrovsky <ip@doom.homeunix.org>
2005-09-18 18:20:48 +00:00

25 lines
647 B
C++

--- jah/Source/jahshaka.cpp.orig
+++ jah/Source/jahshaka.cpp
@@ -185,6 +185,8 @@
QString fileinfo;
bool foundpath;
+#if !defined(__FreeBSD__)
+
//this hack gets the application exectuable path
//since QApplication::applicationFilePath() only works on Qt 3.2 and up
jtrace.debug("QT_VERSION_STR: ");
@@ -356,6 +358,13 @@
jtrace.debug( "Didnt find media folder, using default media folder" );
JahMediaPath = JahBasePath;
}
+
+#else
+
+ JahBasePath = "%%DATADIR%%/";
+ JahMediaPath = JahBasePath;
+
+#endif
//update preferences object with info
jprefs.setBasePath(JahBasePath);