From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 03:52:09 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53DBF106566B for ; Fri, 22 Apr 2011 03:52:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 180258FC14 for ; Fri, 22 Apr 2011 03:52:08 +0000 (UTC) Received: from r55.edvax.de (port-92-195-63-56.dynamic.qsc.de [92.195.63.56]) by mx01.qsc.de (Postfix) with ESMTP id 619903CD7F; Fri, 22 Apr 2011 05:52:07 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p3M3q6fC002341; Fri, 22 Apr 2011 05:52:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 22 Apr 2011 05:52:06 +0200 From: Polytropon To: Carl Message-Id: <20110422055206.6f900dd4.freebsd@edvax.de> In-Reply-To: <4DB0F34B.9030008@telus.net> References: <4DB0F34B.9030008@telus.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: building a port with very long list of build options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 03:52:09 -0000 On Thu, 21 Apr 2011 20:17:31 -0700, Carl wrote: > Given that I do not want to customize the port's Makefile, I was hoping > 'make' would support a command line option that would let me simply > point to a separate file containing the list of variables to add, one > per line. It's not apparent to me that that exists. This has been possible and common in the past. For example, the many options for the mplayer and mencoder ports could be specified in a file, so changing of a port's file was not needed. I'm not fully sure this option is still present, but at least on v7 it worked. Create a file Makefile.local in the port's directory and specify all your options as desired. This file will be sourced when you issue a "make" command and will override settings of the regular Makefile (e. g. if you want different CFLAGS for _this_ port). The file is to be in the known syntax, NAME=value. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...