home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!ihz.compuserve.com!proven
- From: proven@csi.compuserve.com (Chris Provenzano)
- Subject: Spread Sheet Calculator for 386bsd
- Message-ID: <C0nL04.Arq@csi.compuserve.com>
- Organization: CompuServe Incorporated
- Date: Sun, 10 Jan 1993 19:33:40 GMT
- Lines: 199
-
- Below is a patch for the Makefile to get sc-6.21 up and running on 386bsd.
- Sc is a Spread Sheet Calculator which uses your standard term for display.
-
- Could someone tell me where I should put the sources/binaries to get them
- available as a package for 386bsd.
-
- Chris Provenzano proven@csi.compuserve.com
-
-
- --------------------------------begin patch ------------------------------
- *** /tmp/,RCSt1008255 Sat Jan 9 14:06:23 1993
- --- Makefile Sat Jan 9 13:51:29 1993
- ***************
- *** 17,35 ****
- NAME=SC
-
- # This is where the install step puts it.
- ! #EXDIR=/site/bin
- ! EXDIR=/usr/local/bin
-
- # This is where the man page goes.
- ! #MANDIR=/usr/local/src/man/man1 # reno
- ! #MANEXT=1 # reno
- ! MANDIR=/usr/man/manl
- ! MANEXT=l
- ! MANMODE=644
-
- # This is where the library file (tutorial) goes.
- ! #LIBDIR=/usr/local/share/$(name) # reno
- ! LIBDIR=/usr/local/lib/$(name)
-
- # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
- SIMPLE=
- --- 17,34 ----
- NAME=SC
-
- # This is where the install step puts it.
- ! #EXDIR=/usr/local/bin
- ! EXDIR=$${HOME}/bin
-
- # This is where the man page goes.
- ! #MANDIR=/usr/local/man/man1
- ! MANDIR=$${HOME}/man/man1
- ! MANMODE=444
- ! MANEXT=1
-
- # This is where the library file (tutorial) goes.
- ! #LIBDIR=/usr/local/share/$(name)
- ! LIBDIR=$${HOME}/lib/$(name)
-
- # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
- SIMPLE=
- ***************
- *** 73,84 ****
- # Set RE_COMP if you have the re_comp/re_exec regular expression routines
- # (most BSD based systems do).
- #RE_COMP=-DRE_COMP
- ! RE_COMP=
-
- # Set REGCMP if you have the regcmp/regex regular expression routines
- # (most System V based systems do)
- ! REGCMP=-DREGCMP
- #REGCMP=
-
- # This is the name of a pager like "more".
- # "pg" may be appropriate for SYSV.
- --- 72,85 ----
- # Set RE_COMP if you have the re_comp/re_exec regular expression routines
- # (most BSD based systems do).
- #RE_COMP=-DRE_COMP
- ! #RE_COMP=
-
- # Set REGCMP if you have the regcmp/regex regular expression routines
- # (most System V based systems do)
- ! #REGCMP=-DREGCMP
- #REGCMP=
- + # Set REGCMP to the below value if you have a 386bsd system.
- + REGCMP=-DREGCMP -Dregcmp=regcomp -Dregex=regexec
-
- # This is the name of a pager like "more".
- # "pg" may be appropriate for SYSV.
- ***************
- *** 149,157 ****
- # IF you have problems w/ your yacc try bison, Berkeley yacc, or
- # some other yacc. Some systems don't allow you to
- # increase the number of terminals (mostly AT&T), SCO's does though.
- ! #YACC=yacc
- # NOTE: Do not use with bison 1.16! Get a new version....
- ! YACC=bison -y
-
- # MS-DOS needs y_tab instead of the normal y.tab
- #YTAB=y_tab
- --- 150,158 ----
- # IF you have problems w/ your yacc try bison, Berkeley yacc, or
- # some other yacc. Some systems don't allow you to
- # increase the number of terminals (mostly AT&T), SCO's does though.
- ! YACC=yacc
- # NOTE: Do not use with bison 1.16! Get a new version....
- ! #YACC=bison -y
-
- # MS-DOS needs y_tab instead of the normal y.tab
- #YTAB=y_tab
- ***************
- *** 178,188 ****
- #CFLAGS= -DSYSV2 -g -pipe -traditional
-
- # Use this for system V.3
- ! CFLAGS= -DSYSV3 -O
- ! LDFLAGS= -s
- #CFLAGS= -DSYSV3 -g
- #LDFLAGS= -g
- ! LIB=-lm -lcurses -lPW
- # with gcc also use:
- #CC=gcc
- #CFLAGS= -DSYSV3 -O -pipe -traditional
- --- 179,189 ----
- #CFLAGS= -DSYSV2 -g -pipe -traditional
-
- # Use this for system V.3
- ! #CFLAGS= -DSYSV3 -O
- ! #LDFLAGS= -s
- #CFLAGS= -DSYSV3 -g
- #LDFLAGS= -g
- ! #LIB=-lm -lcurses -lPW
- # with gcc also use:
- #CC=gcc
- #CFLAGS= -DSYSV3 -O -pipe -traditional
- ***************
- *** 221,229 ****
- #CFLAGS= -O -DBSD42 -pipe
-
- # Use this for BSD 4.3
- ! #CFLAGS= -O -DBSD43
- ! #LDFLAGS=
- ! #LIB=-lm -lcurses -ltermcap
-
- # Use this for SunOS 4.X if you have the System V package installed.
- # This will link with the System V curses which is preferable to the
- --- 222,230 ----
- #CFLAGS= -O -DBSD42 -pipe
-
- # Use this for BSD 4.3
- ! CFLAGS= -O -DBSD43
- ! LDFLAGS=
- ! LIB=-lm -lcurses -ltermcap
-
- # Use this for SunOS 4.X if you have the System V package installed.
- # This will link with the System V curses which is preferable to the
- ***************
- *** 440,475 ****
- p$(name).man: p$(name).1
- nroff -man p$(name).1 > p$(name).man
-
- ! install: $(EXDIR)/$(name) $(EXDIR)/$(name)qref $(EXDIR)/p$(name) \
- ! $(LIBDIR)/tutorial \
- ! $(MANDIR)/$(name).$(MANEXT) $(MANDIR)/p$(name).$(MANEXT)
- !
- ! $(EXDIR)/$(name): $(name)
- ! cp $(name) $(EXDIR)
- ! strip $(EXDIR)/$(name)
- !
- ! $(EXDIR)/$(name)qref: $(name)qref
- ! cp $(name)qref $(EXDIR)
- ! strip $(EXDIR)/$(name)qref
- !
- ! $(EXDIR)/p$(name): p$(name)
- ! cp p$(name) $(EXDIR)
- ! strip $(EXDIR)/p$(name)
- !
- ! $(LIBDIR)/tutorial: tutorial.sc $(LIBDIR)
- ! cp tutorial.sc $(LIBDIR)/tutorial.$(name)
- ! chmod $(MANMODE) $(LIBDIR)/tutorial.$(name)
- !
- ! $(LIBDIR):
- ! mkdir $(LIBDIR)
- !
- ! $(MANDIR)/$(name).$(MANEXT): $(name).1
- ! cp $(name).1 $(MANDIR)/$(name).$(MANEXT)
- ! chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT)
- !
- ! $(MANDIR)/p$(name).$(MANEXT): p$(name).1
- ! cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT)
- ! chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT)
-
- diffs: ${SRC}
- for i in ${DOCS} ${SRC} ;\
- --- 441,452 ----
- p$(name).man: p$(name).1
- nroff -man p$(name).1 > p$(name).man
-
- ! install: $(name) $(name)qref p$(name) tutorial.sc $(name).1 p$(name).1
- ! install -c -s $(name) $(name)qref p$(name) $(EXDIR)
- ! -mkdir $(LIBDIR)
- ! install -c -m $(MANMODE) tutorial.sc $(LIBDIR)
- ! install -c -m $(MANMODE) $(name).1 $(MANDIR)
- ! install -c -m $(MANMODE) p$(name).1 $(MANDIR)
-
- diffs: ${SRC}
- for i in ${DOCS} ${SRC} ;\
-