# Created by: shipley@dis.org
# $FreeBSD: tags/RELEASE_10_2_0/misc/hello/Makefile 389300 2015-06-12 20:58:13Z erwin $

PORTNAME=	hello
PORTVERSION=	2.9
CATEGORIES=	misc
MASTER_SITES=	GNU

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utility for saying hello to the world and reading email

USES=		charsetfix perl5
USE_PERL5=	build
GNU_CONFIGURE=	YES

INFO=		hello

OPTIONS_DEFINE=	NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

pre-install:
	${CHMOD} a+x ${WRKSRC}/build-aux/install-sh

.include <bsd.port.mk>
