# $NetBSD: Makefile,v 1.14 2022/06/28 11:36:11 wiz Exp $
#

DISTNAME=	igerman98-20160407
PKGNAME=	${DISTNAME:S/german98/spell-de/1}
PKGREVISION=	5
CATEGORIES=	textproc
MASTER_SITES=	http://j3e.de/ispell/igerman98/dict/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://j3e.de/ispell/igerman98/
COMMENT=	German dictionary for interactive spelling checker
LICENSE=	gnu-gpl-v3 OR gnu-gpl-v2

CONFLICTS+=	ispell-german-[0-9]*
DEPENDS+=	ispell>=3.1.20nb1:../../textproc/ispell

BUILD_TARGET=	ispell/de_DE.aff ispell/de_DE.hash ispell/de_AT.aff ispell/de_AT.hash ispell/de_CH.aff ispell/de_CH.hash
USE_TOOLS+=	gmake perl
REPLACE_PERL=	bin/dic2iso.pl bin/grepl bin/sq.pl bin/myspellfixprefix.pl \
		bin/clear_affix.pl bin/unsq.pl bin/uniqflag.pl

INSTALLATION_DIRS=	lib

do-install:
	${INSTALL_DATA} ${WRKSRC}/ispell/*.aff ${DESTDIR}${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/ispell/*.hash ${DESTDIR}${PREFIX}/lib

.include "../../mk/bsd.pkg.mk"
