--- ray/src/px/SConscript 2005/02/10 16:43:08 1.11 +++ ray/src/px/SConscript 2008/04/21 07:31:29 1.16 @@ -18,27 +18,27 @@ neuclrtab = env.Object(source="neuclrtab.c") PROGS = ( # name files libs ('macbethcal', Split('macbethcal.c pmapgen.c mx3.c')+[warp3d], - ['rtpic','rtproc','rtpath','rtio','rtargs','rtcont','rtmem','rterror']), + ['rtpic','rtproc','rtpath','rtargs','rtio','rtcont','rtmem','rterror']), ('pcond', Split('pcond.c pcond2.c pcond3.c pcond4.c')+[warp3d], - ['rtpic','rtproc','rtpath','rtio','rtargs','rtmath','rtcont','rtmem','rterror']), + ['rtpic','rtproc','rtpath','rtargs','rtio','rtmath','rtcont','rtmem','rterror']), ('pfilt', Split('pfilt.c pf2.c pf3.c'), - ['rtlamps','rtpic','rtio','rtpath','rtargs','rtmath']), + ['rtlamps','rtpic','rtpath','rtargs','rtio','rtmath']), ('pcwarp', ['pcwarp.c', warp3d], ['rtpic','rtio','rtcont','rtmem','rterror']), -('pvalue', ['pvalue.c'], ['rtpic','rtio','rtargs','rtmath']), +('pvalue', ['pvalue.c'], ['rtpic','rtargs','rtio','rtmath']), ('pcompos', ['pcompos.c'], ['rtpic','rtproc','rtpath','rtio','rterror']), ('psign', ['psign.c'], - ['rtpic','rtscene','rtio','rtpath','rtargs','rtcont','rtmem','rterror']), + ['rtpic','rtscene','rtpath','rtargs','rtio','rtcont','rtmem','rterror']), ('protate', ['protate.c'], ['rtpic','rtio']), ('pextrem', ['pextrem.c'], ['rtpic','rtio']), ('pflip', ['pflip.c'], ['rtpic','rtio']), ('pcomb', ['pcomb.c'], - ['rtpic','rtproc','rtpath','rtio','rtfunc','rtargs','rtmath','rtcont','rtmem']), + ['rtpic','rtproc','rtpath','rtfunc','rtargs','rtio','rtmath','rtcont','rtmem']), ('pinterp', ['pinterp.c'], - ['rtproc','rtpic','rtio','rtpath','rtargs','rtmath','rtmem','rterror']), + ['rtproc','rtpic','rtpath','rtargs','rtio','rtmath','rtmem','rterror']), ('ra_gif', ['ra_gif.c', clrtab, neuclrtab], ['rtpic','rtio','rtmem']), -('ra_ps', ['ra_ps.c'], ['rtpic','rtio','rtargs','rtmem']), +('ra_ps', ['ra_ps.c'], ['rtpic','rtargs','rtio','rtmem']), ('ra_ppm', ['ra_ppm.c'], ['rtpic','rtio','rtmem']), ('ra_bmp', ['ra_bmp.c'], ['rtpic','rtproc','rtio','rtmem']), ('ra_t8', ['ra_t8.c', clrtab, neuclrtab], ['rtpic','rtio','rtmem']), @@ -59,20 +59,32 @@ for p in PROGS: # tiff library (unix-specific for the moment) if os.name == 'posix': cwd = os.getcwd() + upperdir = os.path.split(cwd)[0] + libtiff = env.Command(radlib(env['LIBPREFIX'] + 'tiff' + env['LIBSUFFIX']), - 'tiff/config.local', - [('cd "%s"; ' - 'sh ./configure -quiet -noninteractive ' - '-with-CC="$CC" -with-ENVOPTS="$CCFLAGS"; ' - 'cd libtiff; ' - 'make install;') % os.path.join(cwd, 'tiff')]) + None, + [('cd "%(tiffdir)s"; ' + 'env CC="$CC" ' + './configure -C ' + '"libdir=%(upperdir)s/lib" ' + '--enable-static --disable-shared --disable-cxx ' + '--enable-logluv --disable-jpeg --disable-zlib --disable-pixarlog; ' + 'cd %(portdir)s; make all;' + 'cd %(libtiffdir)s; make install-exec;' # don't install headers + ) % { + 'upperdir':upperdir, + 'tiffdir':os.path.join(cwd, 'tiff'), + 'portdir':os.path.join(cwd, 'tiff', 'port'), + 'libtiffdir':os.path.join(cwd, 'tiff', 'libtiff') + } + ]) # tiff programs - ra_tiff = env.Program(target=radbin('ra_tiff'), source=Split('ra_tiff.c'), + ra_tiff = env.Program(target=radbin('ra_tiff'), source=['ra_tiff.c'], LIBS=['tiff','rtpic','rtio','rtmem'] + mlib) progs.append(ra_tiff) - normtiff = env.Program(target=radbin('normtiff'), source=Split('normtiff.c'), + normtiff = env.Program(target=radbin('normtiff'),source=['normtiff.c'], LIBS=['tiff','rtpic','rtio','rtmem'] + mlib) progs.append(normtiff) @@ -81,7 +93,7 @@ if os.name == 'posix': if env.has_key('X11LIB'): xincl = env.get('CPPPATH', []) + ['$X11INCLUDE'] xlibp = env.get('LIBPATH', []) + ['$X11LIB'] - xlibs = ['X11','rtpic','rtio','rtmath','rtargs','rtmem'] + xlibs = ['X11','rtpic','rtargs','rtio','rtmath','rtmem'] x11findwind = env.Object(source='../common/x11findwind.c', # XXX ../not/nice CPPPATH=xincl) @@ -95,15 +107,15 @@ if env.has_key('X11LIB'): CPPPATH=xincl, LIBPATH=xlibp, LIBS=xlibs + mlib) progs.append(xshowtrace) - if os.name == 'posix': # XXX ignoring trad.wsh - for s in Split('''normpat falsecolor pdfblur - pmblur xyzimage phisto pdelta pgblur ra_pfm'''): + for s in Split('''normpat falsecolor pdfblur pmblur pmdblur + xyzimage phisto pdelta pgblur ra_pfm ran2tiff'''): Default(env.InstallCsh(radbin(s), s + '.csh')) # XXX probably needs fixing #else: # for s in Split('''falsecolor'''): # Default(env.InstallCsh(radbin(s), s + '.csh')) +# ignored by Rmakefile: pacuity phisteq psquish pveil vlpic Default('#src/px') env.Install('$RAD_BINDIR', progs)