From owner-freebsd-ports@FreeBSD.ORG Mon Feb 23 13:18:20 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 3685916A4CE; Mon, 23 Feb 2004 13:18:20 -0800 (PST) Received: from mossy.its.rndex.ru (unknown [194.84.231.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6349143D1F; Mon, 23 Feb 2004 13:18:19 -0800 (PST) (envelope-from rodion@rndex.ru) Received: from mossy.its.rndex.ru (rodion@localhost [127.0.0.1]) by mossy.its.rndex.ru (8.12.10/8.12.10) with ESMTP id i1NLIH6t053398; Tue, 24 Feb 2004 00:18:17 +0300 (MSK) (envelope-from rodion@mossy.its.rndex.ru) Received: (from rodion@localhost) by mossy.its.rndex.ru (8.12.10/8.12.10/Submit) id i1NLIHMm053397; Tue, 24 Feb 2004 00:18:17 +0300 (MSK) (envelope-from rodion) Date: Tue, 24 Feb 2004 00:18:17 +0300 From: Rodion Novoselov To: freebsd-ports@freebsd.org Message-ID: <20040223211817.GA53330@mossy.its.rndex.ru> Mail-Followup-To: freebsd-ports@freebsd.org, portmgr@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: portmgr@freebsd.org Subject: 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 21:18:20 -0000 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? Best regards Rodion Novoselov