# New ports collection makefile for:	mythes
# Date created:		2011-07-21
# Whom:			Baptiste Daroussin <bapt@FreeBSD.org>
#
# $FreeBSD: ports/portuguese/mythes/Makefile,v 1.6 2011/08/17 18:04:05 sunpoet Exp $
#

PORTNAME=	mythes
PORTVERSION=	2006.08.17
PORTREVISION=	1
CATEGORIES=	portuguese textproc
MASTER_SITES=	LOCAL/sunpoet/${PORTNAME}/
DISTNAME=	thes_pt_PT_v2-${PORTVERSION:C/\.//g}
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	office@FreeBSD.org
COMMENT=	Portuguese thesaurus

LICENSE=	GPLv2

USE_ZIP=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes

PLIST_FILES=	%%DATADIR%%/th_pt_BR_v2.dat \
		%%DATADIR%%/th_pt_BR_v2.idx \
		%%DATADIR%%/th_pt_PT_v2.dat \
		%%DATADIR%%/th_pt_PT_v2.idx
PLIST_DIRSTRY=	%%DATADIR%%

do-install:
	${MKDIR} ${DATADIR}/
	${INSTALL_DATA} ${WRKSRC}/th_pt_PT_v2.dat ${WRKSRC}/th_pt_PT_v2.idx ${DATADIR}/
	${LN} -s th_pt_PT_v2.dat ${DATADIR}/th_pt_BR_v2.dat
	${LN} -s th_pt_PT_v2.idx ${DATADIR}/th_pt_BR_v2.idx

.include <bsd.port.mk>
