summaryrefslogtreecommitdiffstats
path: root/accessibility
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2007-04-09 17:32:52 +0000
committermezz <mezz@FreeBSD.org>2007-04-09 17:32:52 +0000
commitaa613c0a38ff112a4cac447ffa79a683dacd0cba (patch)
tree727856e81dbe81364494e586c51193b6ba555605 /accessibility
parentb331edb6ea14353741b76a13c52b0be404b49921 (diff)
downloadFreeBSD-ports-aa613c0a38ff112a4cac447ffa79a683dacd0cba.zip
FreeBSD-ports-aa613c0a38ff112a4cac447ffa79a683dacd0cba.tar.gz
- Fix the '==' -> '=' in configure.
- Fix the build [1], dependency and plist if audio/espeak is installed in the system. - Add a new knob, WITH_ESPEAK, with autocheck. - Bump the PORTREVISION. PR: ports/111217 [1] Reported by: Jukka A. Ukkonen <jau@iki.fi> [1]
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/gnome-speech/Makefile19
-rw-r--r--accessibility/gnome-speech/pkg-plist2
2 files changed, 20 insertions, 1 deletions
diff --git a/accessibility/gnome-speech/Makefile b/accessibility/gnome-speech/Makefile
index a1be617..55a153cf 100644
--- a/accessibility/gnome-speech/Makefile
+++ b/accessibility/gnome-speech/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gnome-speech
PORTVERSION= 0.4.10
+PORTREVISION= 1
CATEGORIES= accessibility audio gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
@@ -27,12 +28,28 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/lib/libespeak.so)
+WITH_ESPEAK= yes
+.endif
+
.if exists(${LOCALBASE}/bin/festival)
WITH_FESTIVAL= yes
.endif
+.if defined(WITH_ESPEAK)
+LIB_DEPENDS+= espeak.1:${PORTSDIR}/audio/espeak
+CONFIGURE_ARGS+=--with-espeak-dir=${LOCALBASE}
+PLIST_SUB+= ESPEAK:=""
+.else
+PLIST_SUB+= ESPEAK:="@comment "
+.endif
+
.if defined(WITH_FESTIVAL)
-RUN_DEPENDS= festival:${PORTSDIR}/audio/festival
+RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|== x|= x|g' \
+ ${WRKSRC}/configure
+
.include <bsd.port.post.mk>
diff --git a/accessibility/gnome-speech/pkg-plist b/accessibility/gnome-speech/pkg-plist
index dc90aef..33c2af0 100644
--- a/accessibility/gnome-speech/pkg-plist
+++ b/accessibility/gnome-speech/pkg-plist
@@ -1,3 +1,4 @@
+%%ESPEAK:%%bin/espeak-synthesis-driver
bin/festival-synthesis-driver
bin/test-speech
include/gnome-speech-1.0/gnome-speech/GNOME_Speech.h
@@ -10,6 +11,7 @@ lib/libgnomespeech.so.7
lib/orbit-2.0/GNOME_Speech_module.a
lib/orbit-2.0/GNOME_Speech_module.la
lib/orbit-2.0/GNOME_Speech_module.so
+%%ESPEAK:%%libdata/bonobo/servers/GNOME_Speech_SynthesisDriver_Espeak.server
libdata/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server
libdata/pkgconfig/gnome-speech-1.0.pc
share/idl/gnome-speech-1.0/GNOME_Speech.idl
OpenPOWER on IntegriCloud