65 lines
1.5 KiB
Makefile
Executable File
65 lines
1.5 KiB
Makefile
Executable File
# $OpenBSD: Makefile,v 1.7 2013/03/27 16:07:42 ajacoutot Exp $
|
|
|
|
COMMENT= common interface to speech synthesis
|
|
|
|
DISTNAME= speech-dispatcher-0.8
|
|
|
|
SHARED_LIBS += speechd 1.0 # .6.0
|
|
|
|
CATEGORIES= audio
|
|
|
|
HOMEPAGE= http://devel.freebsoft.org/speechd
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += FLAC ao c dotconf espeak glib-2.0 gmodule-2.0 gthread-2.0
|
|
WANTLIB += ltdl m ogg pcre pthread sndfile vorbis vorbisenc
|
|
|
|
MASTER_SITES= http://devel.freebsoft.org/pub/projects/speechd/
|
|
|
|
MODULES= devel/gettext \
|
|
lang/python
|
|
|
|
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
|
MODPY_ADJ_FILES=src/api/python/speechd_config/spd-conf \
|
|
src/api/python/speechd/_test.py
|
|
|
|
LIB_DEPENDS= audio/espeak \
|
|
audio/libao \
|
|
audio/libsndfile \
|
|
devel/dotconf>=1.3 \
|
|
devel/glib2 \
|
|
devel/libtool,-ltdl
|
|
|
|
# undefined reference to `lt__PROGRAM__LTX_preloaded_symbols'
|
|
USE_LIBTOOL= gnu
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
--with-libao \
|
|
--with-espeak \
|
|
--with-default-audio-method=libao \
|
|
--without-flite \
|
|
--without-ibmtts \
|
|
--without-ivona \
|
|
--without-nas \
|
|
--without-oss \
|
|
--without-alsa \
|
|
--without-pulse
|
|
|
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/speech-dispatcher
|
|
|
|
pre-configure:
|
|
perl -pi -e 's,/usr/share,${LOCALBASE}/share,g;' \
|
|
-e 's,/usr/bin,${LOCALBASE}/bin,g' \
|
|
${WRKSRC}/config/modules/*.conf
|
|
|
|
post-install:
|
|
rm ${PREFIX}/lib/speech-dispatcher/spd_libao.{a,la}
|
|
|
|
.include <bsd.port.mk>
|