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

next in thread | previous in thread | raw e-mail | index | archive | help

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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4367C321-46AD-415C-8F03-0D2A1C9069B3>