From owner-freebsd-ports@FreeBSD.ORG Mon Feb 23 14:41:22 2004 Return-Path: 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 7528C16A4CE; Mon, 23 Feb 2004 14:41:22 -0800 (PST) Received: from lysander.inspired.net.au (lysander.inspired.net.au [203.132.226.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCAF243D1F; Mon, 23 Feb 2004 14:41:20 -0800 (PST) (envelope-from gautam@inspired.net.au) Received: from localhost (localhost [127.0.0.1]) by lysander.inspired.net.au (Postfix) with ESMTP id BDBCB2380A2; Tue, 24 Feb 2004 09:41:18 +1100 (EST) Received: from lysander.inspired.net.au ([127.0.0.1]) by localhost (lysander [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 14682-01; Tue, 24 Feb 2004 09:41:18 +1100 (EST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by lysander.inspired.net.au (Postfix) with SMTP id 8C2212380E2; Tue, 24 Feb 2004 09:41:06 +1100 (EST) Date: Tue, 24 Feb 2004 09:38:14 +1100 From: Gautam Gopalakrishnan To: Rodion Novoselov Message-Id: <20040224093814.0765c45d.gautam@inspired.net.au> In-Reply-To: <20040223211817.GA53330@mossy.its.rndex.ru> References: <20040223211817.GA53330@mossy.its.rndex.ru> X-Mailer: Sylpheed version 0.9.9 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at inspired.net.au cc: freebsd-ports@freebsd.org cc: portmgr@freebsd.org Subject: Re: Global ports customization X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 22:41:22 -0000 On Tue, 24 Feb 2004 00:18:17 +0300, Rodion Novoselov wrote: > Hello. > > I'm used to putting down customization things for ports into > /etc/make.conf file. However, I consider it to be a pretty wrong place > because /etc/make.conf is included implicitly every time make runs no > matter whether I build a port or something else. Having looked > bsd.port.mk through I've found an opportunity to add a per-port > customization via ${PORTSDIR}/${PORTORIGIN}/Makefile.local. Why > shouldn't do the same stuff for the ports collection at whole and add > something like: > > .if exists(${PORTSDIR}/Makefile.local) > .include "${PORTSDIR}/Makefile.local" > .endif > > to bsd.port.mk? Unless I've got something wrong here, what you want is already available. I added a Makefile.local in /usr/ports/audio/mpg123 with text "PREFIX=/usr/home/ggop" and then I installed /usr/ports/audio/cmp3 (which needs mpg123). After installation, prefix for cmp3 is /usr/local and for mpg123 is /usr/gome/ggop. Gautam