diff -Nurd wip.orig/COPYING wip/COPYING --- wip.orig/COPYING 1969-12-31 19:00:00.000000000 -0500 +++ wip/COPYING 2021-05-31 21:07:59.000000000 -0400 @@ -0,0 +1,58 @@ +From the WIP User's manual: + +WIP Description +--------------- + +WIP is a graphics software package available (at least) on Sun +Workstations, VAX/VMS systems, Linux machines, Cray/UNICOS, and CONVEX +systems. WIP is intended to be used to generate high quality graphics +(using the PGPLOT graphics library) with a minimum of effort. + +Restrictions on Use +------------------- + +WIP is copyright by the Berkeley-Illinois-Maryland Association (BIMA) +Project. All portions of WIP, including source code, may be used +subject only to the following restrictions: + +1. Unmodified WIP may be distributed freely on-site and may allow + unrestricted access worldwide + +2. Modified WIP must clearly note its non-standard nature and that + portion derived from WIP can not be claimed as proprietary + +3. Distribution of WIP requires formal notification to the WIP contact + listed below + +4. Receipt of WIP binds all recipients to the above restrictions and + to all restrictions on portions of WIP not developed by BIMA + (especially PGPLOT). + +Disclaimer +---------- + +We give no warranty, expressed or implied, for the software and/or +documentation provided, including, without limitation, warranty of +merchantability and warranty of fitness for a particular purpose. + +Trademark Acknowledgments +------------------------- + +UNIX is a registered trademark of AT&T. CRAY and UNICOS are registered +trademarks of Cray Research Inc. Sun is a registered trademark and Sun +Workstation a trademark of Sun Microsystems Inc. VAX and VMS are +registered trademarks of Digital Equipment Corporation. PGPLOT is +copyright by the California Institute of Technology (all rights +reserved). + +WIP Contact +----------- + +Please address all communication concerning WIP and this manual to: +WIP +James A. Morgan +Astronomy Program +University of Maryland +College Park, MD 20742 +INTERNET: morgan@astro.umd.edu +WWW: http://bima.astro.umd.edu/wip/ diff -Nurd wip.orig/makewip wip/makewip --- wip.orig/makewip 1996-08-16 10:15:21.000000000 -0400 +++ wip/makewip 2021-05-31 21:08:10.000000000 -0400 @@ -1,4 +1,4 @@ -#!/bin/csh -f +#!/bin/csh -ef # #* makewip - A script to build the WIP task from source code. #& jm @@ -198,6 +198,7 @@ # 01mar96 jm Added -lm to hpux default. Also changed double quotes # around literals to single quotes. # 16aug96 jm Added -lgl to sgi default libraries. +# 28sep04 sm Added host Darwin #-- # # Set up some "standard" defaults. @@ -208,7 +209,7 @@ # # The following is a list of acceptable hosts (all lowercase). # -set hostList = (sun solaris sgi u2 convex osf i386-linux aix hpux) +set hostList = (sun solaris sgi u2 convex osf i386-linux aix hpux ppc-darwin i386-darwin) # # Set up the defaults for the command line options. # @@ -325,6 +326,12 @@ endif else if ($v_uname[1] == 'HP-UX') then set wiphost = 'hpux' + else if ($v_uname[1] == 'Darwin') then + if (`uname -p` == 'i386') then + set wiphost = 'i386-darwin' + else + set wiphost = 'ppc-darwin' + endif else set wiphost = "$v_uname[1]" endif @@ -375,14 +382,9 @@ exit 1 endif # -# Set up the help file definition and test that it exists. +# Set up the help file definition # -set helpfile = -DHELPFILE=\"${wipdir}/wiphelp.dat\" -if ((-e ${wipdir}/wiphelp.dat) == 0) then - echo "### The directory pointed to by '-wip ${wipdir}' does not have" - echo '### the WIP help file in it. No default help file will be included.' - set helpfile = -DHELPFILE=\"wiphelp.dat\" -endif +set helpfile = -DHELPFILE=\"@PREFIX@/share/doc/wip/wiphelp.dat\" # # Identify the output executable. # @@ -572,17 +574,41 @@ set theF = "$theF -g" set cFlags = "$cFlags -g" endif +else if ("$wiphost" == 'ppc-darwin') then + set doranlib = 1 + set doliblm = 1 + set f77lib = ($f77lib -lgcc) + set theM = 'gfortran' + if ($dodebug > 0) then + set theM = "$theM -g" + set cFlags = "$cFlags -g" + else + set theM = "$theM -O" + set cFlags = "$cFlags -O" + endif +else if ("$wiphost" == 'i386-darwin') then + set doranlib = 1 + set doliblm = 1 + set f77lib = ($f77lib -lgcc) + set theM = 'gfortran' + if ($dodebug > 0) then + set theM = "$theM -g" + set cFlags = "$cFlags -g -DIEEEByteSwap" + else + set theM = "$theM -O" + set cFlags = "$cFlags -O -DIEEEByteSwap" + endif endif # # Modify the f77lib to handle C code compiled with GNU C. # -if (`echo ${ccname} | grep -c "gcc"` > 0) then - set doliblm = 1 - set f77lib = ( $f77lib -lgcc ) - if (`echo ${ccname} ${cFlags} | grep -c "ansi"` < 1) then - echo '### The gcc compiler should be called with the -ansi flag.' - endif -endif +#if (`echo ${ccname} | grep -c "gcc"` > 0) then +# set doliblm = 1 +# set f77lib = ( $f77lib -lgcc ) +# if (`echo ${ccname} ${cFlags} | grep -c "ansi"` < 1) then +# echo '### The gcc compiler should be called with the -ansi flag.' +# endif +#endif # # Include the math library on those machines that need it. # @@ -684,7 +710,6 @@ ranlib $wiplib endif endif - rm -fr $objList >& /dev/null endif # echo "" @@ -698,7 +723,6 @@ # echo "$theM -o ${bin} wipmain.o $wiplib $graphdir $graphlib $f77lib" $theM -o ${bin} wipmain.o $wiplib $graphdir $graphlib $f77lib -rm -fr wipmain.o >& /dev/null echo "" ls -l ${bin} echo "" diff -Nurd wip.orig/src/branch/wipmain.c wip/src/branch/wipmain.c --- wip.orig/src/branch/wipmain.c 1998-01-21 12:36:01.000000000 -0500 +++ wip/src/branch/wipmain.c 2021-05-31 21:36:47.000000000 -0400 @@ -70,9 +70,9 @@ } #ifdef PROTOTYPE -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) #else -void main(argc, argv) +int main(argc, argv) int argc; char *argv[]; #endif /* PROTOTYPE */ diff -Nurd wip.orig/src/drivers/basic.c wip/src/drivers/basic.c --- wip.orig/src/drivers/basic.c 1996-11-13 12:05:52.000000000 -0500 +++ wip/src/drivers/basic.c 2021-05-31 22:00:49.000000000 -0400 @@ -56,6 +56,9 @@ #define WIP_IMAGE #include "image.h" +int wipDebugMode(void); // also in declare.h, but might be forward + // declaration for local function + /* Define parameters needed just for this driver. */ #define TYPE_BYTE 1 diff -Nurd wip.orig/src/drivers/fits.c wip/src/drivers/fits.c --- wip.orig/src/drivers/fits.c 1996-11-13 12:42:06.000000000 -0500 +++ wip/src/drivers/fits.c 2021-05-31 22:02:10.000000000 -0400 @@ -47,6 +47,9 @@ #define WIP_IMAGE #include "image.h" +int wipDebugMode(void); // also in declare.h, but might be forward + // declaration for local function + /* Define parameters needed just for this driver. */ #define TYPE_BYTES 1 diff -Nurd wip.orig/src/drivers/miriad.c wip/src/drivers/miriad.c --- wip.orig/src/drivers/miriad.c 1996-11-13 12:10:22.000000000 -0500 +++ wip/src/drivers/miriad.c 2021-05-31 21:51:31.000000000 -0400 @@ -32,6 +32,9 @@ #define WIP_IMAGE #include "image.h" +int wipDebugMode(void); // also in declare.h, but might be forward + // declaration for local function + /* Define parameters needed just for this driver. */ #define CACHE_ENT 16 /* Alignment of cache items. */ diff -Nurd wip.orig/src/fit/fit.c wip/src/fit/fit.c --- wip.orig/src/fit/fit.c 1996-11-13 11:35:26.000000000 -0500 +++ wip/src/fit/fit.c 2021-05-31 22:03:37.000000000 -0400 @@ -28,6 +28,9 @@ #include "wip.h" +int wippolyfit(char *rest, float x[], float y[], int nxy, float sig[], + int nsig, int type, int npoly, float poly[]); // in fit/polyfit.c + /* Global variables for just this file */ static enum {NoFit, Linear, Polynomial, Legendre, Gaussian} PreviousFit;