port makefile question

Sam Lawrance boris at brooknet.com.au
Wed May 17 09:40:22 UTC 2006


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>


More information about the freebsd-ports mailing list