freebsd-ports/cad/vipec/files/patch-Setup.cpp
Kirill Ponomarev f62713e133 Fix build with gcc-3.4
PR:		ports/70784
Submitted by:	Ports Fury
2004-08-22 01:06:12 +00:00

22 lines
719 B
C++

--- Setup.cpp.orig Fri Oct 3 09:31:11 2003
+++ Setup.cpp Fri Aug 20 23:49:30 2004
@@ -163,8 +163,17 @@
vipecHome_ = QString(getenv("VIPECHOME"));
if ( vipecHome_.isEmpty() )
{
- vipecHome_ = dir.absPath();
- Logger::warning("VIPECHOME not set, assuming " + vipecHome_);
+#ifdef VIPECHOME
+ vipecHome_ = QString(VIPECHOME);
+ if (vipecHome_.isEmpty())
+ {
+ vipecHome_ = dir.absPath();
+ Logger::warning("VIPECHOME not set, assuming " + vipecHome_);
+ }
+#else
+ vipecHome_ = dir.absPath();
+ Logger::warning("VIPECHOME not set, assuming " + vipecHome_);
+#endif
}
helpFilename_ = vipecHome_ + "/help/index.html";
configFilename_ = vipecHome_ + "/vipec.cfg";