b910ce6bef
- Remove dead code - Fix format selection and playback with raw devices - Fix OSS backend - Remove dead code - Don't open the device in non-blocking mode. There is no error handling for short writes and looking at how audio_play() is used in say.c it is expected to block. - Fix format selection - Let the kernel handle sample conversion instead of doing it in the backend - Make NAS support optional - Make installing dictionary database tools optional - Add LICENSE Obtained from: OpenBSD [1] (based on) Approved by: lme (mentor) Differential Revision: https://reviews.freebsd.org/D10828
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# Created by: faulkner@mpd.tandem.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rsynth
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= audio accessibility
|
|
MASTER_SITES= ftp://svr-ftp.eng.cam.ac.uk/pub/comp.speech/synthesis/ \
|
|
ftp://ftp.enst.fr/pub/unix/multimedia/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Speech synthesizer
|
|
|
|
LICENSE= PD
|
|
|
|
OPTIONS_DEFINE= DB NAS SNDIO
|
|
OPTIONS_SUB= yes
|
|
|
|
DB_DESC= Build dictionary database tools
|
|
DB_LIB_DEPENDS= libgdbm.so:databases/gdbm
|
|
DB_CONFIGURE_ENV_OFF= ac_cv_lib_gdbm_gdbm_open=no
|
|
NAS_LIB_DEPENDS= libaudio.so:audio/nas
|
|
NAS_CONFIGURE_ENV_OFF= ac_cv_header_audio_audiolib_h=no
|
|
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
|
|
SNDIO_MAKE_ENV= SAY_LIBS=-lsndio
|
|
|
|
USES= autoreconf
|
|
GNU_CONFIGURE= yes
|
|
|
|
pre-configure-SNDIO-on:
|
|
@${CP} ${FILESDIR}/sndioplay.c ${WRKSRC}/config/freebsdplay.c
|
|
|
|
pre-configure-SNDIO-off:
|
|
@${CP} ${FILESDIR}/ossplay.c ${WRKSRC}/config/freebsdplay.c
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -E 's,(BIN|LIB)_DIR\),DESTDIR\)$$\(&,g' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/dict
|
|
|
|
.include <bsd.port.mk>
|