1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/audio/espeak/Makefile
Nicola Vitale 548e329135 - Enable runtime detection of pulseaudio, with fallback to portaudio
if pulse is not running. That is useful for the users of KDE speech
  dispatcher system.  [1]
- Bump PORTREVISION (changed lib dependencies)

Suggested by:	Andrew Johnson <daeron at optushome.com.au> (via private email)
2012-05-04 14:14:45 +00:00

70 lines
1.5 KiB
Makefile

# New ports collection makefile for: espeak
# Date created: 2006-03-25
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= espeak
PORTVERSION= 1.46.02
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= nivit@FreeBSD.org
COMMENT= A software speech synthesizer
# 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
CONFLICTS= speak-1.[0-9]
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
AUDIO="${AUDIO}"
CXXFLAGS+= -I${LOCALBASE}/include
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>