Date: Sat, 24 Oct 2015 16:34:16 +0200 From: horst leitenmueller <horst.leitenmueller@liwest.at> To: olli hauer <ohauer@gmx.de> Cc: Kurt Jaeger <lists@opsec.eu>, ports@freebsd.org Subject: Re: pkg-message variable -> value replacements ? Message-ID: <1E6639EE-FB1A-47AC-AAA9-5F5FFEC0D9A8@liwest.at> In-Reply-To: <562B7554.8050903@gmx.de> References: <20151024112344.GQ19913@home.opsec.eu> <562B7554.8050903@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
hi all=20 this here works as expected! > $ mv pkg-message files/pkg-message.in >=20 > and in the $port/Makefile use SUB_FILES and SUB_LIST >=20 > SUB_FILES =3D pkg-message > SUB_LIST+=3D PREFIX=3D${NewVal) >=20 > This way the var %%PREFIX%% in pkg-message will be replaced with = NewVal only to add "Try SUB_FILES=3Dpkg-message to use %%PREFIX%% there.=E2=80=9D= results in not replacing the %%PREFIX%% inside of the pkg-message thanx for help > On 24 Oct 2015, at 14:11, olli hauer <ohauer@gmx.de> wrote: >=20 > On 2015-10-24 13:23, Kurt Jaeger wrote: >> Hi! >>=20 >> Is there a generic way in the ports framework to replace variables >> in a port pkg-message, e.g. ${PREFIX} ? >>=20 >=20 > Hi Kurt, >=20 > yes, there is. >=20 > $ mv pkg-message files/pkg-message.in >=20 > and in the $port/Makefile use SUB_FILES and SUB_LIST >=20 > SUB_FILES =3D pkg-message > SUB_LIST+=3D PREFIX=3D${NewVal) >=20 > This way the var %%PREFIX%% in pkg-message will be replaced with = NewVal >=20 > --=20 > olli > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1E6639EE-FB1A-47AC-AAA9-5F5FFEC0D9A8>