Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 2015 14:11:00 +0200
From:      olli hauer <ohauer@gmx.de>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        ports@freebsd.org
Subject:   Re: pkg-message variable -> value replacements ?
Message-ID:  <562B7554.8050903@gmx.de>
In-Reply-To: <20151024112344.GQ19913@home.opsec.eu>
References:  <20151024112344.GQ19913@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2015-10-24 13:23, Kurt Jaeger wrote:
> Hi!
> 
> Is there a generic way in the ports framework to replace variables
> in a port pkg-message, e.g. ${PREFIX} ?
> 

Hi Kurt,

yes, there is.

$ mv pkg-message files/pkg-message.in

and in the $port/Makefile use SUB_FILES and SUB_LIST

SUB_FILES = pkg-message
SUB_LIST+=  PREFIX=${NewVal)

This way the var %%PREFIX%% in pkg-message will be replaced with NewVal

-- 
olli



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