From owner-freebsd-questions@FreeBSD.ORG Wed Feb 14 11:44:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A56216A402 for ; Wed, 14 Feb 2007 11:44:51 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id B194F13C4A8 for ; Wed, 14 Feb 2007 11:44:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [172.16.3.238] (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id l1EBiJsp074631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Feb 2007 11:44:27 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <45D2F60E.10901@infracaninophile.co.uk> Date: Wed, 14 Feb 2007 11:44:14 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.9 (X11/20070123) MIME-Version: 1.0 To: Joe Auty References: <8D030410-F770-42D4-9E03-494055B29011@netmusician.org> <73DE0F54-0275-4614-96FF-4C453CF2269F@netmusician.org> In-Reply-To: <73DE0F54-0275-4614-96FF-4C453CF2269F@netmusician.org> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig13A7D903EA1110E7F9A84A35" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [81.187.76.162]); Wed, 14 Feb 2007 11:44:43 +0000 (GMT) X-Virus-Scanned: ClamAV 0.88.7/2565/Wed Feb 14 07:36:47 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions Questions Subject: Re: RT36 port WITH_APACHE2 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: Wed, 14 Feb 2007 11:44:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig13A7D903EA1110E7F9A84A35 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Joe Auty wrote: > I figured this out, >=20 > My pkgtools.conf make args needed to read: >=20 >>> MAKE_ARGS =3D { >>> >>> 'www/rt36' =3D> '-DWITH_APACHE2' >>> } >=20 > rather than: >=20 >>> MAKE_ARGS =3D { >>> >>> 'www/rt36' =3D> 'WITH_APACHE2' >>> } >=20 >=20 > Why is it that some make arguments in this file need the -D while =20 > some don't? Hmmm..... >=20 It's not portupgrade that needs that, but make(1). You can set make=20 variables from the command line, and this is what portupgrade does to exercise various options while building ports. The syntax for make is either: make VARIABLE=3Dvalue or=20 make -DVARIABLE where the latter is equivalent to saying make VARIABLE=3D1 ('D' for 'define') Translating that into the format used by pkgtools.conf you can write either: MAKE_ARGS =3D { 'www/rt36' =3D> '-DWITH_APACHE2' } or=20 MAKE_ARGS =3D { 'www/rt36' =3D> 'WITH_APACHE2=3D1' } You can also undefine a variable by: make -UVARIABLE Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig13A7D903EA1110E7F9A84A35 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF0vYT3jDkPpsZ+VYRA7WTAKCkrD1YKDyQvCk6EcF7iIUGfrSZ0ACgm+MA Gie/x+7Wrnea03mYine64+M= =7T8g -----END PGP SIGNATURE----- --------------enig13A7D903EA1110E7F9A84A35--