# New ports collection makefile for:	gnomefind
# Date created:				26 May 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD: ports/sysutils/gnomefind/Makefile,v 1.31 2009/08/22 00:35:18 amdmi3 Exp $
#

PORTNAME=	gnomefind
PORTVERSION=	1.0.2
PORTREVISION=	6
CATEGORIES=	sysutils gnome
MASTER_SITES=	SF/gnome-find/gnome-find-stable/${PORTVERSION}
DISTNAME=	gnome-find-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graphical version of the GNU "find" utility

USE_GNOME=	gnomehack gnomeprefix libglade
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-lgnuregex -L${LOCALBASE}/lib"

MAN1=		gnome-find.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800023
BROKEN=		does not compile
.endif

post-patch:
	@${GREP} -lR "<regex\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
		's|<regex\.h>|<gnuregex.h>|g'

.include <bsd.port.post.mk>
