aboutsummaryrefslogtreecommitdiffstats
path: root/audio/espeak/Makefile
blob: 19fcdb00fe9d6fa914817c8e1b1d3997b80026d3 (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
46
47
48
49
50
51
52
# New ports collection makefile for:    espeak
# Date created:     2006-03-25
# Whom:         Nicola Vitale   <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=   espeak
PORTVERSION=    1.40.02
CATEGORIES= audio
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-${PORTVERSION}-source

MAINTAINER= nivit@FreeBSD.org
COMMENT=    A software speech synthesizer

LIB_DEPENDS=    portaudio:${PORTSDIR}/audio/portaudio

CONFLICTS=  speak-1.[0-9]

MAKE_ENV+=  PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
        PTHREAD_LIBS="${PTHREAD_LIBS}" CPPFLAGS="${CPPFLAGS}" \
        LDFLAGS="${LDFLAGS}"

USE_GMAKE=  yes
USE_GCC=    4.2+
USE_LDCONFIG=   yes
USE_ZIP=    yes

WRKSRC= ${WRKDIR}/${DISTNAME}
BUILD_WRKSRC=   ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src

REINPLACE_FILES=    Makefile speech.h
REINPLACE_ARGS= -i.bak -e "s|%%DATADIR%%|${DATADIR}|g"

post-patch:
    cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

.include <bsd.port.post.mk>