# New ports collection makefile for:	pl-hunspell
# Date created:		2011-07-21
# Whom:			Baptiste Daroussin <bapt@FreeBSD.org>
#
# $FreeBSD: ports/polish/hunspell/Makefile,v 1.50 2012/03/12 02:27:48 sunpoet Exp $
#

PORTNAME=	hunspell
PORTVERSION=	20120311
CATEGORIES=	polish textproc
MASTER_SITES=	http://sjp.pl/slownik/ort/ \
		LOCAL/sunpoet/${PORTNAME}
DISTNAME=	sjp-myspell-pl-${PORTVERSION}
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	office@FreeBSD.org
COMMENT=	Polish hunspell dictionaries

LICENSE=	LGPL21 GPLv2 MPL
LICENSE_COMB=	dual

USE_ZIP=	yes
NO_BUILD=	yes

PLIST_FILES=	%%DATADIR%%/pl_PL.aff \
		%%DATADIR%%/pl_PL.dic
PLIST_DIRSTRY=	%%DATADIR%%

post-extract:
	@${EXTRACT_CMD} ${WRKDIR}/pl_PL.zip -d ${WRKSRC}/

do-install:
	${MKDIR} ${DATADIR}/
	${INSTALL_DATA} ${WRKSRC}/pl_PL.aff ${WRKSRC}/pl_PL.dic ${DATADIR}/

.include <bsd.port.mk>
