1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

- 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]
This commit is contained in:
Jeremy Messenger 2007-04-09 17:32:52 +00:00
parent 0caefd3bc6
commit 44106f83c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189583
2 changed files with 21 additions and 2 deletions

View File

@ -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_FESTIVAL)
RUN_DEPENDS= festival:${PORTSDIR}/audio/festival
.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
.endif
post-patch:
@${REINPLACE_CMD} -e 's|== x|= x|g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>

View File

@ -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