1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/accessibility/qt5-speech/files/patch-src_plugins_tts_tts.pro
Tobias C. Berner 30907c201a accessibility/qt5-speech: add options SPEECHD and FLITE
Previously we only assumed to build the speechd backend. If however flite was
installed, it would be picked up and could leed to it failing due to a missing
dependency to qt5-multimedia required by said backend.

With this we add options to deterministically toggle which of the backends to
build.

PR:		235900
Reported by:	starikarp@dismail.de, lumiwa@gmail.com
2019-02-24 09:29:03 +00:00

32 lines
678 B
Prolog

--- src/plugins/tts/tts.pro.orig 2019-02-16 08:43:06 UTC
+++ src/plugins/tts/tts.pro
@@ -1,10 +1,12 @@
TEMPLATE = subdirs
-unix {
- CONFIG += link_pkgconfig
- config_speechd | packagesExist(speech-dispatcher) {
- SUBDIRS += speechdispatcher
- }
+with_speechd {
+ unix {
+ CONFIG += link_pkgconfig
+ config_speechd | packagesExist(speech-dispatcher) {
+ SUBDIRS += speechdispatcher
+ }
+ }
}
windows:!winrt: SUBDIRS += sapi
@@ -15,6 +17,8 @@ uikit: SUBDIRS += ios
android: SUBDIRS += android
-config_flite | config_flite_alsa {
- SUBDIRS += flite
+with_flite {
+ config_flite | config_flite_alsa {
+ SUBDIRS += flite
+ }
}