Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2006 01:34:45 +0200
From:      "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
To:        Rong-En Fan <rafan@infor.org>,  freebsd-ports@FreeBSD.org
Subject:   Re: category for local ports
Message-ID:  <444D6095.6030209@gmx.de>
In-Reply-To: <20060424223523.GD749@picobyte.net>
References:  <20060424042318.GA59923@svm.csie.ntu.edu.tw> <20060424223523.GD749@picobyte.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Shaun Amott wrote:
> On Mon, Apr 24, 2006 at 12:23:18PM +0800, Rong-En Fan wrote:
>> .if ${.CURDIR:M/usr/ports}
>> SUBDIR += local
>> .endif
> 
> I doubt this is possible - make.conf is just for variable assignments as
> far as I know.

You are wrong, make.conf will be interpreted like any Makefile. You can
even define targets and invoke shell commands.

> 
>> But it does not work. make index does not include my local ports
>> in local/. Is it possible to do this in make.conf with some magic?
>> If not, then I think I have to patch ports/Makefile after each update :(
>>

Try

.if ${.CURDIR:M*/ports}
SUBDIR += local
.endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444D6095.6030209>