From owner-freebsd-ports@FreeBSD.ORG Sat May 24 16:53:39 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E106B37B401 for ; Sat, 24 May 2003 16:53:39 -0700 (PDT) Received: from mail.indefi.net (mail.indefi.net [63.224.25.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A89143F85 for ; Sat, 24 May 2003 16:53:39 -0700 (PDT) (envelope-from amesbury@indefi.net) Date: Sat, 24 May 2003 18:53:38 -0500 From: Alan Amesbury To: ports@freebsd.org Message-ID: <20030524235338.GA85959@nemesis.indefi.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Patch enclosed: mpage default page size X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2003 23:53:40 -0000 --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--