Ticket #4821: mythcontext.patch2

File mythcontext.patch2, 537 bytes (added by arnonm@…, 12 years ago)

support for MYTHLIBDIR environment variable

Line 
1Index: mythtv/libs/libmyth/mythcontext.cpp
2===================================================================
3--- mythtv/libs/libmyth/mythcontext.cpp (revision 16312)
4+++ mythtv/libs/libmyth/mythcontext.cpp (working copy)
5@@ -352,6 +352,12 @@
6     QDir prefixDir(appPath.left(appPath.findRev("/")));
7 #endif
8 
9+char *tmp_libdir = getenv("MYTHLIBDIR");
10+if (tmp_libdir)
11+       m_installlibdir = tmp_libdir;
12+       
13+
14+
15     if (QDir(m_installprefix).isRelative())
16     {
17         // If the PREFIX is relative, evaluate it relative to our