From owner-freebsd-ports@FreeBSD.ORG Sat Apr 2 22:21:49 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF7A41065673; Sat, 2 Apr 2011 22:21:49 +0000 (UTC) (envelope-from papowell@astart.com) Received: from astart2.astart.com (99-111-96-109.uvs.sndgca.sbcglobal.net [99.111.96.109]) by mx1.freebsd.org (Postfix) with ESMTP id A22C88FC0C; Sat, 2 Apr 2011 22:21:49 +0000 (UTC) Received: from laptop_81.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.4/8.14.4) with ESMTP id p32MLmAS018495; Sat, 2 Apr 2011 15:21:49 -0700 (PDT) (envelope-from papowell@astart.com) Message-ID: <4D97A179.60009@astart.com> Date: Sat, 02 Apr 2011 15:21:45 -0700 From: Patrick Powell Organization: Astart Technologies User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110312 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alberto Villa References: <4D952102.4020101@astart.com> <201104010804.26285.avilla@freebsd.org> In-Reply-To: <201104010804.26285.avilla@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Automating Port Building- Setting options on the command line X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: papowell@astart.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2011 22:21:49 -0000 On 03/31/11 23:04, Alberto Villa wrote: > On Friday 01 April 2011 02:49:06 Patrick Powell wrote: >> What I would like to do is pass in a set of default options on the >> command line >> such as: >> >> cd /usr/ports/lang/php5-extensions >> make configure THIS=yes THAT=no > cd /usr/ports/multimedia/kdenlive > make -DWITH_DVD -DWITH_FREI0R -DWITHOUT_LADSPA This did the trick. However, to bombproof it a little: make rmconfig -DWITH_OPTION ... target Once you do this you need to always put the rmconfig target in the make command. This is exactly what I wanted. I have been looking at tinderbox in more detail and it appears to be a better solution. I am planning to migrate to tinderbox in the near future. -- Patrick Powell Astart Technologies papowell@astart.com 1530 Jamacha Road, Suite X, Network and System San Diego, CA 92019 Consulting 858-874-6543 Web Site: www.astart.com