From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 09:18:38 2003 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 9353316A4CE for ; Tue, 30 Dec 2003 09:18:38 -0800 (PST) Received: from lillith-iii.ovirt.dyndns.ws (ppp136-230.lns1.adl2.internode.on.net [150.101.136.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61AAE43D41 for ; Tue, 30 Dec 2003 09:18:35 -0800 (PST) (envelope-from ws+freebsd-questions@au.dyndns.ws) Received: from predatorii (ppp136-230.lns1.adl2.internode.on.net [150.101.136.230])hBUHIWNG089372 for ; Wed, 31 Dec 2003 03:48:33 +1030 (CST) (envelope-from ws+freebsd-questions@au.dyndns.ws) From: "Wayne Sierke" To: Date: Wed, 31 Dec 2003 03:53:06 +1030 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Subject: 'Best' way of adding quoted string options to Makefile/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: Tue, 30 Dec 2003 17:18:38 -0000 I was trying to add the following type of option to a port's Makefile: --option='space delimited list' (that's how it was indicated it should be presented in the port's installation notes). Not knowing the "correct" way to achieve it as a combination of Makefile/pkgtools.conf entries I ended up with the following:- In the port's Makefile I added something of the form: .if defined(VAR) CONFIGURE_ARGS+= --option="${VAR}" .endif and in /usr/local/etc/pkgtools.conf: MAKE_ARGS = { 'category/portname' => [ 'VAR=\'space delimited list\'', ], } and I am hoping to solicit the opinions of those more experienced in these matters as to whether they consider that to be the 'optimal' solution since it was arrived at on my part after a multitude of somewhat random combinations of single and double quotes, double-single quotes and backslash-escaped quotes in both the Makefile and pkgtools.conf (it took a while because I was intent on trying to match the single quotes around the option arguemnt as was shown in the installation notes). Thanks, Wayne