Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2021 10:04:52 -0700
From:      Chris <portmaster@bsdforge.com>
To:        Nuno Teixeira <eduardo@freebsd.org>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: port files/patch-*: PREFIX or LOCALBASE
Message-ID:  <d177693bae9d29e7d3633aca4469af71@bsdforge.com>
In-Reply-To: <CAFDf7ULM5nKT1bGO_h1c=Jdu8zS3W5kXoni8PgOpuKC-sX4hew@mail.gmail.com>
References:  <CAFDf7ULM5nKT1bGO_h1c=Jdu8zS3W5kXoni8PgOpuKC-sX4hew@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-05-19 01:42, Nuno Teixeira wrote:
> Hello,
> 
> I'm working in a port that have several files/patches like:
> 
> --- NsCDE/bin/nscde.orig        2021-05-02 07:33:53 UTC
> +++ NsCDE/bin/nscde
> @@ -42,16 +42,11 @@ fi
>  # Set main NSCDE and FVWM variables. Most of the things later
>  # depends on this core variables.
>  export FVWM_USERDIR="${HOME}/.NsCDE"
> -export NSCDE_ROOT=/opt/NsCDE
> -export FVWM_DATADIR="${NSCDE_ROOT}/config"
> +export NSCDE_ROOT=/usr/local
> +export FVWM_DATADIR="/usr/local/etc/nscde"
> (...)
> 
> What is more correct to substitute "/usr/local" as variable?
> ${PREFIX} or ${LOCALBASE}?
Right or wrong. I've always used ${PREFIX} with great success.
pkg(8) can assist you as well. Have a look at
make -DBATCH makeplist
to see what pkg thinks you mean.

HTH

--Chris
> 
> Thanks in advance,
> eduardo
> _______________________________________________
> 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?d177693bae9d29e7d3633aca4469af71>