diff options
Diffstat (limited to 'testing/lout/lout-3.40-makefile.patch')
-rw-r--r-- | testing/lout/lout-3.40-makefile.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/testing/lout/lout-3.40-makefile.patch b/testing/lout/lout-3.40-makefile.patch new file mode 100644 index 0000000000..c9bcbfade4 --- /dev/null +++ b/testing/lout/lout-3.40-makefile.patch @@ -0,0 +1,69 @@ +diff -Naur a/makefile b/makefile +--- a/makefile 2012-02-08 07:28:03.000000000 +0000 ++++ b/makefile 2019-01-06 23:12:11.464068094 +0000 +@@ -269,11 +269,11 @@ + # DEBUGGING = 1 + # TRACING = -g + +-PREFIX = /home/jeff ++PREFIX = /usr + BINDIR = $(PREFIX)/bin +-LOUTLIBDIR = $(PREFIX)/lout.lib +-LOUTDOCDIR = $(PREFIX)/lout.doc +-MANDIR = $(PREFIX)/lout.man ++LOUTLIBDIR = $(PREFIX)/share/lout ++LOUTDOCDIR = $(PREFIX)/share/doc/lout ++MANDIR = $(PREFIX)/share/man/man1 + + LIBFONT = font + LIBMAPS = maps +@@ -295,11 +295,9 @@ + ZLIB = + ZLIBPATH = + +-CC = gcc +- + RCOPY = cp -r + +-COPTS = -ansi -pedantic -Wall -O3 ++COPTS += -ansi -pedantic -Wall + + CFLAGS = -DOS_UNIX=$(OSUNIX) \ + -DOS_DOS=$(OSDOS) \ +@@ -333,7 +331,7 @@ + z49.o z50.o z51.o z52.o + + lout: $(OBJS) +- $(CC) -o lout $(OBJS) $(ZLIB) -lm ++ $(CC) $(COPTS) $(LDFLAGS) -o lout $(OBJS) $(ZLIB) -lm + chmod a+x lout + + $(OBJS): externs.h +@@ -341,7 +339,7 @@ + externs.h: + + prg2lout: prg2lout.c +- $(CC) $(COPTS) -o prg2lout prg2lout.c ++ $(CC) $(COPTS) $(LDFLAGS) -o prg2lout prg2lout.c + chmod a+x prg2lout + + all: lout prg2lout +@@ -355,7 +353,7 @@ + chmod 755 $(BINDIR)/prg2lout + @echo "" + @echo "(b) Installing library files into LOUTLIBDIR $(LOUTLIBDIR)" +- mkdir $(LOUTLIBDIR) ++ mkdir -p $(LOUTLIBDIR) + chmod 755 $(LOUTLIBDIR) + @echo "" + mkdir $(LOUTLIBDIR)/$(LIBINCL) +@@ -386,9 +384,6 @@ + mkdir $(LOUTLIBDIR)/$(LIBLOCA) + chmod 755 $(LOUTLIBDIR)/$(LIBLOCA) + @echo "" +- @echo "(c) Initializing run (should be silent, no errors expected)" +- $(BINDIR)/lout -x -s $(LOUTLIBDIR)/$(LIBINCL)/init +- @echo "" + @echo "(d) Changing mode of files just created by initializing run" + chmod 644 $(LOUTLIBDIR)/$(LIBDATA)/* + chmod 644 $(LOUTLIBDIR)/$(LIBHYPH)/* |