--- ray/src/px/SConscript 2004/11/05 22:15:43 1.9 +++ ray/src/px/SConscript 2005/09/12 14:44:09 1.12 @@ -13,9 +13,6 @@ def radlib(name): return os.path.join('$RAD_BUILDLIB', warp3d = env.Object(source="warp3d.c") clrtab = env.Object(source="clrtab.c") neuclrtab = env.Object(source="neuclrtab.c") -ciq = env.Object(source="ciq.c") -cut = env.Object(source="cut.c") -closest = env.Object(source="closest.c") # standard targets PROGS = ( @@ -26,6 +23,8 @@ PROGS = ( ['rtpic','rtproc','rtpath','rtio','rtargs','rtmath','rtcont','rtmem','rterror']), ('pfilt', Split('pfilt.c pf2.c pf3.c'), ['rtlamps','rtpic','rtio','rtpath','rtargs','rtmath']), +('pcwarp', ['pcwarp.c', warp3d], + ['rtpic','rtio','rtcont','rtmem','rterror']), ('pvalue', ['pvalue.c'], ['rtpic','rtio','rtargs','rtmath']), ('pcompos', ['pcompos.c'], ['rtpic','rtproc','rtpath','rtio','rterror']), ('psign', ['psign.c'], @@ -60,14 +59,35 @@ 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 '#-with-CC="$CC" ' + '"libdir=%(upperdir)s/lib" "includedir=%(upperdir)s/common" ' + '--enable-static --disable-shared --disable-cxx ' + '--enable-logluv --disable-jpeg ' + '--disable-zlib --disable-pixarlog; ' + #'"-with-ENVOPTS=$CCFLAGS"; ' + 'cd %(portdir)s; make all;' + 'cd %(libtiffdir)s; make install;') % { + 'upperdir':upperdir, + 'tiffdir':os.path.join(cwd, 'tiff'), + 'portdir':os.path.join(cwd, 'tiff', 'port'), + 'libtiffdir':os.path.join(cwd, 'tiff', 'libtiff') + } + ]) +# 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')]) + # tiff programs ra_tiff = env.Program(target=radbin('ra_tiff'), source=Split('ra_tiff.c'), LIBS=['tiff','rtpic','rtio','rtmem'] + mlib) @@ -99,7 +119,7 @@ if env.has_key('X11LIB'): if os.name == 'posix': # XXX ignoring trad.wsh for s in Split('''normpat falsecolor pdfblur - pmblur xyzimage phisto pdelta pgblur'''): + pmblur xyzimage phisto pdelta pgblur ra_pfm'''): Default(env.InstallCsh(radbin(s), s + '.csh')) # XXX probably needs fixing #else: