From owner-freebsd-ports@FreeBSD.ORG Wed May 17 09:50:18 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E0B116A40F for ; Wed, 17 May 2006 09:50:18 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from pinnacle.akherb.com (60-105-237-24.gci.net [24.237.105.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8992643D55 for ; Wed, 17 May 2006 09:50:16 +0000 (GMT) (envelope-from beech@alaskaparadise.com) Received: by pinnacle.akherb.com (Postfix, from userid 1007) id 0D2B85DAC; Wed, 17 May 2006 01:50:16 -0800 (AKDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pinnacle.akherb.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.1 Received: from [192.168.241.103] (7-137-58-66.gci.net [66.58.137.7]) by pinnacle.akherb.com (Postfix) with ESMTP id 22AAF5C10; Wed, 17 May 2006 01:50:15 -0800 (AKDT) From: Beech Rintoul Organization: Alaska Paradise To: freebsd-ports@freebsd.org Date: Wed, 17 May 2006 01:50:10 -0800 User-Agent: KMail/1.9.1 References: <200605170049.05217.beech@alaskaparadise.com> <4367C321-46AD-415C-8F03-0D2A1C9069B3@brooknet.com.au> In-Reply-To: <4367C321-46AD-415C-8F03-0D2A1C9069B3@brooknet.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2633704.ABQU58HHLO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605170150.13372.beech@alaskaparadise.com> Cc: Sam Lawrance Subject: Re: port makefile question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 09:50:18 -0000 --nextPart2633704.ABQU58HHLO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 17 May 2006 01:40, Sam Lawrance wrote: > On 17/05/2006, at 6:48 PM, Beech Rintoul wrote: > > I need to check for a header file in /usr/local/include as part of > > a port > > makefile. I'm a bit stuck as how to do it. Could someone give me a > > suggestion? > > If I suspect correctly, you're looking for something like this: > > .include > > .if exists(${LOCALBASE}/include/getopt.h) > BROKEN=3D Does not build when libgnugetopt is installed > .endif > > > .... > > > .include Thanks, that's exactly what I was looking for. I was stuck on the .if exist= s.=20 Now I just need to add a version check to that. It's only a 4x problem.=20 That I know how to do :) Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | Alaska Paradise \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com =2D------------------------------------------------------------------------= =2D------------- --nextPart2633704.ABQU58HHLO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEavHVp5D0B1NlT4URAutSAJ9LOOonqPhzwiYrpEllhHAzk1xHYACfbk0G jjufcyQ66i/Cu/ZZ7lRufIs= =f6Yx -----END PGP SIGNATURE----- --nextPart2633704.ABQU58HHLO--