openbsd-ports/audio/speech-dispatcher/Makefile
ajacoutot 0f4c7feee0 Remove some useless patches.
Tighten CONFIGURE_ARGS.
Better patch to deal with TEMP_FAILURE_RETRY.
2013-04-17 16:26:34 +00:00

60 lines
1.4 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.9 2013/04/17 16:26:34 ajacoutot Exp $
COMMENT= common interface to speech synthesis
DISTNAME= speech-dispatcher-0.8
REVISION= 1
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
# used by spd-conf
RUN_DEPENDS= devel/py-xdg${MODPY_FLAVOR}
LIB_DEPENDS= audio/espeak>=1.47.03p0 \
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} \
--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>