From owner-freebsd-questions@FreeBSD.ORG Wed Jan 26 03:30:13 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 235FC16A4CE for ; Wed, 26 Jan 2005 03:30:13 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3C6643D53 for ; Wed, 26 Jan 2005 03:30:12 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20050126033012i92009v3obe>; Wed, 26 Jan 2005 03:30:12 +0000 Message-ID: <41F70EC3.5000805@nbritton.org> Date: Tue, 25 Jan 2005 21:30:11 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 1.0 (X11/20041230) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Simple questions, MAKE_ARGS in pkgtools.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 03:30:13 -0000 Lets say I have BATCH=yes (/etc/make.conf) and I have a port with a menu that turns on some flags i.e.: OPTIONS= DEBUG "Build a debugging image" off \ LOGGING "Enable additional log messages" off \ OPTIMIZED_CFLAGS "Enable some additional optimizations" off \ XFT "Enable support for anti-aliased fonts" on \ SMB "Enable smb:// URI support using gnomevfs" off If I do something like the following: MAKE_ARGS = { 'www/firefox' => 'WITH_OPTIMIZED_CFLAGS=yes CPUTYPE=p4', 'multimedia/gstreamer-*' => 'CPUTYPE=p2' } Will portupgrade only build the port with what I put in MAKE_ARGS or will it just append it to the ports config? ----------------------- Making this up in my head so I might not be giving the example I was thinking of: Port Makefile: OPTIONS= FOO "build with FOO" off .if defined(WITHOUT_FOO) CONFIGURE_ENV+= WITHOUT_FOO=yes .endif # defined(WITHOUT_FOO) Would I set it to WITHOUT_FOO=no? ----------------------- Someone on this list once said that if you build a port with optional make options that freebsd will always remember those options and will rebuild the port with them if you have BATCH=yes, is this true and if so whats the point of MAKE_ARGS? ----------------------- In summary I am not sure how to handle building ports with BATCH=yes and making sure my ports get built with the correct make options when upgrading and I don't know where the doc's are so I can learn about it.