From owner-freebsd-ports Wed Apr 21 17:18:32 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mail.dinoex.sub.org (mail.dinoex.sub.de [195.243.29.14]) by hub.freebsd.org (Postfix) with ESMTP id BF4EF158F6 for ; Wed, 21 Apr 1999 17:18:08 -0700 (PDT) (envelope-from dirk.meyer@dinoex.sub.org) Received: (from uucp@localhost) by mail.dinoex.sub.org (8.9.1/8.9.1) with UUCP id CAA09061 for freebsd-ports@FreeBSD.ORG; Thu, 22 Apr 1999 02:17:39 +0200 (CEST) Received: from gate.dinoex.sub.org (dinoex@localhost) by net2.dinoex.sub.org (8.9.1/8.9.1) with BSMTP id VAA02544 for ; Wed, 21 Apr 1999 21:05:03 +0200 (CEST) To: freebsd-ports@FreeBSD.ORG Message-ID: From: dirk.meyer@dinoex.sub.org (Dirk Meyer) Organization: privat Subject: Re: setting makevars to output from program, HOW? Date: Wed, 21 Apr 1999 21:01:35 +0200 X-Mailer: Dinoex 1.70 References: <371DAEE1.DE743872@partitur.se><199904211105.EAA94009@silvia.hip.berkeley.edu><371DBBF4.582EC700@partitur.se> X-Gateway: ZCONNECT gate.dinoex.sub.org [UNIX/Connect v0.77-m5] X-PGP-Fingerprint: 44 16 EC 0A D3 3A 4F 28 8A 8A 47 93 F1 CF 2F 12 X-Copyright: (C) Copyright 1999 by Dirk Meyer -- All rights reserved. X-PGP-Key-Avail: mailto:pgp-public-keys@keys.de.pgp.net Subject:GET 0x331CDA5D X-ZC-VIA: 19990421000000S+2@dinoex.sub.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Palle Girgensohn wrote: > I realize that make describe will probably fail, but what if I use a ?= > to set some defaults? If the prog (apxs in this case) isn't found the > defaults will used, I guess? Will this be OK? : > > [...] > > userpath= "${PREFIX}/sbin ${PATH:S^:^ ^g}" > .for DIR in ${userpath} > .if exists (${DIR}/apxs) > __APXS_SBIN!= ${DIR}/apxs -q SBINDIR > __APXS_HTTPD!= ${DIR}/apxs -q TARGET > __APXS_LIBEXEC!= ${DIR}/apxs -q LIBEXECDIR > .endif > .endfor No, At the time the Makefile is read, the Variable Prefix might not be set. In this case your Makefile never uses the lines you wrote. I made a bad hack in my own Makefiles PREFIX!= /usr/local To give the default form bsd.port.mk to extend the build/install process. kind regards Dirk -- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany -- Tel. +49-5606-6512 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message