Date: Sat, 24 May 2003 18:53:38 -0500 From: Alan Amesbury <amesbury@indefi.net> To: ports@freebsd.org Subject: Patch enclosed: mpage default page size Message-ID: <20030524235338.GA85959@nemesis.indefi.net>
next in thread | raw e-mail | index | archive | help
--WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The default page size for the mpage port (print/mpage) is A4. Unfortunately, not everyone prefers that as their default paper size. Attached is a patch that allows the default to be changed through arguments to 'make' when the port is built. When no arguments are specified, e.g., 'make all install' is done, the port builds normally. Paper size can be specified with 'make PAGESIZE=Letter'. The patch is meant to be applied to the mpage port itself. It seemed to work just fine on my copy of the port (not more than a day or two old). Files modified are the port's Makefile and files/patch-aa. Hope unified diffs are OK with you. My apologies if this is duplication of existing functionality elsewhere in that port. However, I didn't see another way to do this, short of modifying the Makefile contained in the working directory. -- Alan Amesbury amesbury@indefi.net - - - "Deep Thoughts," by Jack Handey - - - I remember how the other kids used to say that old Mister Swenson was the meanest man in town. But I said I thought he was nice, that he just didn't know how to show it. The meanest man in town, I said, was the mean old guy who lived in the big white house. "THAT'S MISTER SWENSON," they said. Oh, my mistake. --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=mpage_patch --- Makefile.orig Thu Feb 20 12:55:47 2003 +++ Makefile Sat May 24 18:38:26 2003 @@ -4,6 +4,10 @@ # # $FreeBSD: ports/print/mpage/Makefile,v 1.12 2003/02/20 18:55:47 knu Exp $ # +# +# To override mpage's default paper size of A4, set PAGESIZE to another +# page type. Some common values include "Letter" (8.5" x 11") and +# "Legal" (8.5" x 14"). PORTNAME= mpage PORTVERSION= 2.5.3 --- files/patch-aa.orig Thu Nov 7 05:32:00 2002 +++ files/patch-aa Sat May 24 18:35:07 2003 @@ -8,6 +8,15 @@ ############################################################################ # +@@ -40,7 +39,7 @@ + # See glob.c for all possibilities + # + # PAGESIZE=Letter +-PAGESIZE=A4 ++PAGESIZE?=A4 + + # + # Define your spooler type @@ -50,7 +49,6 @@ SPOOL_TYPE=BSD_SPOOLER --WIyZ46R2i8wDzkSu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030524235338.GA85959>