diff options
Diffstat (limited to 'textproc/lout/patches')
-rw-r--r-- | textproc/lout/patches/patch-aa | 45 | ||||
-rw-r--r-- | textproc/lout/patches/patch-ab | 61 |
2 files changed, 106 insertions, 0 deletions
diff --git a/textproc/lout/patches/patch-aa b/textproc/lout/patches/patch-aa new file mode 100644 index 00000000000..42e3408f7ef --- /dev/null +++ b/textproc/lout/patches/patch-aa @@ -0,0 +1,45 @@ +$NetBSD: patch-aa,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ + +--- makefile.orig Mon Nov 2 11:31:56 1998 ++++ makefile Mon Nov 2 11:41:40 1998 +@@ -251,14 +251,14 @@ + DBFIX = 0 + + USESTAT = 1 +-SAFEDFT = 0 ++SAFEDFT = 1 + + COLLATE = 1 + +-BINDIR = /usr/staff/jeff/bin +-LIBDIR = /usr/staff/jeff/lout.lib +-DOCDIR = /usr/staff/jeff/lout.doc +-MANDIR = /usr/staff/jeff/lout.man ++BINDIR = @PREFIX@/bin ++LIBDIR = @PREFIX@/share/lout ++DOCDIR = @PREFIX@/share/doc/lout ++MANDIR = @PREFIX@/man/man1 + + LIBFONT = font + LIBMAPS = maps +@@ -274,8 +274,8 @@ + LOC_FR = fr + LOC_DE = de + +-PDF_COMPRESSION = 0 +-ZLIB = ++PDF_COMPRESSION = 1 ++ZLIB = -lz + ZLIBPATH = + + CC = gcc +@@ -312,6 +312,9 @@ + z25.o z26.o z27.o z28.o z29.o z30.o z31.o z32.o \ + z33.o z34.o z35.o z36.o z37.o z38.o z39.o z40.o \ + z41.o z42.o z43.o z44.o z45.o z46.o z47.o z48.o ++ ++all: lout c2lout ++allinstall: install installman installdoc + + lout: $(OBJS) + $(CC) -o lout $(OBJS) $(ZLIB) -lm diff --git a/textproc/lout/patches/patch-ab b/textproc/lout/patches/patch-ab new file mode 100644 index 00000000000..8b76decbf4c --- /dev/null +++ b/textproc/lout/patches/patch-ab @@ -0,0 +1,61 @@ +$NetBSD: patch-ab,v 1.1.1.1 1998/11/09 18:05:10 tsarna Exp $ + +Fixes bogus PDF output. Will be fixed in next release. + +--- z48.c.orig Tue Apr 7 00:41:11 1998 ++++ z48.c Mon Nov 9 11:17:06 1998 +@@ -3038,17 +3038,14 @@ + g_page_h_origin = g_page_v_origin = 0; + g_page_line_width = in_line_width; + +- g_graphics_vars[k_in] = IN; +- g_graphics_vars[k_cm] = CM; +- g_graphics_vars[k_pt] = PT; +- g_graphics_vars[k_em] = EM; + g_graphics_vars[k_xsize] = 0; /* undefined */ + g_graphics_vars[k_ysize] = 0; /* undefined */ + g_graphics_vars[k_xmark] = 0; /* undefined */ + g_graphics_vars[k_ymark] = 0; /* undefined */ +- g_graphics_vars[k_loutf] = 0; /* undefined */ +- g_graphics_vars[k_loutv] = 0; /* undefined */ +- g_graphics_vars[k_louts] = 0; /* undefined */ ++ ++ g_units[k_loutf] = 0; /* undefined */ ++ g_units[k_loutv] = 0; /* undefined */ ++ g_units[k_louts] = 0; /* undefined */ + + g_ET_pending = FALSE; + g_TJ_pending = FALSE; +@@ -3636,17 +3633,25 @@ + /* + write out trailer + */ ++/* uwe: comments can appear in the body only. + if (g_PDF_debug) + fprintf(in_fp, "%%\n%% trailer:\n%%\n"); ++ */ ++ fputs("trailer\n<<\n", in_fp); ++ ++ fprintf(in_fp, "/Size %u\n", g_next_objnum); ++ ++ fputs("/Root ", in_fp); ++ PDFObject_WriteRef(in_fp, catalog_obj_num); ++ fputc('\n', in_fp); + +- fputs("trailer\n" +- "<< ", in_fp); +- fprintf(in_fp, "/Size %u ", g_next_objnum); +- fputs("/Root ", in_fp); PDFObject_WriteRef(in_fp, catalog_obj_num); +- fputs(" /Info ", in_fp); PDFObject_WriteRef(in_fp, info_obj_num); ++ fputs("/Info ", in_fp); ++ PDFObject_WriteRef(in_fp, info_obj_num); ++ fputc('\n', in_fp); + +- fprintf(in_fp, " >>\n" +- "startxref %u\n", xref_start); ++ fprintf(in_fp, ">>\n" ++ "startxref\n" ++ "%u\n", xref_start); + fputs("%%EOF\n", in_fp); + /* + memory deallocation (no need to dispose of the qsave_marking_stack because it's always |