2006-04-28 22:39:29 +02:00
|
|
|
# New ports collection makefile for: espeak
|
|
|
|
# Date created: 2006-03-25
|
|
|
|
# Whom: Nicola Vitale <nivit@email.it>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= espeak
|
2012-01-21 15:12:29 +01:00
|
|
|
PORTVERSION= 1.46.02
|
2012-05-04 16:14:45 +02:00
|
|
|
PORTREVISION= 1
|
2006-04-28 22:39:29 +02:00
|
|
|
CATEGORIES= audio
|
2009-11-04 17:18:01 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
|
2006-10-31 09:19:40 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
2006-04-28 22:39:29 +02:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-04-28 22:39:29 +02:00
|
|
|
COMMENT= A software speech synthesizer
|
|
|
|
|
2012-05-04 16:14:45 +02:00
|
|
|
# default is runtime audio detection
|
|
|
|
LIB_DEPENDS= ${PORTAUDIOLIB} \
|
|
|
|
${PULSEAUDIOLIB}
|
|
|
|
|
|
|
|
PULSEAUDIOLIB= pulse:${PORTSDIR}/audio/pulseaudio
|
|
|
|
PORTAUDIOLIB= portaudio:${PORTSDIR}/audio/portaudio
|
|
|
|
|
|
|
|
.if (!defined(WITH_PULSEAUDIO) && !defined(WITH_PORTAUDIO)) || (defined(WITH_PULSEAUDIO) && defined(WITH_PORTAUDIO))
|
|
|
|
AUDIO= "runtime"
|
|
|
|
.elif defined(WITH_PULSEAUDIO)
|
|
|
|
AUDIO= "pulseaudio"
|
|
|
|
PORTAUDIOLIB=
|
|
|
|
.else
|
|
|
|
AUDIO= "portaudio"
|
|
|
|
PULSEAUDIOLIB=
|
|
|
|
.endif
|
2006-04-28 22:39:29 +02:00
|
|
|
|
2006-04-29 11:59:09 +02:00
|
|
|
CONFLICTS= speak-1.[0-9]
|
2006-04-28 22:39:29 +02:00
|
|
|
|
|
|
|
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
2012-05-04 16:14:45 +02:00
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
AUDIO="${AUDIO}"
|
2006-04-28 22:39:29 +02:00
|
|
|
|
2012-05-04 16:14:45 +02:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
2006-04-28 22:39:29 +02:00
|
|
|
USE_GMAKE= yes
|
2009-01-18 14:42:57 +01:00
|
|
|
USE_GCC= 4.2+
|
2006-10-31 09:19:40 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-04-28 22:39:29 +02:00
|
|
|
USE_ZIP= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2007-01-27 01:44:33 +01:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src
|
2006-10-31 09:19:40 +01:00
|
|
|
|
2008-07-15 15:08:53 +02:00
|
|
|
REINPLACE_FILES= Makefile speech.h
|
|
|
|
REINPLACE_ARGS= -i.bak -e "s|%%DATADIR%%|${DATADIR}|g"
|
2006-04-28 22:39:29 +02:00
|
|
|
|
|
|
|
post-patch:
|
2008-07-15 15:08:53 +02:00
|
|
|
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}
|
2006-04-28 22:39:29 +02:00
|
|
|
|
2007-01-27 01:44:33 +01:00
|
|
|
post-install:
|
2006-04-28 22:39:29 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-07-15 15:08:53 +02:00
|
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
2006-04-28 22:39:29 +02:00
|
|
|
.endif
|
|
|
|
|
2008-12-10 08:35:19 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|