pkg-message variable -> value replacements ?

horst leitenmueller horst.leitenmueller at liwest.at
Sat Oct 24 14:34:18 UTC 2015


hi all 

this here works as expected!

> $ 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



only to add  "Try SUB_FILES=pkg-message to use %%PREFIX%% there.”
results in not replacing the %%PREFIX%% inside of the pkg-message

thanx for help

> On 24 Oct 2015, at 14:11, olli hauer <ohauer at gmx.de> wrote:
> 
> 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
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the freebsd-ports mailing list