diff options
author | kwm <kwm@FreeBSD.org> | 2013-11-24 06:47:39 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2013-11-24 06:47:39 +0800 |
commit | 232558fbe7c64110c12473d4dd7d9aa29ba59da0 (patch) | |
tree | df75458cbeffcce6a17dcb1985a7f4c2a6ab6e80 /accessibility | |
parent | 5bc901969cdf6782a52c00e2bb930a677911aee1 (diff) | |
download | freebsd-ports-gnome-232558fbe7c64110c12473d4dd7d9aa29ba59da0.tar.gz freebsd-ports-gnome-232558fbe7c64110c12473d4dd7d9aa29ba59da0.tar.zst freebsd-ports-gnome-232558fbe7c64110c12473d4dd7d9aa29ba59da0.zip |
Explicitly disable espeak or festival support if we haven't asked for it [1]
While here stageify.
PR: ports/182522
Submitted by: rm@
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/gnome-speech/Makefile | 13 | ||||
-rw-r--r-- | accessibility/gnome-speech/pkg-plist | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/accessibility/gnome-speech/Makefile b/accessibility/gnome-speech/Makefile index 685b2effb442..48db0f062cf8 100644 --- a/accessibility/gnome-speech/Makefile +++ b/accessibility/gnome-speech/Makefile @@ -4,6 +4,7 @@ PORTNAME= gnome-speech PORTVERSION= 0.4.25 +PORTREVISION= 1 CATEGORIES= accessibility audio gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -11,7 +12,6 @@ DIST_SUBDIR= gnome2 MAINTAINER= gnome@FreeBSD.org COMMENT= GNOME text-to-speech API -NO_STAGE= yes USE_BZIP2= yes USE_GNOME= gnomeprefix libbonobo USES= gmake pathfix pkgconfig @@ -28,15 +28,20 @@ FESTIVAL_DESC= Festival speech synthesis support .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MESPEAK} -LIB_DEPENDS+= espeak:${PORTSDIR}/audio/espeak +LIB_DEPENDS+= libespeak.so:${PORTSDIR}/audio/espeak CONFIGURE_ARGS+=--with-espeak-dir=${LOCALBASE} PLIST_SUB+= ESPEAK:="" .else +CONFIGURE_ARGS+=--without-espeak PLIST_SUB+= ESPEAK:="@comment " .endif .if ${PORT_OPTIONS:MFESTIVAL} RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival +PLIST_SUB+= FESTIVAL="" +.else +CONFIGURE_ARGS+=--without-festival +PLIST_SUB+= FESTIVAL="@comment " .endif post-patch: @@ -51,4 +56,8 @@ post-patch: ${WRKSRC}/drivers/loquendo/*.[ch] \ ${WRKSRC}/drivers/espeak/*.[ch] +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnomespeech.so.7 + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/orbit-2.0/GNOME_Speech_module.so + .include <bsd.port.mk> diff --git a/accessibility/gnome-speech/pkg-plist b/accessibility/gnome-speech/pkg-plist index 33c2af07e02e..099c20920d60 100644 --- a/accessibility/gnome-speech/pkg-plist +++ b/accessibility/gnome-speech/pkg-plist @@ -1,5 +1,5 @@ %%ESPEAK:%%bin/espeak-synthesis-driver -bin/festival-synthesis-driver +%%FESTIVAL%%bin/festival-synthesis-driver bin/test-speech include/gnome-speech-1.0/gnome-speech/GNOME_Speech.h include/gnome-speech-1.0/gnome-speech/gnome-speech.h @@ -12,7 +12,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 +%%FESTIVAL%%libdata/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server libdata/pkgconfig/gnome-speech-1.0.pc share/idl/gnome-speech-1.0/GNOME_Speech.idl share/idl/gnome-speech-1.0/GNOME_Speech_Speaker.idl |