# New ports collection makefile for:	glitter
# Date Created:		09 Dec 2000
# Whom:			Greg Greenaae <greg@gregnet.net>
#
# $FreeBSD: ports/news/glitter/Makefile,v 1.4 2002/05/22 12:44:08 sobomax Exp $
#

PORTNAME=	glitter
PORTVERSION=	1.0.b.1
PORTREVISION=	1
CATEGORIES=	news
MASTER_SITES=	http://mews.org.uk/glitter/\
		ftp://ftp.gregnet.net/pub/FreeBSD/ports/news/glitter/
DISTNAME=	${PORTNAME}-1.0beta1

MAINTAINER=	greg@gregnet.net

USE_X_PREFIX=	yes
USE_GTK=	yes
WANT_GNOME=	yes
USE_GNOMELIBS=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"

.if defined(HAVE_GNOME)
USE_GNOME=	yes
.endif

pre-patch:
	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
		s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
	@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
		's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
		 s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

.include <bsd.port.mk>
