From owner-freebsd-ports@FreeBSD.ORG Tue Mar 3 12:29:49 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D3601065670 for ; Tue, 3 Mar 2009 12:29:49 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: from smtp109.prem.mail.ac4.yahoo.com (smtp109.prem.mail.ac4.yahoo.com [76.13.13.92]) by mx1.freebsd.org (Postfix) with SMTP id EDA138FC25 for ; Tue, 3 Mar 2009 12:29:48 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: (qmail 60908 invoked from network); 3 Mar 2009 12:29:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Subject:Message-ID:Reply-To:Organization:X-Mailer:Face:X-Face:Mime-Version:Content-Type; b=C3p1riQGwObwOMBmDYWjOg5wLofPLk2bip8clUA6O5LgqYpW91o3dpAGFrjfydb3se03SGv8+53E+JonJRVhxYwpVBumGlhKXhr3m23tZHuA8xYUs4U22NsiYgUvfX5bLrY6U8My1BBwltcKDJoZoPfPNbz2ltr8xHOrxdPZKp0= ; Received: from unknown (HELO scorpio) (gesbbb@76.23.177.172 with login) by smtp109.prem.mail.ac4.yahoo.com with SMTP; 3 Mar 2009 12:29:48 -0000 X-YMail-OSG: 1oOES3wVM1ky2kbNJ2gZ2WIfkoh1R5gI3XhzMR6XDqp5go.LGh0aSqi6e9JMpUupSRtPwCRuvzv_3nEk8UIbl1j8HaUaDYYJWfB4UDXxam1qdA_0dH2grQISFW16ftam.pe3vqKwlXMtrqM4F_y3mYBAAm.0dkcZN_gXQ2Pj7czne8gpzuBTx6C7vYJ43T6gKC7jno5f68TMkHGk1DH3IJj0z3r5 X-Yahoo-Newman-Property: ymail-3 Date: Tue, 3 Mar 2009 07:29:36 -0500 From: Jerry To: freebsd-ports@freebsd.org Message-ID: <20090303072936.0e154820@scorpio> Organization: seibercom.net X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd6.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/LJy1IVFI7dTk10jiO1pl0o9"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: Configuring 'RUN_DEPENDS' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 12:29:49 -0000 --Sig_/LJy1IVFI7dTk10jiO1pl0o9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable A port I am creating has a RUN_DEPENDS of either 'curl' or 'wget'. I have tried several times to write some sort of test in the make file to determine if one or the other were installed, and if neither then to install 'curl'. I suppose I could create an OPTIONS to install one or the other; however, I have not gotten that to work correctly either. I looked at Postfix's Makefile, and got a few ideas from it; however, not enough to get what I want to work. The port will also require Clamav, either the standard port or the devel one. Therefore I have two run dependencies to adjust. Use the one available or install one if neither is all ready installed. I tried Googling and the Porters Handbook, but I cannot find what I am looking for. Is it possible? I assume it must be. A regular 'if' or 'case' statement I would normally use does not work in a make file. --=20 Jerry gesbbb@yahoo.com Gratitude, like love, is never a dependable international emotion. Joseph Alsop --Sig_/LJy1IVFI7dTk10jiO1pl0o9 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmtIroACgkQBvaKIJWWCO2ODwCffEIMyTUCT+cNoVk4IV7TuHE6 tGoAoIMwwO2b4UlnkWpAjdEYY3gNuHoI =vrew -----END PGP SIGNATURE----- --Sig_/LJy1IVFI7dTk10jiO1pl0o9--