wip stable port information

Package: wip
Version: 2p3
Revision: 1012
Description: Interactive graphics software package
License: OSI-Approved
Maintainer: None
BuildDepends: <<
aquaterm-dev (>= 1.0.0-1002),
gcc46,
libpng15,
readline5 (>= 5.0-1004),
x11-dev
<<
Depends: <<
aquaterm-shlibs (>= 1.0.0-1002),
gcc46-shlibs,
libpng15-shlibs,
pgplot (>= 5.2.2-2),
readline5-shlibs (>= 5.0-1004),
x11
<<
Source: ftp://ftp.astro.umd.edu/progs/morgan/%n%v.tar.gz
SourceDirectory: wip
Source-MD5: 189c36b5f8079673b0a5060168bb6070
PatchFile: %n.patch
PatchFile-MD5: 5fc68ab17b3e42bcfe0357ba771238ba
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
SetCFLAGS: -O2
CompileScript: <<
./makewip -readline %p/lib -pgplot %p/lib/pgplot -xlib /usr/X11R6/lib -linkopts '-Wl,-framework -Wl,Foundation -Wl,-bind_at_load -L%p/lib -lpng -lz -laquaterm'
<<
InstallScript: <<
install -d %i/bin %i/share/doc/%n/Examples
install -m 644 wiphelp.dat %i/share/doc/%n
install -m 755 wip %i/bin
<<
DocFiles: README COPYING doc/README:README.doc doc/Makefile doc/*.* doc/Examples/*:Examples/
Homepage: http://bima.astro.umd.edu/wip
DescDetail: <<
WIP is an interactive package with a simple to use command line user
interface used to produce high quality graphical output. WIP was
developed as part of the Berkeley-Illinois-Maryland Association (BIMA)
project.
<<
DescUsage: <<
See %p/share/doc/wip/Examples for examples of wip usage.
<<

wip stable port .patch

diff -ruN -x '*~' wip/COPYING wip.patched/COPYING
--- wip/COPYING 1969-12-31 19:00:00.000000000 -0500
+++ wip.patched/COPYING 2007-06-27 18:27:40.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 -ruN -x '*~' wip/makewip wip.patched/makewip
--- wip/makewip 1996-08-16 10:15:21.000000000 -0400
+++ wip.patched/makewip 2007-06-27 18:52:11.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 +576,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.
#

wip _unstable_ port .patch