head 1.8; access; symbols pkgsrc-2025Q2:1.7.0.78 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.76 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.74 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.72 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.70 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.68 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.66 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.64 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.62 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.60 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.58 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.56 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.54 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.52 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.50 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.48 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.46 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.44 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.42 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.40 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.36 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.16 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.38 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.34 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.32 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.30 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.28 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.26 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.24 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.22 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.20 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.18 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.14 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.12 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.10 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.8 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.6 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.4 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.2 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.6.0.34 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.32 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.30 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.28 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.26 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.24 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.22 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.20 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.18 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.16 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.14 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.12 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.10 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.8 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.6 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.4 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.2 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.5.0.18 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.16 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.14 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.12 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.10 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.8 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.6 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.4 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.2 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.4.0.30 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.28 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.26 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.24 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.22 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.20 pkgsrc-2008Q1:1.4.0.18 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.16 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.14 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.12 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.10 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.8 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.6 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.4 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.2 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.3.0.8 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.6 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.8 date 2025.08.20.14.08.20; author wiz; state dead; branches; next 1.7; commitid D1MekDhuAczgxt7G; 1.7 date 2015.10.17.22.34.21; author dholland; state Exp; branches; next 1.6; commitid iktMyrXNCIQeTvFy; 1.6 date 2011.10.03.02.53.39; author dholland; state Exp; branches; next 1.5; 1.5 date 2009.04.29.05.15.14; author dholland; state Exp; branches; next 1.4; 1.4 date 2006.02.26.21.26.32; author joerg; state Exp; branches; next 1.3; 1.3 date 2005.02.17.00.38.37; author jschauma; state Exp; branches; next 1.2; 1.2 date 2005.02.16.23.20.24; author jschauma; state Exp; branches; next 1.1; 1.1 date 2005.02.16.22.17.33; author jschauma; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.02.16.22.17.33; author jschauma; state Exp; branches; next ; desc @@ 1.8 log @radiance: remove marked BROKEN over two years ago @ text @$NetBSD: patch-aa,v 1.7 2015/10/17 22:34:21 dholland Exp $ csh programming considered harmful. note that this is now a sh script, but I can't patch the #! line because there's an rcsid in the way. --- makeall.orig 2003-12-14 17:24:09.000000000 +0000 +++ makeall @@@@ -3,27 +3,27 @@@@ # # Make all the Radiance programs # -if ( $#argv < 1 ) then +if [ $# -lt 1 ]; then echo "Usage: makeall install [clean] [make options]" echo " or: makeall clean" echo " or: makeall library" exit 1 -endif -if ( "$1" == library ) then - source installib +fi +if [ x"$1" = xlibrary ]; then + . ./installib cp -f src/*/*.{cal,tab,hex} $ldir echo "" echo "Set the environment variable RAYPATH=.:$ldir" echo 'For C-shell users, put the following into ~/.cshrc' echo " setenv RAYPATH .:$ldir" - echo 'For Bourne shell users, put the following into $HOME/profile' + echo 'For Bourne shell users, put the following into $HOME/.profile' echo " RAYPATH=.:$ldir" echo " export RAYPATH" echo "" exit 0 -endif -set srcdirs=( common meta cv gen ot rt px hd util cal ) -if ( "$1" == install ) then +fi +srcdirs='common meta cv gen ot rt px hd util cal' +if [ x"$1" = xinstall ]; then cat << _EOF_ `cat src/rt/VERSION` INSTALLATION @@@@ -35,183 +35,167 @@@@ this script. You can type ^C (followed You must first answer the following questions. _EOF_ -if ( ! $?EDITOR ) then - echo -n "What is your preferred editor [vi]? " - set ans="$<" - if ( "$ans" != "" ) then - setenv EDITOR "$ans" - else - setenv EDITOR vi - endif -endif -again1: -echo -n "Where do you want the executables [/usr/local/bin]? " -set idir=$< -(echo $idir) >/dev/null -if ( $status ) then - goto again1 -endif -set idir=$idir -if ( "$idir" == "" ) then - set idir=/usr/local/bin -else if ( "$idir" !~ /* ) then - echo "Directory must be relative to root, please reenter" - goto again1 -endif -if ( ! -d $idir ) then - mkdir $idir - if ( $status ) then +if [ x"$EDITOR" = x ]; then + EDITOR=vi + export EDITOR +fi + +idir=@@WRKSRC@@/radiance/bin +#(echo $idir) >/dev/null +#if ( $status ) then +# continue +#endif +#set idir=$idir +#if ( "$idir" == "" ) then +# set idir=/usr/local/bin +#endif +if [ ! -d "$idir" ]; then + mkdir -p "$idir" + if [ $? != 0 ]; then echo "Cannot create directory, please reenter" - goto again1 - endif -endif -if ( ! -d $idir/dev ) then - mkdir $idir/dev - if ( $status ) then + exit 1 + fi +fi +if [ ! -d "$idir/../dev" ]; then + mkdir -p "$idir/../dev" + if [ $? != 0 ]; then echo "Cannot create subdirectory, please reenter" - goto again1 - endif -endif -set inpath=0 -foreach i ( $path ) - if ( "$i" == "$idir" ) then - set inpath=1 + exit 1 + fi +fi +inpath=0 +for i in $(echo $PATH | tr ':' ' '); do + if [ "$i" = "$idir" ]; then + inpath=1 break - endif -end -set rmake=$idir/rmake -if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then - goto gotrmake -endif -set newrmake -more src/common/copyright.h -echo -n "Do you understand and accept the terms of this agreement [n]? " -set ans="$<" -if ( "$ans" !~ [yY]* ) exit -set special= -set arch= -set opt= -set mach= -set compat= -set extras= -set esuffix= -cat << _EOF_ - -Please select your system type from the following list: - - 1) Sun Solaris - 2) HP workstation - 3) Silicon Graphics - 4) AIX (RS/6000) - 5) BSDI BSD/386 - 6) Linux - 7) MacOS X - 8) FreeBSD - 9) Cygwin - 10) Other - -_EOF_ -echo -n "Choice? " -set arch="$<" -switch ("$arch") -case 1: # SPARC Station - set arch=sun - set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO" - set opt="-O -DSPEED=80" - set compat="bmalloc.o strcmp.o getpagesize.o" - breaksw -case 2: # HP workstation - set mach="" - set opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE" - set compat="bmalloc.o getpagesize.o strcmp.o" - set arch=hpux - breaksw -case 3: # Silicon Graphics - set arch=sgi - switch (`uname -r`) - case 3.*: - set mach="-noprototypes" - set opt="-O -DSPEED=80" - set special="sgi" - set compat="malloc.o strcmp.o" - breaksw - case 4.*: - set mach="" - set opt="-O2 -DSPEED=100" - set compat="malloc.o strcmp.o" - set extras='"MLIB=-lfastm -lm"' - breaksw - default: # 5.x or later + fi +done +rmake=$idir/rmake +#rmake2=`ls -tL $rmake $0 2>&1 | head -1` +if [ ! -f "$rmake" -o "$0" -nt "$rmake" ]; then + +newrmake= +special= +arch= +opt= +mach= +compat= +extras= +esuffix= +arch=@@PKGSRC_ARCH@@ +case "$arch" in + 1) # SPARC Station + arch=sun + mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO" + opt="-O -DSPEED=80" + compat="bmalloc.o strcmp.o getpagesize.o" + ;; + 2) # HP workstation + mach="" + opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE" + compat="bmalloc.o getpagesize.o strcmp.o" + arch=hpux + ;; + 3) # Silicon Graphics + arch=sgi + case `uname -r` in + 3.*) + mach="-noprototypes" + opt="-O -DSPEED=80" + special="sgi" + compat="malloc.o strcmp.o" + ;; + 4.*) + mach="" + opt="-O2 -DSPEED=100" + compat="malloc.o strcmp.o" + extras='"MLIB=-lfastm -lm"' + ;; + *) # 5.x or later ln -s `which wish` $idir/wish4.0 - set path=($idir $path) - set mach="-w" - set opt="-O2 -DSPEED=200" - set special="ogl" - set compat="bmalloc.o strcmp.o" - breaksw - endsw - breaksw -case 4: # AIX - set opt="-O" - set compat="bmalloc.o erf.o strcmp.o" - set arch=PowerPC - breaksw -case 5: # BSDI BSD/386 - set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include" - set opt="-O -DSPEED=100" - set arch=IBMPC - set compat="malloc.o erf.o strcmp.o" - breaksw -case 6: # Linux - set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO" - set opt="-O2 -DSPEED=200" - set arch=IBMPC - set compat="bmalloc.o erf.o getpagesize.o" - set extras=CC=gcc - breaksw -case 7: # MacOS X - set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" - set opt="-O2 -DSPEED=200" - set arch=PowerPC - set compat="bmalloc.o" - set extras="CC=cc CONFIGURE_ARCH=powerpc" - set special="ogl" - breaksw -case 8: # FreeBSD - set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" - set opt="-O -DSPEED=200" - set compat="bmalloc.o erf.o" - set extras="CC=cc" - set arch=IBMPC - breaksw -case 9: # Cygwin - set mach="-Dfreebsd -L/usr/lib -L/usr/X11R6/lib -I/usr/include/X11 -I/usr/X11R6/include -DNOSTEREO" - set opt="-O2 -DSPEED=200" - set arch=IBMPC - set compat="bmalloc.o erf.o getpagesize.o" - set extras="CC=gcc" - set special="ogl" - set esuffix=".exe" - breaksw -case 10: # Other - set opt="-O" - set compat="bmalloc.o erf.o strcmp.o" + PATH="${idir}:$PATH" + mach="-w" + opt="-O2 -DSPEED=200" + special="ogl" + compat="bmalloc.o strcmp.o" + ;; + esac + ;; + 4) # AIX + opt="-O" + compat="bmalloc.o erf.o strcmp.o" + arch=PowerPC + ;; + 5) # BSDI BSD/386 + mach="-DBSD -L/usr/X11/lib -I/usr/X11/include" + opt="-O -DSPEED=100" + arch=IBMPC + compat="malloc.o erf.o strcmp.o" + ;; + 6) # Linux + mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L${X11BASE}/lib -I${X11BASE}/include -DNOSTEREO" + opt="-O2 -DSPEED=200" + arch=IBMPC + compat="bmalloc.o erf.o getpagesize.o" + extras=CC=gcc + ;; + 7) # MacOS X + mach="-DBSD -DNOSTEREO -Dfreebsd -I${X11BASE}/include -L${X11BASE}/lib" + opt="-O2 -DSPEED=200" + arch=PowerPC + compat="bmalloc.o" + extras="CC=cc CONFIGURE_ARCH=powerpc" + special="ogl" + ;; + 8) # FreeBSD + mach="-DBSD -DNOSTEREO -Dfreebsd -I${X11BASE}/include -L${X11BASE}/lib" + opt="-O -DSPEED=200" + compat="bmalloc.o erf.o" + arch=IBMPC + ;; + 9) # NetBSD + mach="-DBSD -DNOSTEREO -Dnetbsd -I${X11BASE}/include -L${X11BASE}/lib" + opt="-O -DSPEED=200" + compat="bmalloc.o erf.o" + arch=IBMPC + ;; + 10) # Cygwin + mach="-Dfreebsd -L/usr/lib -L${X11BASE} -I${X11BASE}/include -DNOSTEREO" + opt="-O2 -DSPEED=200" + arch=IBMPC + compat="bmalloc.o erf.o getpagesize.o" + extras="CC=gcc" + special="ogl" + esuffix=".exe" + ;; + 11) # Other + opt="-O" + compat="bmalloc.o erf.o strcmp.o" + # XXX echo -n "Are you using the GNU C compiler [n]? " - if ( "$<" =~ [yY]* ) then - set extras="CC=gcc" - endif - set arch=other - breaksw -default: - echo "Illegal choice\!" + read FOO + case "$FOO" in + y*|Y*) extras="CC=gcc";; + esac + arch=other + ;; + 12) # DragonFly + mach="-DBSD -DNOSTEREO -Ddragonfly -I${X11BASE}/include -L${X11BASE}/lib" + opt="-O -DSPEED=200" + compat="bmalloc.o erf.o" + arch=IBMPC + ;; + *) + echo "Illegal architecture choice\!" echo "Installation aborted." + echo "(You must set PKGSRC_ARCH in the pkgsrc makefile.)" exit 1 - breaksw -endsw -source installib + ;; +esac +. ./installib sed 's/[ ]*$//' > $rmake << _EOF_ #!/bin/sh -exec make "SPECIAL=$special" \ +exec @@MAKE@@ "SPECIAL=$special" \ "OPT=$opt" \ "MACH=$mach" \ ARCH=$arch "COMPAT=$compat" \ @@@@ -222,71 +206,47 @@@@ exec make "SPECIAL=$special" \ _EOF_ chmod 755 $rmake chmod 644 src/*/Rmakefile src/rt/devtable.c -gotrmake: + +# matches [ "$0" -nt "$rmake" ] above +fi + echo "Current rmake command is:" cat $rmake -echo -n "Do you want to change it? " -set ans="$<" -if ( "$ans" =~ [yY]* ) then - cp $rmake /tmp/rmake$$ - $EDITOR $rmake - if ( `cat $rmake /tmp/rmake$$ | grep OPT= | uniq | wc -l` == 2 ) set newrmake - rm -f /tmp/rmake$$ -endif -if ( ! -d src/lib ) then +if [ ! -d src/lib ]; then mkdir src/lib -endif -if ( $?newrmake ) then - echo 'New rmake command -- running "makeall clean"...' - csh -f $0 clean -endif +fi cd src echo "Making programs..." -set errs=0 -foreach i ( $srcdirs ) - pushd $i +errs=0 +for i in $srcdirs; do + ( + cd $i echo "In directory $i..." - $rmake -k $* - @@ errs += $status - popd -end -if ( $errs ) then - echo "There were some errors." -else - echo "Done." -endif + $rmake $* || exit 1 + ) || exit 1 +done +echo "Done." cd .. -if (! $inpath ) then - echo "" - echo "Add $idir to the beginning of your execution path:" - echo 'For C-shell users, put the following into ~/.cshrc' - echo " set path=( $idir "'$path )' - echo 'For Bourne shell users, put the following into $HOME/profile' - echo " PATH=$idir"':$PATH' - echo " export PATH" -endif -if (! -d /usr/tmp) then - ln -s /tmp /usr/tmp - if ($status) then - echo "" - echo "IMPORTANT: Execute 'sudo ln -s /tmp /usr/tmp'" - endif -endif -else + +else # [ $1 = install ] + cd src -foreach i ( $srcdirs ) - pushd $i +for i in $srcdirs; do + ( + cd $i echo "In directory $i..." - make -f Rmakefile $* - popd -end + make -f Rmakefile $* || exit 1 + ) || exit 1 +done cd .. -foreach i ( $* ) - if ( "$i" == clean ) then +for i in "$@@"; do + if [ x"$i" = xclean ]; then echo "Removing library archives..." rm -f src/lib/*.[ao] - endif -end + fi +done echo "Done." -endif + +fi # [ $1 = install ] + exit 0 @ 1.7 log @Improve the plop message generated when the OS isn't recognized. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2011/10/03 02:53:39 dholland Exp $ @ 1.6 log @fix broken bulk build @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2009/04/29 05:15:14 dholland Exp $ d8 2 a9 2 --- makeall.orig 2003-12-14 12:24:09.000000000 -0500 +++ makeall 2009-04-29 00:37:35.000000000 -0400 d46 1 a46 1 @@@@ -35,183 +35,166 @@@@ this script. You can type ^C (followed d351 1 d365 1 a365 1 echo "Illegal choice\!" d367 1 d382 1 a382 1 @@@@ -222,71 +205,47 @@@@ exec make "SPECIAL=$special" \ @ 1.5 log @Rewrite csh scripts in sh, by request of agc. Closes PR 37581. While here, clean up a lot of pkglint; it appears that the manual substitutions in the makefile got rolled into several of the patches at some point. Various problems remain (e.g. the build system runs /usr/bin/make explicitly in a number of places; plus the manual substitutions should be tidied away) but this should cover the most serious ones. PKGREVISION++. @ text @d1 1 a1 1 $NetBSD$ d25 1 a25 1 + . installib d372 1 a372 1 +. installib @ 1.4 log @Make X11 dependency explicit. Use X11BASE for include and link pathes. Add DragonFly support. @ text @d3 45 a47 3 --- makeall.orig 2003-12-14 17:24:09.000000000 +0000 +++ makeall @@@@ -36,17 +36,10 @@@@ You must first answer the following ques d50 1 a50 1 if ( ! $?EDITOR ) then d56 1 a56 1 setenv EDITOR vi d58 2 a59 2 endif again1: d62 7 a68 8 +set idir=@@WRKSRC@@/radiance/bin (echo $idir) >/dev/null if ( $status ) then goto again1 @@@@ -54,19 +47,16 @@@@ endif set idir=$idir if ( "$idir" == "" ) then set idir=/usr/local/bin d72 2 a73 2 endif if ( ! -d $idir ) then d75 18 a92 2 + mkdir -p $idir if ( $status ) then d94 3 a96 3 goto again1 endif endif d99 7 a105 3 +if ( ! -d $idir/../dev ) then + mkdir -p $idir/../dev if ( $status ) then d107 22 a128 5 goto again1 @@@@ -84,10 +74,6 @@@@ if ( "`ls -tL $rmake $0 |& head -1`" == goto gotrmake endif set newrmake d133 7 a139 7 set special= set arch= set opt= @@@@ -95,24 +81,7 @@@@ set mach= set compat= set extras= set esuffix= d158 94 a251 8 +set arch=@@PKGSRC_ARCH@@ switch ("$arch") case 1: # SPARC Station set arch=sun @@@@ -163,14 +132,14 @@@@ case 5: # BSDI BSD/386 set compat="malloc.o erf.o strcmp.o" breaksw case 6: # Linux d253 6 a258 7 + set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L${X11BASE}/lib -I${X11BASE}/include -DNOSTEREO" set opt="-O2 -DSPEED=200" set arch=IBMPC set compat="bmalloc.o erf.o getpagesize.o" set extras=CC=gcc breaksw case 7: # MacOS X d260 7 a266 8 + set mach="-DBSD -DNOSTEREO -Dfreebsd -I${X11BASE}/include -L${X11BASE}/lib" set opt="-O2 -DSPEED=200" set arch=PowerPC set compat="bmalloc.o" @@@@ -178,14 +147,19 @@@@ case 7: # MacOS X set special="ogl" breaksw case 8: # FreeBSD d268 2 a269 9 + set mach="-DBSD -DNOSTEREO -Dfreebsd -I${X11BASE}/include -L${X11BASE}/lib" + set opt="-O -DSPEED=200" + set compat="bmalloc.o erf.o" + set arch=IBMPC + breaksw +case 9: # NetBSD + set mach="-DBSD -DNOSTEREO -Dnetbsd -I${X11BASE}/include -L${X11BASE}/lib" set opt="-O -DSPEED=200" set compat="bmalloc.o erf.o" d271 2 a272 2 set arch=IBMPC breaksw d275 7 a281 9 +case 10: # Cygwin + set mach="-Dfreebsd -L/usr/lib -L${X11BASE} -I${X11BASE}/include -DNOSTEREO" set opt="-O2 -DSPEED=200" set arch=IBMPC set compat="bmalloc.o erf.o getpagesize.o" @@@@ -193,7 +167,7 @@@@ case 9: # Cygwin set special="ogl" set esuffix=".exe" breaksw d283 61 a343 3 +case 11: # Other set opt="-O" set compat="bmalloc.o erf.o strcmp.o" d345 19 a363 11 @@@@ -202,6 +176,12 @@@@ case 10: # Other endif set arch=other breaksw +case 12: # DragonFly + set mach="-DBSD -DNOSTEREO -Ddragonfly -I${X11BASE}/include -L${X11BASE}/lib" + set opt="-O -DSPEED=200" + set compat="bmalloc.o erf.o" + set arch=IBMPC + breaksw default: d366 7 a372 2 @@@@ -211,7 +191,7 @@@@ endsw source installib d380 9 a388 2 @@@@ -225,28 +205,16 @@@@ chmod 644 src/*/Rmakefile src/rt/devtabl gotrmake: d399 2 a400 1 if ( ! -d src/lib ) then d402 1 a402 1 endif d407 1 d410 7 a416 3 set errs=0 foreach i ( $srcdirs ) pushd $i d419 12 a430 7 + $rmake $* @@ errs += $status popd end @@@@ -256,22 +224,6 @@@@ else echo "Done." endif d448 4 a451 1 else d453 29 a481 1 foreach i ( $srcdirs ) @ 1.3 log @Make this work on IRIX. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2005/02/16 22:17:33 jschauma Exp $ d3 3 a5 5 Make this script run non-interactively. --- makeall.orig 2003-12-14 12:24:09.000000000 -0500 +++ makeall 2005-02-15 17:41:37.000000000 -0500 @@@@ -36,17 +36,10 @@@@ d24 1 a24 1 @@@@ -54,19 +47,16 @@@@ d47 1 a47 1 @@@@ -84,10 +74,6 @@@@ d58 1 a58 1 @@@@ -95,24 +81,7 @@@@ d84 1 a84 1 @@@@ -163,7 +132,7 @@@@ d89 1 a89 1 + set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/X11R6/include -DNOSTEREO" d93 20 a112 2 @@@@ -181,11 +150,16 @@@@ set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" a119 6 +case 9: # NetBSD + set mach="-DBSD -DNOSTEREO -Dnetbsd -I/usr/X11R6/include -L/usr/X11R6/lib" + set opt="-O -DSPEED=200" + set compat="bmalloc.o erf.o" + set arch=IBMPC + breaksw d121 1 a121 1 + set mach="-Dfreebsd -L/usr/lib -L/usr/X11R6 -I/usr/X11R6/include -DNOSTEREO" d125 1 a125 1 @@@@ -193,7 +167,7 @@@@ d134 14 a147 1 @@@@ -211,7 +185,7 @@@@ d156 1 a156 1 @@@@ -225,28 +199,16 @@@@ d186 1 a186 1 @@@@ -256,22 +218,6 @@@@ @ 1.2 log @install lib files differently also patch makefiles to use RANLIB and AR variables @ text @@ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: $ d82 1 a82 1 +set arch=9 @ 1.1.1.1 log @Initial import of Radiance (aka ``ray'') into pkgsrc. Radiance is a physically based rendering package written largely by Greg Ward, initially at LBNL, EPFL, then SGI, now running Anyhere Software. It is a physically-based, image-generating, backward raytracer with very a powerful rendering engine. It is used worldwide for lighting analysis and can generate accurate values for radiance/luminance (W/sr.m^2,cd/m^2) and irradiance/illuminance (W/m,Lux). http://www.radiance-online.org/ @ text @@