On 8/23/23 17:15, Mark Johnston wrote:
On Wed, Aug 23, 2023 at 10:04:45PM +0100, David Chisnall wrote:
Hi all,

I’ve been fighting this for over an hour and I presume someone else has done it 
in the past.  If something is built using the BSD bsd.prog.mk build goo, what 
do I need to do in the ports infrastructure to make sure that BINDIR and MANDIR 
are set, to make it install things in the right places?

So far, every invocation I’ve tried has made things differently wrong and the 
porters handbook is completely silent on the case of bmake.  Any help 
gratefully received!

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)

Thanks,

Kyle Evans

Reply via email to