From owner-freebsd-ports Sat Aug 16 15:01:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA12657 for ports-outgoing; Sat, 16 Aug 1997 15:01:36 -0700 (PDT) Received: from earth.mat.net (root@earth.mat.net [206.246.122.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id PAA12652 for ; Sat, 16 Aug 1997 15:01:33 -0700 (PDT) Received: from Journey2.mat.net (journey2.mat.net [206.246.122.116]) by earth.mat.net (8.6.12/8.6.12) with SMTP id SAA14590 for ; Sat, 16 Aug 1997 18:01:29 -0400 Date: Sat, 16 Aug 1997 18:01:25 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@Journey2.mat.net To: FreeBSD Ports Subject: setting a var Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------