# Created by: Marco Molteni <molter@gufi.org>
# $FreeBSD: branches/RELEASE_8_4_0/astro/gpsdrive/Makefile 312913 2013-02-25 10:51:28Z danfe $

PORTNAME=	gpsdrive
PORTVERSION=	2.09
PORTREVISION=	14
CATEGORIES=	astro geography
MASTER_SITES=	http://www.gpsdrive.de/packages/ \
		LOCAL/beech

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GPS navigation system

LICENSE=	GPLv2

LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre

USE_AUTOTOOLS=	libtool
USE_GMAKE=	yes
USE_GNOME=	gtk20
USE_PERL5=	yes
USE_LDCONFIG=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--disable-garmin
MAKE_JOBS_UNSAFE=	yes

MAN1=		gpsdrive.1
MANLANG=	"" de es

OPTIONS_DEFINE=	NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif

post-patch:
.if ! ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} 's|SUBDIRS = src po man|SUBDIRS = src man|' \
		${WRKSRC}/Makefile.in
.endif

post-install:
	@${ECHO_MSG}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_MSG}

.include <bsd.port.mk>
