aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2021-08-05 09:41:05 +0000
committerKai Knoblich <kai@FreeBSD.org>2021-08-05 09:50:26 +0000
commitf23c268967bf67b77181efe321228a613632ae0e (patch)
tree0c38a6470037d26d82acfb258dbad6c6bd87ed23
parent2d0730feefbbae99887c78e2238a967054273b28 (diff)
downloadports-f23c268967bf67b77181efe321228a613632ae0e.tar.gz
ports-f23c268967bf67b77181efe321228a613632ae0e.zip
games/scummvm: Add new options, fix QA warnings
* Introduce a TTS option to avoid possible QA stage warnings with build environments that have already libspeechd.so because the configure script automatically adds it as an additional dependency in that case. Set the option as non-default because it's only used by a small set of engines and pulls in quite a few dependencies. * The same as above also applies for enviroments that have GTK3 installed. Disable the support for GTK3 for now, as it only affects the dialogs in the options menu and it does not cause any major changes, but also requires a lot of additional dependencies. * Add another option, XENGINES, that also enables experimental engines. * Bump PORTREVISION to force a rebuild due changed dependencies. PR: 255217 Reported by: Gian-Simon Purkert <gspurki@gmail.com>
-rw-r--r--games/scummvm/Makefile13
-rw-r--r--games/scummvm/pkg-plist2
2 files changed, 14 insertions, 1 deletions
diff --git a/games/scummvm/Makefile b/games/scummvm/Makefile
index a18e82ae9d99..7f39c4395b6d 100644
--- a/games/scummvm/Makefile
+++ b/games/scummvm/Makefile
@@ -2,6 +2,7 @@
PORTNAME= scummvm
PORTVERSION= 2.2.0
+PORTREVISION= 1
CATEGORIES= games emulators
MASTER_SITES= https://downloads.scummvm.org/frs/${PORTNAME}/${PORTVERSION}/
@@ -24,6 +25,7 @@ INSTALLS_ICONS= yes
CONFIGURE_ARGS= --disable-alsa \
--disable-debug \
+ --disable-gtk \
--disable-nasm \
--disable-tremor \
--enable-verbose-build \
@@ -33,12 +35,14 @@ CONFIGURE_ARGS= --disable-alsa \
LDFLAGS+= -lpthread
-OPTIONS_DEFINE= A52 CURL DOCS FLAC FLUIDSYNTH MP3 MT32EMU PNG SNDIO VORBIS
+OPTIONS_DEFINE= A52 CURL DOCS FLAC FLUIDSYNTH MP3 MT32EMU PNG SNDIO TTS VORBIS XENGINES
OPTIONS_DEFAULT= A52 MP3 MT32EMU PNG VORBIS
OPTIONS_SUB= yes
CURL_DESC= Enable ScummVM cloud storage backend
MT32EMU_DESC= MT-32 emulator
+TTS_DESC= Text-to-Speech support
+XENGINES_DESC= Experimental/Unstable engine support
A52_LIB_DEPENDS= liba52.so:audio/liba52
A52_CONFIGURE_ON= --with-a52-prefix=${LOCALBASE}
@@ -77,6 +81,13 @@ SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CONFIGURE_ON= --with-sndio-prefix=${LOCALBASE}
SNDIO_CONFIGURE_OFF= --disable-sndio
+TTS_LIB_DEPENDS= libspeechd.so:accessibility/speech-dispatcher
+TTS_CONFIGURE_ON= --enable-tts
+TTS_CONFIGURE_OFF= --disable-tts
+
+XENGINES_CONFIGURE_ON= --enable-all-engines
+XENGINES_CONFIGURE_OFF= --disable-all-unstable-engines
+
.include <bsd.port.pre.mk>
.if ${ARCH} == armv6 || ${ARCH} == armv7
diff --git a/games/scummvm/pkg-plist b/games/scummvm/pkg-plist
index a4a7016728bc..b64a3ebb8dbd 100644
--- a/games/scummvm/pkg-plist
+++ b/games/scummvm/pkg-plist
@@ -15,12 +15,14 @@ share/man/man6/scummvm.6.gz
share/metainfo/scummvm.appdata.xml
share/pixmaps/scummvm.xpm
%%DATADIR%%/access.dat
+%%XENGINES%%%%DATADIR%%/cryo.dat
%%DATADIR%%/cryomni3d.dat
%%DATADIR%%/drascula.dat
%%DATADIR%%/fonts.dat
%%DATADIR%%/hugo.dat
%%DATADIR%%/kyra.dat
%%DATADIR%%/lure.dat
+%%XENGINES%%%%DATADIR%%/macventure.dat
%%DATADIR%%/mort.dat
%%DATADIR%%/neverhood.dat
%%DATADIR%%/pred.dic