mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
7f4572eae4
With hat: portmgr Sponsored by: Absolight
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
# Created by: Nicola Vitale <nivit@email.it>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= espeak
|
|
PORTVERSION= 1.48.04
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Software speech synthesizer
|
|
|
|
LICENSE= GPLv3
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_DEFAULT= PORTAUDIO
|
|
OPTIONS_RADIO= AUDIO_SYSTEM
|
|
OPTIONS_RADIO_AUDIO_SYSTEM= PORTAUDIO PULSEAUDIO RUNTIME
|
|
RUNTIME_DESC= Sound interface selected at runtime
|
|
|
|
PORTAUDIOLIB= libportaudio.so:audio/portaudio
|
|
PULSEAUDIOLIB= libpulse.so:audio/pulseaudio
|
|
|
|
PORTAUDIO_LIB_DEPENDS= ${PORTAUDIOLIB}
|
|
PULSEAUDIO_LIB_DEPENDS= ${PULSEAUDIOLIB}
|
|
RUNTIME_LIB_DEPENDS= ${PORTAUDIOLIB} \
|
|
${PULSEAUDIOLIB}
|
|
|
|
PULSEAUDIO_USES= compiler:c++0x
|
|
RUNTIME_USES= compiler:c++0x
|
|
|
|
PULSEAUDIO_MAKE_ENV= AUDIO="pulseaudio"
|
|
PORTAUDIO_MAKE_ENV= AUDIO="portaudio"
|
|
RUNTIME_MAKE_ENV= AUDIO="runtime"
|
|
|
|
CONFLICTS= speak-1.[0-9]
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
USES= gmake zip
|
|
USE_LDCONFIG= 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"
|
|
|
|
BROKEN_sparc64= Does not compile on sparc64
|
|
|
|
|
|
post-patch:
|
|
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}
|
|
post-patch-PORTAUDIO-on:
|
|
${MV} ${WRKSRC}/src/portaudio19.h ${WRKSRC}/src/portaudio.h
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libespeak.so*
|
|
|
|
.include <bsd.port.mk>
|