aboutsummaryrefslogtreecommitdiffstats
path: root/audio/festlex-ogi/Makefile
blob: a0e33f9724cf6d1b51e08980232067ea076e7b4c (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
40
41
42
43
44
45
# New ports collection makefile for:    festlex-ogi
# Date created:                 2000-06-19
# Whom:                 Trevor Johnson
# based on the NetBSD port
#
# $NetBSD: Makefile,v 1.8 2000/02/15 09:26:12 agc Exp $
# $FreeBSD$
#

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

MAINTAINER= araujo@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}) && !defined(PACKAGE_BUILDING)
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} ${FHOME}
    cd ${WRKSRC} && ${CP} -pPR * ${FHOME}

.include <bsd.port.post.mk>