Date: Tue, 24 Feb 2004 09:38:14 +1100 From: Gautam Gopalakrishnan <gautam@inspired.net.au> To: Rodion Novoselov <rodion@rndex.ru> Cc: portmgr@freebsd.org Subject: Re: Global ports customization Message-ID: <20040224093814.0765c45d.gautam@inspired.net.au> In-Reply-To: <20040223211817.GA53330@mossy.its.rndex.ru> References: <20040223211817.GA53330@mossy.its.rndex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Feb 2004 00:18:17 +0300, Rodion Novoselov <rodion@rndex.ru> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040224093814.0765c45d.gautam>