From owner-freebsd-ports@FreeBSD.ORG Mon Apr 24 23:34:55 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2306B16A400 for ; Mon, 24 Apr 2006 23:34:55 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5437643D49 for ; Mon, 24 Apr 2006 23:34:54 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 24 Apr 2006 23:34:52 -0000 Received: from p54A7DAD6.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.218.214] by mail.gmx.net (mp030) with SMTP; 25 Apr 2006 01:34:52 +0200 X-Authenticated: #5465401 Message-ID: <444D6095.6030209@gmx.de> Date: Tue, 25 Apr 2006 01:34:45 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.2 (X11/20060423) MIME-Version: 1.0 To: Rong-En Fan , freebsd-ports@FreeBSD.org References: <20060424042318.GA59923@svm.csie.ntu.edu.tw> <20060424223523.GD749@picobyte.net> In-Reply-To: <20060424223523.GD749@picobyte.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: Subject: Re: category for local ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 23:34:55 -0000 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