2013-06-15 12:41:52 +00:00
|
|
|
# Created by: Nicola Vitale <nivit@email.it>
|
2006-04-28 20:39:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= espeak
|
2013-06-15 12:41:52 +00:00
|
|
|
PORTVERSION= 1.47.11
|
|
|
|
PORTREVISION= 0
|
2006-04-28 20:39:29 +00:00
|
|
|
CATEGORIES= audio
|
2009-11-04 16:18:01 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
|
2006-10-31 08:19:40 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2006-12-10 01:21:51 +00:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-04-28 20:39:29 +00:00
|
|
|
COMMENT= A software speech synthesizer
|
|
|
|
|
2013-06-15 12:41:52 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-05-04 14:14:45 +00:00
|
|
|
# default is runtime audio detection
|
|
|
|
LIB_DEPENDS= ${PORTAUDIOLIB} \
|
|
|
|
${PULSEAUDIOLIB}
|
|
|
|
|
2013-06-15 12:41:52 +00:00
|
|
|
OPTIONS_DEFAULT= PORTAUDIO
|
|
|
|
OPTIONS_RADIO= AUDIO_SYSTEM
|
|
|
|
OPTIONS_RADIO_AUDIO_SYSTEM= PORTAUDIO PULSEAUDIO RUNTIME
|
|
|
|
RUNTIME_DESC= Sound interface selected at runtime
|
2012-05-04 14:14:45 +00:00
|
|
|
|
2013-12-11 14:35:36 +00:00
|
|
|
PORTAUDIOLIB= libportaudio.so:${PORTSDIR}/audio/portaudio
|
|
|
|
PULSEAUDIOLIB= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2006-04-29 09:59:09 +00:00
|
|
|
CONFLICTS= speak-1.[0-9]
|
2006-04-28 20:39:29 +00:00
|
|
|
|
|
|
|
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
2012-05-04 14:14:45 +00:00
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
AUDIO="${AUDIO}"
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2012-05-04 14:14:45 +00:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
2013-08-30 23:01:05 +00:00
|
|
|
USES= gmake
|
2013-09-20 14:36:35 +00:00
|
|
|
NO_STAGE= yes
|
2006-10-31 08:19:40 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-04-28 20:39:29 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2007-01-27 00:44:33 +00:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src
|
2006-10-31 08:19:40 +00:00
|
|
|
|
2008-07-15 13:08:53 +00:00
|
|
|
REINPLACE_FILES= Makefile speech.h
|
|
|
|
REINPLACE_ARGS= -i.bak -e "s|%%DATADIR%%|${DATADIR}|g"
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2013-06-15 12:41:52 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MRUNTIME}
|
|
|
|
AUDIO= "runtime"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
|
|
|
AUDIO= "pulseaudio"
|
|
|
|
PORTAUDIOLIB=
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPORTAUDIO}
|
|
|
|
AUDIO= "portaudio"
|
|
|
|
PULSEAUDIOLIB=
|
|
|
|
.endif
|
|
|
|
|
2006-04-28 20:39:29 +00:00
|
|
|
post-patch:
|
2008-07-15 13:08:53 +00:00
|
|
|
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2013-06-15 12:41:52 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-01-27 00:44:33 +00:00
|
|
|
post-install:
|
2006-04-28 20:39:29 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-07-15 13:08:53 +00:00
|
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
2006-04-28 20:39:29 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-10 07:35:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|