diff options
Diffstat (limited to 'cad/qcad2/files')
-rw-r--r-- | cad/qcad2/files/patch-relement.cpp | 11 | ||||
-rw-r--r-- | cad/qcad2/files/patch-rprgdef.h | 25 |
2 files changed, 36 insertions, 0 deletions
diff --git a/cad/qcad2/files/patch-relement.cpp b/cad/qcad2/files/patch-relement.cpp new file mode 100644 index 0000000..579788c --- /dev/null +++ b/cad/qcad2/files/patch-relement.cpp @@ -0,0 +1,11 @@ +--- relement.cpp.orig Fri Nov 8 16:01:15 2002 ++++ relement.cpp Fri Nov 8 16:03:44 2002 +@@ -3683,7 +3683,7 @@ + + // Search pattern in /usr/share/<proj>/hatches dir: + if(!QFileInfo(patternPath).exists()) { +- patternPath = QString("/usr/share/")+DEF_APPNAME_L+"/hatches/"+_pattern+".dxf"; ++ patternPath = QString("DATADIR")+DEF_APPNAME_L+"/hatches/"+_pattern+".dxf"; + } + #endif + */ diff --git a/cad/qcad2/files/patch-rprgdef.h b/cad/qcad2/files/patch-rprgdef.h new file mode 100644 index 0000000..349fc5c --- /dev/null +++ b/cad/qcad2/files/patch-rprgdef.h @@ -0,0 +1,25 @@ +--- rprgdef.h.orig Fri Sep 20 19:26:57 2002 ++++ rprgdef.h Tue Nov 19 16:48:27 2002 +@@ -23,12 +23,14 @@ + + + // Uncomment for Linux ++/* + #define DEF_LINUX // Are we running Linux? + #define RUNNING_LINUX true + #define RUNNING_WINDOWS false + #define RUNNING_SOLARIS false + #define RUNNING_IRIX false + #define DATADIR "/usr/share" ++*/ + + + #ifdef __FreeBSD__ +@@ -38,6 +40,7 @@ + #define RUNNING_WINDOWS false + #define RUNNING_SOLARIS false + #define RUNNING_IRIX false ++#define DATADIR "/usr/local/share" + #endif + + |