Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2006 01:50:10 -0800
From:      Beech Rintoul <beech@alaskaparadise.com>
To:        freebsd-ports@freebsd.org
Cc:        Sam Lawrance <boris@brooknet.com.au>
Subject:   Re: port makefile question
Message-ID:  <200605170150.13372.beech@alaskaparadise.com>
In-Reply-To: <4367C321-46AD-415C-8F03-0D2A1C9069B3@brooknet.com.au>
References:  <200605170049.05217.beech@alaskaparadise.com> <4367C321-46AD-415C-8F03-0D2A1C9069B3@brooknet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <bsd.port.pre.mk>
>
> .if exists(${LOCALBASE}/include/getopt.h)
> BROKEN=3D		Does not build when libgnugetopt is installed
> .endif
>
>
> ....
>
>
> .include <bsd.port.post.mk>

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605170150.13372.beech>