PageRenderTime 181ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/10.4/unstable/main/finkinfo/sci/wip.patch

https://github.com/danielj7/fink-dists
Patch | 167 lines | 167 code | 0 blank | 0 comment | 0 complexity | 5fc68ab17b3e42bcfe0357ba771238ba MD5 | raw file
  1. diff -ruN -x '*~' wip/COPYING wip.patched/COPYING
  2. --- wip/COPYING 1969-12-31 19:00:00.000000000 -0500
  3. +++ wip.patched/COPYING 2007-06-27 18:27:40.000000000 -0400
  4. @@ -0,0 +1,58 @@
  5. +From the WIP User's manual:
  6. +
  7. +WIP Description
  8. +---------------
  9. +
  10. +WIP is a graphics software package available (at least) on Sun
  11. +Workstations, VAX/VMS systems, Linux machines, Cray/UNICOS, and CONVEX
  12. +systems. WIP is intended to be used to generate high quality graphics
  13. +(using the PGPLOT graphics library) with a minimum of effort.
  14. +
  15. +Restrictions on Use
  16. +-------------------
  17. +
  18. +WIP is copyright by the Berkeley-Illinois-Maryland Association (BIMA)
  19. +Project. All portions of WIP, including source code, may be used
  20. +subject only to the following restrictions:
  21. +
  22. +1. Unmodified WIP may be distributed freely on-site and may allow
  23. + unrestricted access worldwide
  24. +
  25. +2. Modified WIP must clearly note its non-standard nature and that
  26. + portion derived from WIP can not be claimed as proprietary
  27. +
  28. +3. Distribution of WIP requires formal notification to the WIP contact
  29. + listed below
  30. +
  31. +4. Receipt of WIP binds all recipients to the above restrictions and
  32. + to all restrictions on portions of WIP not developed by BIMA
  33. + (especially PGPLOT).
  34. +
  35. +Disclaimer
  36. +----------
  37. +
  38. +We give no warranty, expressed or implied, for the software and/or
  39. +documentation provided, including, without limitation, warranty of
  40. +merchantability and warranty of fitness for a particular purpose.
  41. +
  42. +Trademark Acknowledgments
  43. +-------------------------
  44. +
  45. +UNIX is a registered trademark of AT&T. CRAY and UNICOS are registered
  46. +trademarks of Cray Research Inc. Sun is a registered trademark and Sun
  47. +Workstation a trademark of Sun Microsystems Inc. VAX and VMS are
  48. +registered trademarks of Digital Equipment Corporation. PGPLOT is
  49. +copyright by the California Institute of Technology (all rights
  50. +reserved).
  51. +
  52. +WIP Contact
  53. +-----------
  54. +
  55. +Please address all communication concerning WIP and this manual to:
  56. +WIP
  57. +James A. Morgan
  58. +Astronomy Program
  59. +University of Maryland
  60. +College Park, MD 20742
  61. +INTERNET: morgan@astro.umd.edu
  62. +WWW: http://bima.astro.umd.edu/wip/
  63. diff -ruN -x '*~' wip/makewip wip.patched/makewip
  64. --- wip/makewip 1996-08-16 10:15:21.000000000 -0400
  65. +++ wip.patched/makewip 2007-06-27 18:52:11.000000000 -0400
  66. @@ -1,4 +1,4 @@
  67. -#!/bin/csh -f
  68. +#!/bin/csh -ef
  69. #
  70. #* makewip - A script to build the WIP task from source code.
  71. #& jm
  72. @@ -198,6 +198,7 @@
  73. # 01mar96 jm Added -lm to hpux default. Also changed double quotes
  74. # around literals to single quotes.
  75. # 16aug96 jm Added -lgl to sgi default libraries.
  76. +# 28sep04 sm Added host Darwin
  77. #--
  78. #
  79. # Set up some "standard" defaults.
  80. @@ -208,7 +209,7 @@
  81. #
  82. # The following is a list of acceptable hosts (all lowercase).
  83. #
  84. -set hostList = (sun solaris sgi u2 convex osf i386-linux aix hpux)
  85. +set hostList = (sun solaris sgi u2 convex osf i386-linux aix hpux ppc-darwin i386-darwin)
  86. #
  87. # Set up the defaults for the command line options.
  88. #
  89. @@ -325,6 +326,12 @@
  90. endif
  91. else if ($v_uname[1] == 'HP-UX') then
  92. set wiphost = 'hpux'
  93. + else if ($v_uname[1] == 'Darwin') then
  94. + if (`uname -p` == 'i386') then
  95. + set wiphost = 'i386-darwin'
  96. + else
  97. + set wiphost = 'ppc-darwin'
  98. + endif
  99. else
  100. set wiphost = "$v_uname[1]"
  101. endif
  102. @@ -375,14 +382,9 @@
  103. exit 1
  104. endif
  105. #
  106. -# Set up the help file definition and test that it exists.
  107. +# Set up the help file definition
  108. #
  109. -set helpfile = -DHELPFILE=\"${wipdir}/wiphelp.dat\"
  110. -if ((-e ${wipdir}/wiphelp.dat) == 0) then
  111. - echo "### The directory pointed to by '-wip ${wipdir}' does not have"
  112. - echo '### the WIP help file in it. No default help file will be included.'
  113. - set helpfile = -DHELPFILE=\"wiphelp.dat\"
  114. -endif
  115. +set helpfile = -DHELPFILE=\"@PREFIX@/share/doc/wip/wiphelp.dat\"
  116. #
  117. # Identify the output executable.
  118. #
  119. @@ -572,17 +576,41 @@
  120. set theF = "$theF -g"
  121. set cFlags = "$cFlags -g"
  122. endif
  123. +else if ("$wiphost" == 'ppc-darwin') then
  124. + set doranlib = 1
  125. + set doliblm = 1
  126. + set f77lib = ($f77lib -lgcc)
  127. + set theM = 'gfortran'
  128. + if ($dodebug > 0) then
  129. + set theM = "$theM -g"
  130. + set cFlags = "$cFlags -g"
  131. + else
  132. + set theM = "$theM -O"
  133. + set cFlags = "$cFlags -O"
  134. + endif
  135. +else if ("$wiphost" == 'i386-darwin') then
  136. + set doranlib = 1
  137. + set doliblm = 1
  138. + set f77lib = ($f77lib -lgcc)
  139. + set theM = 'gfortran'
  140. + if ($dodebug > 0) then
  141. + set theM = "$theM -g"
  142. + set cFlags = "$cFlags -g -DIEEEByteSwap"
  143. + else
  144. + set theM = "$theM -O"
  145. + set cFlags = "$cFlags -O -DIEEEByteSwap"
  146. + endif
  147. endif
  148. #
  149. # Modify the f77lib to handle C code compiled with GNU C.
  150. #
  151. -if (`echo ${ccname} | grep -c "gcc"` > 0) then
  152. - set doliblm = 1
  153. - set f77lib = ( $f77lib -lgcc )
  154. - if (`echo ${ccname} ${cFlags} | grep -c "ansi"` < 1) then
  155. - echo '### The gcc compiler should be called with the -ansi flag.'
  156. - endif
  157. -endif
  158. +#if (`echo ${ccname} | grep -c "gcc"` > 0) then
  159. +# set doliblm = 1
  160. +# set f77lib = ( $f77lib -lgcc )
  161. +# if (`echo ${ccname} ${cFlags} | grep -c "ansi"` < 1) then
  162. +# echo '### The gcc compiler should be called with the -ansi flag.'
  163. +# endif
  164. +#endif
  165. #
  166. # Include the math library on those machines that need it.
  167. #