pkgsrc/print/mpage/patches/patch-aa

69 lines
1.8 KiB
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.7 2021/03/14 08:40:46 wiz Exp $
1998-08-07 13:08:53 +02:00
Fix build.
--- Makefile.orig 2017-06-28 08:07:41.000000000 +0000
+++ Makefile
@@ -32,7 +32,6 @@
# Set this to an ANSI compatible C compiler (preferably gcc)
# See also system specific settings below
#CC=cc
-CC=gcc
############################################################################
#
@@ -48,7 +47,7 @@ CC=gcc
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
# See glob.c for all possibilities
#
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
# PAGESIZE=Letter
-PAGESIZE=A4
+#PAGESIZE=A4
#
# Define your spooler type
@@ -58,11 +57,11 @@ PAGESIZE=A4
SPOOL_TYPE=BSD_SPOOLER
# PREFIX=e:/usr # OS/2 type
-PREFIX=/usr/local
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
+#PREFIX=/usr/local
#PREFIX=/usr
BINDIR=$(PREFIX)/bin
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
LIBDIR=$(PREFIX)/share
-MANDIR=$(PREFIX)/man/man1
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
+#MANDIR=$(PREFIX)/man/man1
#
# A default encoding is given in encoding.h. Setting ENCODING=1 will
@@ -114,8 +113,8 @@ O = .o
# Choose one of the following CFLAGS/CC definitions:
# If you are using gcc, you probably don't need to change anything here.
-# Linux:
-CFLAGS = -O2 -s $(DEFS) -Wall
+# Linux or BSD:
+CFLAGS += -O2 -s $(DEFS) -Wall
# AIX (xlC on aix 4):
#CFLAGS = -O2 -s $(DEFS)
@@ -158,7 +157,7 @@ default: mpage$(E) msample$(E) mpage.1
@echo Done!
mpage$(E): $(MOBJ)
- $(CC) $(CFLAGS) -o mpage$(E) $(MOBJ) $(LIBS)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o mpage$(E) $(MOBJ) $(LIBS)
msample$(E): $(SOBJ)
$(CC) $(CFLAGS) -o msample$(E) $(SOBJ) $(LIBS)
@@ -189,7 +188,6 @@ install:
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
if [ ! -d $(LIBDIR)/mpage ] ; then mkdir -p $(LIBDIR)/mpage ; fi
if [ ! -d $(BINDIR) ] ; then mkdir -p $(BINDIR) ; fi
if [ ! -d $(MANDIR) ] ; then mkdir -p $(MANDIR) ; fi
- cp mpage$(E) $(BINDIR)
- cp mpage.1 $(MANDIR)
Update to 2.5.5. (I noticed old version was not on download site last year some time.) Add another downlaod site. Make this use PKGMANDIR. Changes are: November 2006 - Released version 2.5.5 - apply Fedora restricted font and scale patches September 2005 - usage fixes - use /tmp instead of /usr/tmp - Duplex featrure settings go into %%BeginSetup section. November 2004 - Small updates to manual page May 2004 - Released version 2.5.4 - Do not explicitely switch of duplex mode when -t is not given. - Add redhat utf-8 patch - Add -u option to switch off utf-8 checking August 2003 RedHat fixes - check for empy optarg in arg processing. Suggested by J.D. Laub <jdl@access-health.com>: - -V option to show mpage version - -- option to stop process options (remaing args are files) - add -- option to prprog when filename starts with a -. From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> - %% and \n fixes for Duplex Beginfeature settings. October 2002 - Released version 2.5.3 - Start moving mapge into the GPL... - Fixed double 'showsheet' output when processing postscript. - Added A0 to page_desc in glob.c. - Remove newline after formfeed. (Gregory Bond <gnb@itga.com.au>) - the -X option now always prints the filename/header on the left and the physical page number on the right. Per suggestion of Marc Branchaud <marcnarc@xcert.com> - From Neil Brown <neilb@cse.unsw.edu.au>: define showheet using the load operator instead of the bind operator. This might solve situations where showpage is redefined elsewhere. - From Ilgiz Latypov <ilgizl@pcauto.comk>: -J option to set an initial value to the pagenum counter. - Improved processing of "BeginDocument/EndDocument" directives resulting in much better handling of included EPS graphics. Should improve processing of dvips files a lot... Jun 2002 from: jdl@access-health.com - When processing stdin, 'pr' was hardcoded instead of using the prprog variable. - Removed useless strcpy when processing command line args (could even give unpredictable results) from: dlarson@brookings.net - explicitely set duplex printing to false in the default case. from: George.Pajari@Faximum.com - using -m while printing in duplex creates useless margins: punching holes may go through the printed areas on one of the sides. Jan 2002 Marcel J.E. Mol marcel@mesa.nl - lib/mpage -> share/mpage Nov 2001 Marcel J.E. Mol marcel@mesa.nl - Changes from redhat * use mkstemp instead of mktemp. * kanji support. Oct 2000 Marcel J.E. Mol marcel@mesa.nl - Added A1 and A2 to page_desc in glob.c. Aug 1999 Marcel J.E. Mol marcel@mesa.nl - Added -e option and related code from Enrique Melendez Asensio <ema@csn.es> to allow 4,1,2,3 booklets... Needs cleanup and extended to txt too. - Patch from Gabor Ribarik <ribarik@math-inst.hu> to take of dvips(k) 5.78's output if it contains many postscript figures. (see indoc variable in post.c) He (or actually Attila Karpati) also implemented multiple -j options. Fix the %%Page director when pages are skipped (with -j). - Include amiga port from Andreas R. Kleinert <info@ar-kleinert.de>: * added smakefile, smakefile.ppc and SCOPTIONS * added #ifdef AMIGA section to mpage.h * mpage.h now #undefs MAXINT if already #define (before re-#defining it iself) * LIBDIR has been #define within SCOPTIONS; used MPAGE: assign, which you may redirect yourself, then... Jun 1998 Marcel J.E. Mol marcel@mesa.nl - Clipping logical page was terribly wrong. This was visible when specifying negative pagemargins (-M). Apr 1998 Marcel J.E. Mol marcel@mesa.nl - Corrected types (lvirden@cas.org) Mar 1998 Marcel J.E. Mol marcel@mesa.nl - for EPS files that have %%Trailer and are included in PS files mpage will stop after the first %%Trailer. Made check on %%Trailer (and %%PSTrailer) a runtime option -k ('kill on trailer'); - When input text file has no newline at last line, mpage forgot to print that line... - Updated manual page and usage (lm@cs.rmit.edu.au) - warning in -b option failed. - Changed defining paper types (to add new papger tpyes, just add to the paper array in glob.c). Jan 1998 Marcel J.E. Mol marcel@mesa.nl - Removed save/restore statements for PS input processing. They seem to generate 'memory overflow' errors. - Removed 'TexDict begin' additions for dvips files. - OS/2 changes (Alexander Mai <st002279@hrzpub.tu-darmstadt.de>) - Makefile: create install dirs if not there (jwessel@uiuc.edu) - Check for %PSTrailer (for Mathematis program) (jwessel@uiuc.edu) - version 2.5 introduced bug in handling formfeed in text files. Fixed.
2007-03-17 02:11:22 +01:00
- -cp Encodings/* $(LIBDIR)/mpage
- -chmod 644 $(LIBDIR)/mpage/*
+ $(BSD_INSTALL_PROGRAM) mpage$(E) $(BINDIR)
+ $(BSD_INSTALL_MAN) mpage.1 $(MANDIR)
+ $(BSD_INSTALL_DATA) Encodings/* $(LIBDIR)/mpage