Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 21:01:35 +0200
From:      dirk.meyer@dinoex.sub.org (Dirk Meyer)
To:        freebsd-ports@FreeBSD.ORG
Subject:   Re: setting makevars to output from program, HOW?
Message-ID:  <Nkg32UCerE@dmeyer.dinoex.sub.org>
References:  <371DAEE1.DE743872@partitur.se><199904211105.EAA94009@silvia.hip.berkeley.edu><371DBBF4.582EC700@partitur.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Nkg32UCerE>