diff options
Diffstat (limited to 'dev-util/sgb/files')
-rw-r--r-- | dev-util/sgb/files/sgb-20030623-destdir.patch | 76 | ||||
-rw-r--r-- | dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch | 47 |
2 files changed, 0 insertions, 123 deletions
diff --git a/dev-util/sgb/files/sgb-20030623-destdir.patch b/dev-util/sgb/files/sgb-20030623-destdir.patch deleted file mode 100644 index 0517d0ce46a3..000000000000 --- a/dev-util/sgb/files/sgb-20030623-destdir.patch +++ /dev/null @@ -1,76 +0,0 @@ -diff -Nuar -Nuar work.orig/Makefile work/Makefile ---- work.orig/Makefile 2009-09-22 01:59:32.521217030 +0000 -+++ work/Makefile 2009-09-22 01:58:42.494972535 +0000 -@@ -93,50 +93,48 @@ - $(CC) $(CFLAGS) -DDATA_DIRECTORY=\"$(DATADIR)/\" -c gb_io.c - - test_io: gb_io.o -- $(CC) $(CFLAGS) test_io.c gb_io.o -o test_io -+ $(CC) $(CFLAGS) $(LDFLAGS) test_io.c gb_io.o -o test_io - - test_graph: gb_graph.o -- $(CC) $(CFLAGS) test_graph.c gb_graph.o -o test_graph -+ $(CC) $(CFLAGS) $(LDFLAGS) test_graph.c gb_graph.o -o test_graph - - test_flip: gb_flip.o -- $(CC) $(CFLAGS) test_flip.c gb_flip.o -o test_flip -+ $(CC) $(CFLAGS) $(LDFLAGS) test_flip.c gb_flip.o -o test_flip - --tests: test_io test_graph test_flip -+tests: certified -+ -+tests_phase1: test_io test_graph test_flip - ./test_io - ./test_graph - ./test_flip -- make gb_sort.o -- make lib -- make test_sample -+ -+certified tests_phase2: tests_phase1 gb_sort.o lib test_sample - - ./test_sample > sample.out - diff test.gb test.correct - diff sample.out sample.correct -- rm test.gb sample.out test_io test_graph test_flip test_sample -+ echo rm test.gb sample.out test_io test_graph test_flip test_sample - echo "Congratulations --- the tests have all been passed." - touch certified - --install: lib -- if test ! -r certified; then echo "Please run 'make tests' first!"; fi -- test -r certified -- make installdata -- - mkdir $(LIBDIR) -- - cp libgb.a $(LIBDIR) -- - mkdir $(CWEBINPUTS) -- - cp -p boilerplate.w gb_types.w $(CWEBINPUTS) -- - mkdir $(INCLUDEDIR) -- - cp -p $(HEADERS) Makefile $(INCLUDEDIR) -+install: lib certified installdata -+ - mkdir -p $(DESTDIR)$(LIBDIR) -+ - cp libgb.a $(DESTDIR)$(LIBDIR) -+ - mkdir -p $(DESTDIR)$(CWEBINPUTS) -+ - cp -p boilerplate.w gb_types.w $(DESTDIR)$(CWEBINPUTS) -+ - mkdir -p $(DESTDIR)$(INCLUDEDIR) -+ - cp -p $(HEADERS) Makefile $(DESTDIR)$(INCLUDEDIR) - - installdata: $(DATAFILES) -- - mkdir $(SGBDIR) -- - mkdir $(DATADIR) -- - cp -p $(DATAFILES) $(DATADIR) -+ - mkdir -p $(DESTDIR)$(SGBDIR) -+ - mkdir -p $(DESTDIR)$(DATADIR) -+ - cp -p $(DATAFILES) $(DESTDIR)$(DATADIR) - - installdemos: lib $(DEMOS) -- - mkdir $(BINDIR) -- - mv $(DEMOS) $(BINDIR) -+ - mkdir -p $(DESTDIR)$(BINDIR) -+ - mv $(DEMOS) $(DESTDIR)$(BINDIR) - - uninstalldemos: -- - cd $(BINDIR); rm -f $(DEMOS) -+ - cd $(DESTDIR)$(BINDIR); rm -f $(DEMOS) - - doc: - tex abstract.plaintex diff --git a/dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch b/dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch deleted file mode 100644 index 4a96742f24eb..000000000000 --- a/dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -Nuar b/Makefile a/Makefile ---- b/Makefile 1999-12-27 22:27:24.000000000 +0000 -+++ a/Makefile 2009-09-21 11:49:40.000000000 +0000 -@@ -46,26 +46,14 @@ - - .SUFFIXES: .dvi .tex .w - --.tex.dvi: -- tex $*.tex -+all: libgb.a test_io test_graph test_flip demos - --.w.c: -- if test -r $*.ch; then ctangle $*.w $*.ch; else ctangle $*.w; fi -- --.w.tex: -- if test -r $*.ch; then cweave $*.w $*.ch; else cweave $*.w; fi -- --.w.o: -- make $*.c -- make $*.o -- --.w: -- make $*.c -- make $* -- --.w.dvi: -- make $*.tex -- make $*.dvi -+%.dvi: %.tex -+ tex $^ -+%.c: %.w -+ ctangle $^ -+%.tex: %.w -+ cweave $^ - - DATAFILES = anna.dat david.dat econ.dat games.dat homer.dat huck.dat \ - jean.dat lisa.dat miles.dat roget.dat words.dat -@@ -175,3 +163,9 @@ - - fulltar: $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC - tar cvf sgb.tar $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC -+ -+$(DEMOS) lib tests test_io test_graph test_flip: libgb.a -+ -+demos: $(DEMOS) -+ -+.PRECIOUS: .o .c .tex |