ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/SConscript
(Generate patch)

Comparing ray/src/px/SConscript (file contents):
Revision 1.10 by schorsch, Mon Nov 8 19:24:46 2004 UTC vs.
Revision 1.15 by schorsch, Fri Mar 10 19:40:13 2006 UTC

# Line 59 | Line 59 | for p in PROGS:
59   # tiff library (unix-specific for the moment)
60   if os.name == 'posix':
61          cwd = os.getcwd()
62 +        upperdir = os.path.split(cwd)[0]
63 +
64          libtiff = env.Command(radlib(env['LIBPREFIX'] + 'tiff' + env['LIBSUFFIX']),
65 <                'tiff/config.local',
66 <        [('cd "%s"; '
67 <        'sh ./configure -quiet -noninteractive '
68 <                '-with-CC="$CC" -with-ENVOPTS="$CCFLAGS"; '
69 <        'cd libtiff; '
70 <        'make install;') % os.path.join(cwd, 'tiff')])
65 >                None,
66 >        [('cd "%(tiffdir)s"; '
67 >                'env CC="$CC" '
68 >                './configure -C '
69 >                '"libdir=%(upperdir)s/lib" '
70 >                '--enable-static --disable-shared --disable-cxx '
71 >                '--enable-logluv --disable-jpeg --disable-zlib --disable-pixarlog; '
72 >                'cd %(portdir)s; make all;'
73 >                'cd %(libtiffdir)s; make install-exec;' # don't install headers
74 >         ) % {
75 >        'upperdir':upperdir,
76 >        'tiffdir':os.path.join(cwd, 'tiff'),
77 >        'portdir':os.path.join(cwd, 'tiff', 'port'),
78 >        'libtiffdir':os.path.join(cwd, 'tiff', 'libtiff')
79 >        }
80 >        ])
81  
82          # tiff programs
83 <        ra_tiff = env.Program(target=radbin('ra_tiff'), source=Split('ra_tiff.c'),
83 >        ra_tiff = env.Program(target=radbin('ra_tiff'), source=['ra_tiff.c'],
84                  LIBS=['tiff','rtpic','rtio','rtmem'] + mlib)
85          progs.append(ra_tiff)
86  
87 <        normtiff = env.Program(target=radbin('normtiff'), source=Split('normtiff.c'),
87 >        normtiff = env.Program(target=radbin('normtiff'),source=['normtiff.c'],
88                  LIBS=['tiff','rtpic','rtio','rtmem'] + mlib)
89          progs.append(normtiff)
90  
# Line 95 | Line 107 | if env.has_key('X11LIB'):
107          CPPPATH=xincl, LIBPATH=xlibp, LIBS=xlibs + mlib)
108      progs.append(xshowtrace)
109  
98
110   if os.name == 'posix': # XXX ignoring trad.wsh
111 <        for s in Split('''normpat falsecolor pdfblur
112 <                        pmblur xyzimage phisto pdelta pgblur'''):
111 >        for s in Split('''normpat falsecolor pdfblur pmblur pmdblur
112 >                        xyzimage phisto pdelta pgblur ra_pfm ran2tiff'''):
113                  Default(env.InstallCsh(radbin(s), s + '.csh'))
114   # XXX probably needs fixing
115   #else:
116   #       for s in Split('''falsecolor'''):
117   #               Default(env.InstallCsh(radbin(s), s + '.csh'))
118 + # ignored by Rmakefile: pacuity phisteq psquish pveil vlpic
119  
120   Default('#src/px')
121   env.Install('$RAD_BINDIR', progs)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines