summaryrefslogtreecommitdiffstats
path: root/audio/mbrola/Makefile
blob: f8fd637ea2f736c4b79ed1a05921109789463212 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:		mbrola
# Date created:					2003-10-04
# Whom:						trevor
#
# $FreeBSD$
#

PORTNAME=	mbrola
PORTVERSION=	3.0.1
CATEGORIES=	audio accessibility
MASTER_SITES?=	ftp://tcts.fpms.ac.be/pub/mbrola/freebsd/
DISTNAME=	mbr301h
EXTRACT_SUFX=	.zip
DIST_SUBDIR?=	mbrola-freebsd

MAINTAINER=	trevor@FreeBSD.org
COMMENT=	MBROLA voice synthesizer

.include <bsd.port.pre.mk>

.if !defined(USE_LINUX)
LIB_DEPENDS=	c.3:${PORTSDIR}/misc/compat3x
.endif
RUN_DEPENDS+=	${PREFIX}/share/mbrolavox:${PORTSDIR}/audio/mbrolavox

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

do-extract:
	@${MKDIR} ${WRKSRC}
	@unzip -qo ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}.zip -d ${WRKSRC}

do-patch:
	@${RM} -f ${WRKSRC}/mbrola-FreeBSD-i386-aout

pre-install:
	@${ECHO_CMD} bin/mbrola > ${PLIST}
.if !defined(NOPORTDOCS)
	@${ECHO_CMD} share/doc/mbrola/readme.txt >> ${PLIST}
	@${ECHO_CMD} @dirrm share/doc/mbrola >> ${PLIST}
.endif

do-install:
.if defined(USE_LINUX)
.if (${MACHINE_ARCH} == "alpha")
	@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-alpha ${PREFIX}/bin/mbrola
.elseif (${MACHINE_ARCH} == "i386")
	@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-i386 ${PREFIX}/bin/mbrola
.elseif (${MACHINE_ARCH} == "ppc")
	@${INSTALL_PROGRAM} ${WRKSRC}/mbrola206a-linux-ppc ${PREFIX}/bin/mbrola
.elseif (${MACHINE_ARCH} == "sparc64")
	@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-SuSElinux-ultra1.dat \
		${PREFIX}/bin/mbrola
.endif
.else
	@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-FreeBSD-i386-elf \
		${PREFIX}/bin/mbrola
.endif # defined(USE_LINUX)
	@${CHMOD} +x ${PREFIX}/bin/mbrola
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud