@@ -194,15 +194,10 @@ JPEG_LIB_PATH = os.path.join( "/software", "tools", "lib", platform, compiler, c
194194TIFF_LIB_PATH = os.path.join( "/software", "tools", "lib", platform, compiler, compilerVersion )
195195FREETYPE_LIB_PATH = os.path.join( "/software", "tools", "lib", platform, compiler, compilerVersion )
196196
197+ # we use the /usr/lib64 versions of tiff, png, freetype and jpeg
198+ # with the exception of freetype on CentOS 6.
197199if platform == "cent6.x86_64" :
198- # use the /usr/lib versions of tiff, png, freetype and jpeg
199200 FREETYPE_INCLUDE_PATH = "/usr/include/freetype2"
200- else :
201- TIFF_INCLUDE_PATH = "/software/tools/include/tiff/3.8.2"
202- JPEG_INCLUDE_PATH = "/software/tools/include/jpeg/6b"
203- FREETYPE_INCLUDE_PATH = "/software/tools/include/freetype/2.3.5/freetype2"
204- PNG_INCLUDE_PATH = "/software/tools/include/png/1.5.2"
205- CXXFLAGS += [ "-isystem", "/software/tools/include/freetype/2.3.5" ]
206201
207202# figure out the boost lib suffix
208203compilerVersionSplit = compilerVersion.split( "." )
@@ -334,7 +329,9 @@ if targetApp=="houdini" :
334329
335330 houdiniReg = IEEnv.registry["apps"]["houdini"][houdiniVersion][platform]
336331 BOOST_INCLUDE_PATH = "/software/tools/include/" + platform + "/boost/" + boostVersion
337- PNG_INCLUDE_PATH = os.path.join( houdiniReg['location'], houdiniReg['includes'][0] )
332+
333+ if "pngVersion" in houdiniReg :
334+ PNG_INCLUDE_PATH = "/software/tools/include/" + platform + "/png/" + houdiniReg["pngVersion"]
338335
339336 HOUDINI_ROOT = houdiniReg['location']
340337 HOUDINI_CXX_FLAGS = " ".join( CXXFLAGS ) + ' -DVERSION=\"'+houdiniVersion+'\" -DDLLEXPORT= -D_GNU_SOURCE -DLINUX -DAMD64 -m64 -fPIC -DSIZEOF_VOID_P=8 -DSESI_LITTLE_ENDIAN -DENABLE_THREADS -DUSE_PTHREADS -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DGCC4 -DGCC3 -Wno-deprecated -Wno-reorder'
0 commit comments