home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11094 < prev    next >
Encoding:
Text File  |  1993-01-10  |  5.8 KB  |  209 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!ihz.compuserve.com!proven
  3. From: proven@csi.compuserve.com (Chris Provenzano)
  4. Subject: Spread Sheet Calculator for 386bsd
  5. Message-ID: <C0nL04.Arq@csi.compuserve.com>
  6. Organization: CompuServe Incorporated
  7. Date: Sun, 10 Jan 1993 19:33:40 GMT
  8. Lines: 199
  9.  
  10. Below is a patch for the Makefile to get sc-6.21 up and running on 386bsd.
  11. Sc is a Spread Sheet Calculator which uses your standard term for display.
  12.  
  13. Could someone tell me where I should put the sources/binaries to get them
  14. available as a package for 386bsd.
  15.  
  16. Chris Provenzano                proven@csi.compuserve.com
  17.  
  18.  
  19. --------------------------------begin patch ------------------------------
  20. *** /tmp/,RCSt1008255    Sat Jan  9 14:06:23 1993
  21. --- Makefile    Sat Jan  9 13:51:29 1993
  22. ***************
  23. *** 17,35 ****
  24.   NAME=SC
  25.   
  26.   # This is where the install step puts it.
  27. ! #EXDIR=/site/bin
  28. ! EXDIR=/usr/local/bin
  29.   
  30.   # This is where the man page goes.
  31. ! #MANDIR=/usr/local/src/man/man1    # reno
  32. ! #MANEXT=1            # reno
  33. ! MANDIR=/usr/man/manl
  34. ! MANEXT=l
  35. ! MANMODE=644
  36.   
  37.   # This is where the library file (tutorial) goes.
  38. ! #LIBDIR=/usr/local/share/$(name) # reno
  39. ! LIBDIR=/usr/local/lib/$(name)
  40.   
  41.   # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
  42.   SIMPLE=
  43. --- 17,34 ----
  44.   NAME=SC
  45.   
  46.   # This is where the install step puts it.
  47. ! #EXDIR=/usr/local/bin
  48. ! EXDIR=$${HOME}/bin
  49.   
  50.   # This is where the man page goes.
  51. ! #MANDIR=/usr/local/man/man1
  52. ! MANDIR=$${HOME}/man/man1
  53. ! MANMODE=444
  54. ! MANEXT=1            
  55.   
  56.   # This is where the library file (tutorial) goes.
  57. ! #LIBDIR=/usr/local/share/$(name)
  58. ! LIBDIR=$${HOME}/lib/$(name)
  59.   
  60.   # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
  61.   SIMPLE=
  62. ***************
  63. *** 73,84 ****
  64.   # Set RE_COMP if you have the re_comp/re_exec regular expression routines
  65.   # (most BSD based systems do).
  66.   #RE_COMP=-DRE_COMP
  67. ! RE_COMP=
  68.   
  69.   # Set REGCMP if you have the regcmp/regex regular expression routines
  70.   # (most System V based systems do)
  71. ! REGCMP=-DREGCMP
  72.   #REGCMP=
  73.   
  74.   # This is the name of a pager like "more".
  75.   # "pg" may be appropriate for SYSV.
  76. --- 72,85 ----
  77.   # Set RE_COMP if you have the re_comp/re_exec regular expression routines
  78.   # (most BSD based systems do).
  79.   #RE_COMP=-DRE_COMP
  80. ! #RE_COMP=
  81.   
  82.   # Set REGCMP if you have the regcmp/regex regular expression routines
  83.   # (most System V based systems do)
  84. ! #REGCMP=-DREGCMP
  85.   #REGCMP=
  86. + # Set REGCMP to the below value if you have a 386bsd system.
  87. + REGCMP=-DREGCMP -Dregcmp=regcomp -Dregex=regexec
  88.   
  89.   # This is the name of a pager like "more".
  90.   # "pg" may be appropriate for SYSV.
  91. ***************
  92. *** 149,157 ****
  93.   # IF you have problems w/ your yacc try bison, Berkeley yacc, or
  94.   # some other yacc. Some systems don't allow you to
  95.   # increase the number of terminals (mostly AT&T), SCO's does though.
  96. ! #YACC=yacc
  97.   # NOTE: Do not use with bison 1.16! Get a new version....
  98. ! YACC=bison -y
  99.   
  100.   # MS-DOS needs y_tab instead of the normal y.tab
  101.   #YTAB=y_tab
  102. --- 150,158 ----
  103.   # IF you have problems w/ your yacc try bison, Berkeley yacc, or
  104.   # some other yacc. Some systems don't allow you to
  105.   # increase the number of terminals (mostly AT&T), SCO's does though.
  106. ! YACC=yacc
  107.   # NOTE: Do not use with bison 1.16! Get a new version....
  108. ! #YACC=bison -y
  109.   
  110.   # MS-DOS needs y_tab instead of the normal y.tab
  111.   #YTAB=y_tab
  112. ***************
  113. *** 178,188 ****
  114.   #CFLAGS=  -DSYSV2 -g -pipe -traditional
  115.   
  116.   # Use this for system V.3
  117. ! CFLAGS=  -DSYSV3 -O
  118. ! LDFLAGS= -s
  119.   #CFLAGS=  -DSYSV3 -g
  120.   #LDFLAGS= -g
  121. ! LIB=-lm -lcurses -lPW
  122.   # with gcc also use:
  123.   #CC=gcc
  124.   #CFLAGS=  -DSYSV3 -O -pipe -traditional
  125. --- 179,189 ----
  126.   #CFLAGS=  -DSYSV2 -g -pipe -traditional
  127.   
  128.   # Use this for system V.3
  129. ! #CFLAGS=  -DSYSV3 -O
  130. ! #LDFLAGS= -s
  131.   #CFLAGS=  -DSYSV3 -g
  132.   #LDFLAGS= -g
  133. ! #LIB=-lm -lcurses -lPW
  134.   # with gcc also use:
  135.   #CC=gcc
  136.   #CFLAGS=  -DSYSV3 -O -pipe -traditional
  137. ***************
  138. *** 221,229 ****
  139.   #CFLAGS= -O -DBSD42 -pipe
  140.   
  141.   # Use this for BSD 4.3
  142. ! #CFLAGS= -O -DBSD43
  143. ! #LDFLAGS=
  144. ! #LIB=-lm -lcurses -ltermcap
  145.   
  146.   # Use this for SunOS 4.X if you have the System V package installed.
  147.   # This will link with the System V curses which is preferable to the
  148. --- 222,230 ----
  149.   #CFLAGS= -O -DBSD42 -pipe
  150.   
  151.   # Use this for BSD 4.3
  152. ! CFLAGS= -O -DBSD43
  153. ! LDFLAGS=
  154. ! LIB=-lm -lcurses -ltermcap
  155.   
  156.   # Use this for SunOS 4.X if you have the System V package installed.
  157.   # This will link with the System V curses which is preferable to the
  158. ***************
  159. *** 440,475 ****
  160.   p$(name).man:    p$(name).1
  161.       nroff -man p$(name).1 > p$(name).man
  162.   
  163. ! install: $(EXDIR)/$(name) $(EXDIR)/$(name)qref $(EXDIR)/p$(name) \
  164. !      $(LIBDIR)/tutorial \
  165. !      $(MANDIR)/$(name).$(MANEXT) $(MANDIR)/p$(name).$(MANEXT)
  166. ! $(EXDIR)/$(name): $(name)
  167. !     cp $(name) $(EXDIR)
  168. !     strip $(EXDIR)/$(name)
  169. ! $(EXDIR)/$(name)qref: $(name)qref
  170. !     cp $(name)qref $(EXDIR)
  171. !     strip $(EXDIR)/$(name)qref
  172. ! $(EXDIR)/p$(name): p$(name)
  173. !     cp p$(name) $(EXDIR)
  174. !     strip $(EXDIR)/p$(name)
  175. ! $(LIBDIR)/tutorial: tutorial.sc $(LIBDIR)
  176. !     cp tutorial.sc $(LIBDIR)/tutorial.$(name)
  177. !     chmod $(MANMODE) $(LIBDIR)/tutorial.$(name)
  178. ! $(LIBDIR):
  179. !     mkdir $(LIBDIR)
  180. ! $(MANDIR)/$(name).$(MANEXT): $(name).1
  181. !     cp $(name).1 $(MANDIR)/$(name).$(MANEXT)
  182. !     chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT)
  183. ! $(MANDIR)/p$(name).$(MANEXT): p$(name).1
  184. !     cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT)
  185. !     chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT)
  186.   
  187.   diffs: ${SRC}
  188.       for i in ${DOCS} ${SRC}  ;\
  189. --- 441,452 ----
  190.   p$(name).man:    p$(name).1
  191.       nroff -man p$(name).1 > p$(name).man
  192.   
  193. ! install: $(name) $(name)qref p$(name) tutorial.sc $(name).1 p$(name).1
  194. !     install -c -s $(name) $(name)qref p$(name) $(EXDIR)
  195. !     -mkdir $(LIBDIR)
  196. !     install -c -m $(MANMODE) tutorial.sc $(LIBDIR)
  197. !     install -c -m $(MANMODE) $(name).1 $(MANDIR)
  198. !     install -c -m $(MANMODE) p$(name).1 $(MANDIR)
  199.   
  200.   diffs: ${SRC}
  201.       for i in ${DOCS} ${SRC}  ;\
  202.