# New ports collection makefile for:	gtranslator
# Date created:				16 September 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD: ports/devel/gtranslator/Makefile,v 1.25 2003/03/07 06:00:29 ade Exp $
#

PORTNAME=	gtranslator
PORTVERSION=	0.43
PORTREVISION=	1
CATEGORIES=	devel gnome
MASTER_SITES=	http://www.gtranslator.org/download/releases/${PORTVERSION}/ \
		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	sobomax@FreeBSD.org
COMMENT=	A GNOME application for developing ".pot" files used with GNU Gettext

USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_GNOMENG=	yes
USE_GNOME=	gnomeprefix gnomehack gnomelibs gal gnomevfs
USE_LIBTOOL=	yes
INSTALLS_SHLIB=	yes
CONFIGURE_ARGS=	--disable-debug
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib -liconv -lgnuregex"

MAN1=		gtranslator.1 pozilla.sh.1
MANCOMPRESSED=	yes

post-patch:
	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
		 s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure

.include <bsd.port.mk>
