Index: head/accessibility/qt5-speech/Makefile =================================================================== --- head/accessibility/qt5-speech/Makefile (revision 493746) +++ head/accessibility/qt5-speech/Makefile (revision 493747) @@ -1,16 +1,32 @@ # $FreeBSD$ PORTNAME= speech DISTVERSION= ${QT5_VERSION} +PORTREVISION= 1 CATEGORIES= accessibility PKGNAMEPREFIX= qt5- MAINTAINER= kde@FreeBSD.org COMMENT= Accessibilty features for Qt5 -LIB_DEPENDS= libspeechd.so:accessibility/speech-dispatcher - -USES= compiler:c++11-lang pkgconfig qmake:outsource qt-dist:5,speech +USES= compiler:c++11-lang gl pkgconfig qmake:outsource qt-dist:5,speech +USE_GL= gl USE_QT= core gui buildtools_build qmake_build + +OPTIONS_MULTI= BACKEND +OPTIONS_MULTI_BACKEND= SPEECHD FLITE +OPTIONS_DEFAULT= SPEECHD +OPTIONS_SUB= yes + +SPEECHD_DESC= Speech Dispatcher Backend +SPEECHD_USES= gettext-runtime gnome +SPEECHD_USE= GNOME=glib20 +SPEECHD_LIB_DEPENDS= libspeechd.so:accessibility/speech-dispatcher +SPEECHD_QMAKE_ON= CONFIG+=with_speechd + +FLITE_DESC= Festival Lite Backend +FLITE_LIB_DEPENDS= libflite.so:audio/flite +FLITE_USE= QT=multimedia,network +FLITE_QMAKE_ON= CONFIG+=with_flite .include Index: head/accessibility/qt5-speech/files/patch-qtspeech.pro =================================================================== --- head/accessibility/qt5-speech/files/patch-qtspeech.pro (nonexistent) +++ head/accessibility/qt5-speech/files/patch-qtspeech.pro (revision 493747) @@ -0,0 +1,18 @@ +--- qtspeech.pro.orig 2019-02-16 08:32:35 UTC ++++ qtspeech.pro +@@ -1,7 +1,11 @@ + load(configure) +-qtCompileTest(flite) +-qtCompileTest(flite_alsa) +-!packagesExist(speech-dispatcher) { +- qtCompileTest(speechd) ++with_flite { ++ qtCompileTest(flite) ++ qtCompileTest(flite_alsa) ++} ++with_speechd { ++ !packagesExist(speech-dispatcher) { ++ qtCompileTest(speechd) ++ } + } + load(qt_parts) Property changes on: head/accessibility/qt5-speech/files/patch-qtspeech.pro ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/accessibility/qt5-speech/files/patch-src_plugins_tts_tts.pro =================================================================== --- head/accessibility/qt5-speech/files/patch-src_plugins_tts_tts.pro (nonexistent) +++ head/accessibility/qt5-speech/files/patch-src_plugins_tts_tts.pro (revision 493747) @@ -0,0 +1,31 @@ +--- 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 ++ } + } Property changes on: head/accessibility/qt5-speech/files/patch-src_plugins_tts_tts.pro ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/accessibility/qt5-speech/pkg-plist =================================================================== --- head/accessibility/qt5-speech/pkg-plist (revision 493746) +++ head/accessibility/qt5-speech/pkg-plist (revision 493747) @@ -1,29 +1,32 @@ %%QT_INCDIR%%/QtTextToSpeech/%%FULLVER%%/QtTextToSpeech/private/qtexttospeech_p.h %%QT_INCDIR%%/QtTextToSpeech/%%FULLVER%%/QtTextToSpeech/private/qvoice_p.h %%QT_INCDIR%%/QtTextToSpeech/QTextToSpeech %%QT_INCDIR%%/QtTextToSpeech/QTextToSpeechEngine %%QT_INCDIR%%/QtTextToSpeech/QTextToSpeechPlugin %%QT_INCDIR%%/QtTextToSpeech/QVoice %%QT_INCDIR%%/QtTextToSpeech/QtTextToSpeech %%QT_INCDIR%%/QtTextToSpeech/QtTextToSpeechDepends %%QT_INCDIR%%/QtTextToSpeech/QtTextToSpeechVersion %%QT_INCDIR%%/QtTextToSpeech/qtexttospeech.h %%QT_INCDIR%%/QtTextToSpeech/qtexttospeech_global.h %%QT_INCDIR%%/QtTextToSpeech/qtexttospeechengine.h %%QT_INCDIR%%/QtTextToSpeech/qtexttospeechplugin.h %%QT_INCDIR%%/QtTextToSpeech/qttexttospeechversion.h %%QT_INCDIR%%/QtTextToSpeech/qvoice.h %%QT_CMAKEDIR%%/Qt5TextToSpeech/Qt5TextToSpeechConfig.cmake %%QT_CMAKEDIR%%/Qt5TextToSpeech/Qt5TextToSpeechConfigVersion.cmake -%%QT_CMAKEDIR%%/Qt5TextToSpeech/Qt5TextToSpeech_QTextToSpeechPluginSpeechd.cmake +%%FLITE%%%%QT_CMAKEDIR%%/Qt5TextToSpeech/Qt5TextToSpeech_QTextToSpeechEngineFlite.cmake +%%SPEECHD%%%%QT_CMAKEDIR%%/Qt5TextToSpeech/Qt5TextToSpeech_QTextToSpeechPluginSpeechd.cmake %%QT_LIBDIR%%/libQt5TextToSpeech.prl %%QT_LIBDIR%%/libQt5TextToSpeech.so %%QT_LIBDIR%%/libQt5TextToSpeech.so.5 %%QT_LIBDIR%%/libQt5TextToSpeech.so.%%SHORTVER%% %%QT_LIBDIR%%/libQt5TextToSpeech.so.%%FULLVER%% %%DEBUG%%%%QT_LIBDIR%%/libQt5TextToSpeech.so.%%FULLVER%%.debug %%QT_MKSPECDIR%%/modules/qt_lib_texttospeech.pri %%QT_MKSPECDIR%%/modules/qt_lib_texttospeech_private.pri -%%QT_PLUGINDIR%%/texttospeech/libqtexttospeech_speechd.so -%%DEBUG%%%%QT_PLUGINDIR%%/texttospeech/libqtexttospeech_speechd.so.debug +%%FLITE%%%%QT_PLUGINDIR%%/texttospeech/libqttexttospeech_flite.so +%%FLITE%%%%DEBUG%%%%QT_PLUGINDIR%%/texttospeech/libqttexttospeech_flite.so.debug +%%SPEECHD%%%%QT_PLUGINDIR%%/texttospeech/libqtexttospeech_speechd.so +%%SPEECHD%%%%DEBUG%%%%QT_PLUGINDIR%%/texttospeech/libqtexttospeech_speechd.so.debug libdata/pkgconfig/Qt5TextToSpeech.pc