From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 04:11:05 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 C1629106566B for ; Fri, 22 Apr 2011 04:11:05 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 795798FC0C for ; Fri, 22 Apr 2011 04:11:05 +0000 (UTC) Received: by qwc9 with SMTP id 9so179734qwc.13 for ; Thu, 21 Apr 2011 21:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+joR6wu6GIrLfzKLXqO0bot2zTxpZEa4QXcmCU+oWOA=; b=f1uhGVt3tsqi3a5crH9gbZikIfRIGyqkJyP5fL4Ghtpk8s8l+vqC8L+6Tntey4NSRK spQpJlXivgKoqbttlR6q+eJZzy3mchOgJdLbECm3WifH8kskOGJlNrSgPX+sH1OhMLFF ZG2EFEnkxfykuohuHY+QKZoTe5RmRkmHw5iaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=w35mS3JLELe6UKGxNlPE3PqUwXM1czdAz3NwhXsifd1rTOPJjk4ygu7mA+KXTRx5hH Pc/FqqVGf9RPY0i4I5G5fneJcXiH4CX5515LzF+oBYH3h+NwcOq1ySYKOeJpPT8kEAAI 69GT6g7XWqdJlLFuyBALL57ZXaXzkEOTme4q0= MIME-Version: 1.0 Received: by 10.224.189.9 with SMTP id dc9mr542150qab.11.1303445464333; Thu, 21 Apr 2011 21:11:04 -0700 (PDT) Received: by 10.224.179.212 with HTTP; Thu, 21 Apr 2011 21:11:04 -0700 (PDT) In-Reply-To: <4DB0F34B.9030008@telus.net> References: <4DB0F34B.9030008@telus.net> Date: Fri, 22 Apr 2011 00:11:04 -0400 Message-ID: From: Mehmet Erol Sanliturk To: Carl Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 04:11:05 -0000 On Thu, Apr 21, 2011 at 11:17 PM, Carl wrote: > Let's say I want to build a port for which I need to specify a huge number > of build options (eg. ghostscript). In my case I am cross-compiling on an > amd64 host for what will be a NanoBSD i386 target, but I don't think that's > important here. The scenario precludes using the familiar configuration > menu. The problem is that the desired list of options far exceeds what would > be sane to specify on the 'make' command line. In fact, it apparently even > exceeds what typical text editors tolerate when trying to enter the line in > a shell script. What is the recommended solution? > > 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. > > Carl / K0802647 > > > If you read the make manual page , you will see the following option : ... *-f* *makefile* Specify a makefile to read instead of the default one. ... which is used as make -f your_own_make_file_name This form will override the Makefile present in the current directory and will use the specified make file with name your_own_make_file_name . Thank you very much . Mehmet Erol Sanliturk