aboutsummaryrefslogtreecommitdiffstats
path: root/audio/linux-mbrola/Makefile
blob: e19f8b6f63cb9f70cb8f6332d56b1a5a15bc1693 (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
# Created by: trevor
# $FreeBSD$

PORTNAME=   mbrola
PORTVERSION=    3.0.1
CATEGORIES= audio accessibility linux
MASTER_SITES=   http://tcts.fpms.ac.be/synthesis/mbrola/bin/pclinux/ \
        http://www.festvox.org/mbrola/bin/pclinux/
PKGNAMEPREFIX=  linux-
DISTNAME=   mbr301h
DIST_SUBDIR=    mbrola-linux

MAINTAINER= ports@FreeBSD.org
COMMENT=    MBROLA speech synthesizer for Linux

RUN_DEPENDS=    ${LOCALBASE}/share/mbrolavox:${PORTSDIR}/audio/mbrolavox

CONFLICTS=  mbrola-*
NO_BUILD=   yes
ONLY_FOR_ARCHS= amd64 i386
USE_LINUX=  yes
USE_ZIP=    yes
RESTRICTED= for non-commercial, non-military applications only
WRKSRC=     ${WRKDIR}/mbr301h
PLIST=      ${WRKDIR}/plist

PLIST_DIRS= share/doc/mbrola
PLIST_FILES=    bin/mbrola
.if !defined(NOPORTDOCS)
PLIST_FILES+=   share/doc/mbrola/readme.txt
.endif

do-extract:
    @${MKDIR} ${WRKSRC}
    @${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} \
        ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}.zip -d ${WRKSRC}

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-i386 ${PREFIX}/bin/mbrola
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>