PORTNAME=	aspell
PORTVERSION=	0.60.8.2
PORTEPOCH=	1
CATEGORIES=	textproc
MASTER_SITES=	GNU/aspell

MAINTAINER=	office@FreeBSD.org
COMMENT=	Spelling checker with better suggestion logic than ispell
WWW=		http://aspell.net/

LICENSE=	LGPL21

USES=		cpe gmake iconv libtool ncurses perl5 shebangfix

CONFIGURE_ARGS=	--enable-curses="${NCURSESLIBS}" \
		--enable-dict-dir=${DATADIR} \
		--enable-docdir=${DOCSDIR} \
		--enable-static
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes
SHEBANG_FILES=	scripts/aspell-import
CPE_VENDOR=	gnu

SUB_FILES=	aspell.ver
PLIST_SUB=	VER=${PORTVERSION:R:R}
SUB_LIST=	VER=${PORTVERSION:R:R}
INFO=		aspell aspell-dev

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

post-install:
	${INSTALL_DATA} ${WRKDIR}/aspell.ver ${STAGEDIR}${PREFIX}/etc

.include <bsd.port.mk>
