aboutsummaryrefslogtreecommitdiffstats
path: root/audio/festlex-ogi/Makefile
blob: 21a7099f10cfc94adee086747fbd9c651523387e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: trevor
# $FreeBSD$

PORTNAME=   festlex-ogi
PORTVERSION=    2.2
PORTREVISION=   2
CATEGORIES= audio accessibility
MASTER_SITES=   # ${MASTER_SITE_FESTIVAL_OGI}
DISTNAME=   OGIlexicon-2.2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Composite pronunciation dictionary from ogi.edu for Festival

RUN_DEPENDS=    festival:${PORTSDIR}/audio/festival \
        ${LOCALBASE}/share/festival/lib/dicts/wsj.wp39.poslexR:${PORTSDIR}/audio/festlex-poslex

RESTRICTED= No commercial use

WRKSRC=     ${WRKDIR}/festival

NO_BUILD=   yes

FHOME=      ${PREFIX}/share/festival

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= distfile can only be fetched if you accept the license. Go to https://www.cslu.ogi.edu/tts/download/data/OGIlexicon-2.2.tar.gz and put ${DISTFILE} into ${DISTDIR}
.endif

post-extract:
    @ ${CHMOD} -R a+r ${WRKSRC}
    @ ${FIND} ${WRKSRC} -type d -print0 | ${XARGS} -0 ${CHMOD} 755

do-install:
    ${MKDIR} ${STAGEDIR}${FHOME}
    cd ${WRKSRC} && ${CP} -pPR * ${STAGEDIR}${FHOME}

.include <bsd.port.post.mk>