port makefile question

Beech Rintoul beech at alaskaparadise.com
Wed May 17 09:50:18 UTC 2006


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=		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 exists. 
Now I just need to add a version check to that. It's only a 4x problem. 
That I know how to do :)

Beech

-- 

---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech at 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
---------------------------------------------------------------------------------------











-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060517/506d2f38/attachment.pgp


More information about the freebsd-ports mailing list