Re: Correct install locations for things using the base system make infrastructure

From: Felix Palmen <zirias_at_freebsd.org>
Date: Thu, 24 Aug 2023 06:11:38 UTC
* Kyle Evans <kevans@FreeBSD.org> [20230823 18:58]:
> On 8/23/23 17:15, Mark Johnston wrote:
> > 
> > ftp/netdumpd does this.  The recipe seems to be:
> > 
> > MAKE_ARGS+=BINDIR=${PREFIX}/bin
> > 
> > etc.
> > 
> 
> Right, the two key things I noted when adding sysutils/quickjail is that
> with bsd.prog.mk you'll need USES=uidfix, and then
> 
> MAKE_ENV+=      BINDIR="${PREFIX}/bin" \
> 
>                 MANDIR="${PREFIX}/share/man/man"
> 
> 
> (Both of which I ${MKDIR} in pre-install)

JFTR, all of these issues can be avoided in a Makefile using
bsd.prog.mk, so it *might* be an option to try and get it fixed
upstream.

For reference, here's my (truly minimal, but AFAIK correct) example:
https://github.com/Zirias/unix-selfauth-helper/blob/master/Makefile

Cheers, Felix

-- 
 Felix Palmen <zirias@FreeBSD.org>     {private}   felix@palmen-it.de
 -- ports committer --                     {web}  http://palmen-it.de
 {pgp public key}  http://palmen-it.de/pub.txt
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231