Re: How to override port Makefile to point to local directory?

From: Tatsuki Makino <tatsuki_makino_at_hotmail.com>
Date: Mon, 16 May 2022 06:25:02 UTC
Hello.

Pat Maddox wrote on 2022/05/16 15:08:
> I figure there’s gotta be some sort of `make SRCDIR=. install` to bypass fetch & extract, but this will do for now.
> 

Is it a variable DISTDIR or PACKAGES?

If you write the following in /etc/make.conf, you can use a different location only for certain port.

.if !empty(.CURDIR:tA:M/home/you/DEV/<category>/port-im-developing)
DISTDIR= /home/you/dir_for_src
PACKAGES= /home/you/dir_for_put_pkg
WRKDIRPREFIX= /tmp/wrkdir
.endif

Regards.