From owner-freebsd-ports Sat Aug 16 15:39:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA13817 for ports-outgoing; Sat, 16 Aug 1997 15:39:37 -0700 (PDT) Received: from peedub.muc.de (newpc.muc.ditec.de [194.120.126.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA13812 for ; Sat, 16 Aug 1997 15:39:33 -0700 (PDT) Received: from peedub.muc.de (localhost [127.0.0.1]) by peedub.muc.de (8.8.6/8.6.9) with ESMTP id AAA01398 for ; Sun, 17 Aug 1997 00:37:41 GMT Message-Id: <199708170037.AAA01398@peedub.muc.de> X-Mailer: exmh version 2.0delta 6/3/97 To: freebsd-ports@freebsd.org Subject: Re: setting a var Reply-To: Gary Jennejohn In-reply-to: Your message of "Sat, 16 Aug 1997 18:01:25 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 17 Aug 1997 00:37:41 +0000 From: Gary Jennejohn Sender: owner-freebsd-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Chuck Robey writes: >I have a problem, I'd love to hear suggestions as to how to fix it/ > >I have a port nearly ready, of a2ps. The trouble is that, in building the >port, a variable is required to be set, that of PAPERSIZE. I have that >part of it completely worked out (very nicely) but I want to force, in the >package phase, the veriable PAPERSIZE to be embedded into the package >name. > >In itself, that's no problem, and I have that done. The trouble comes in >when I want to insure that the same PAPERSIZE variable that was used in >building the port, is used in doing the packaging. At the beginning of >the build, I drop a ".media" file into $(WRKDIR), having the value of the >PAPERSIZE variable. That works fine. What I want is to be able to >intialize (during the package phase) PAPERSIZE from reading the text in >that .media file. THAT's the part I can't yet get done. > >I know I could easily do this using GNU make, but this is the port's >makefile, not the source's, and bsd make executes it. Anyone know how I >can get this done? > >One thing ... I tried doing PAPERSIZE!= cat $(WRKDIR)/.media ... it says >work/.media: not found. Like it's trying to execute the file. > a2ps is already part of apsfilter. Take a look at how apsfilter handles it maybe ? Or, drop the port since it's redundant ? --- Gary Jennejohn Home - garyj@muc.de Work - gjennejohn@frt.dec.com