2006-03-31 04:36:14 +02:00
# New ports collection makefile for: festvox-us1-mbrola
# Date created: 31 Mar 2006
# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME = festvox-${ VOICE } -mbrola
PORTVERSION ?= 20041012
2006-04-11 19:46:30 +02:00
PORTREVISION ?= 1
2006-03-31 04:36:14 +02:00
CATEGORIES = audio accessibility
MASTER_SITES = ${ MASTER_SITE_FESTIVAL }
MASTER_SITE_SUBDIR = 1.95
DISTNAME = festvox_${ VOICE }
2008-04-29 07:11:44 +02:00
MAINTAINER = ports@FreeBSD.org
2006-03-31 04:36:14 +02:00
COMMENT ?= The MBROLA ${ VOICE } voice ( ${ VOICEDESC } ) for Festival
RUN_DEPENDS = ${ LOCALBASE } /share/festival/lib/dicts/cmu/cmulex.scm:${ PORTSDIR } /audio/festlex-cmu \
2006-05-01 20:25:07 +02:00
mbrola:${ PORTSDIR } /audio/linux-mbrola
2006-03-31 04:36:14 +02:00
NO_BUILD = yes
NO_WRKSUBDIR = yes
VOICE ?= us1
VOICEDESC ?= American English, female
VOICEDIR = ${ PREFIX } /share/festival/lib/voices/english/${ VOICE } _mbrola
VOICEDIR_REL = ${ VOICEDIR : S |^ ${ PREFIX } /|| }
2006-04-11 19:46:30 +02:00
PLIST_SUB = VOICE = " ${ VOICE } " VOICEDIR_REL = " ${ VOICEDIR_REL } "
2006-03-31 04:36:14 +02:00
MD5_FILE = ${ .CURDIR } /distinfo
2006-05-01 20:25:07 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f e x i s t s ( $ { L O C A L B A S E } / s h a r e / m b r o l a v o x / $ { V O I C E } / $ { V O I C E } )
RUN_DEPENDS += ${ LOCALBASE } /share/mbrolavox/${ VOICE } /${ VOICE } :${ PORTSDIR } /audio/mbrolavox
. e l s e
IGNORE = requires the ${ VOICE } MBROLA voice. Install the audio/mbrolavox port and enable the ${ VOICE } voice in the options dialog, then install this port
. e n d i f
2006-03-31 04:36:14 +02:00
do-install :
cd ${ WRKSRC } && \
${ FIND } * -type d -exec ${ MKDIR } " ${ PREFIX } /share/{} " \; && \
${ FIND } * -type f -exec ${ INSTALL_DATA } "{}" " ${ PREFIX } /share/{} " \;
${ LN } -sf ${ LOCALBASE } /share/mbrolavox/${ VOICE } ${ VOICEDIR }
2006-05-01 20:25:07 +02:00
. i n c l u d e < b s d . p o r t . p o s t . m k >