1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/audio/espeak/Makefile
Baptiste Daroussin 5978476c35 In preparation for making libtool generate libraries with a sane name, fix all
LIB_DEPENDS in audio

With hat:	portmgr
2013-12-11 14:35:36 +00:00

77 lines
1.6 KiB
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= espeak
PORTVERSION= 1.47.11
PORTREVISION= 0
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= nivit@FreeBSD.org
COMMENT= A software speech synthesizer
LICENSE= GPLv3
# default is runtime audio detection
LIB_DEPENDS= ${PORTAUDIOLIB} \
${PULSEAUDIOLIB}
OPTIONS_DEFAULT= PORTAUDIO
OPTIONS_RADIO= AUDIO_SYSTEM
OPTIONS_RADIO_AUDIO_SYSTEM= PORTAUDIO PULSEAUDIO RUNTIME
RUNTIME_DESC= Sound interface selected at runtime
PORTAUDIOLIB= libportaudio.so:${PORTSDIR}/audio/portaudio
PULSEAUDIOLIB= libpulse.so:${PORTSDIR}/audio/pulseaudio
CONFLICTS= speak-1.[0-9]
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
AUDIO="${AUDIO}"
CXXFLAGS+= -I${LOCALBASE}/include
USES= gmake
NO_STAGE= yes
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"
.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
post-patch:
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}
.if ${PORT_OPTIONS:MDOCS}
post-install:
${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>