Skip to content

Commit

Permalink
games/scummvm: Add new options, fix QA warnings
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
knobix committed Aug 5, 2021
1 parent 2d0730f commit f23c268
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion games/scummvm/Makefile
Expand Up @@ -2,6 +2,7 @@

PORTNAME= scummvm
PORTVERSION= 2.2.0
PORTREVISION= 1
CATEGORIES= games emulators
MASTER_SITES= https://downloads.scummvm.org/frs/${PORTNAME}/${PORTVERSION}/

Expand All @@ -24,6 +25,7 @@ INSTALLS_ICONS= yes

CONFIGURE_ARGS= --disable-alsa \
--disable-debug \
--disable-gtk \
--disable-nasm \
--disable-tremor \
--enable-verbose-build \
Expand All @@ -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}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions games/scummvm/pkg-plist
Expand Up @@ -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
Expand Down

0 comments on commit f23c268

Please sign in to comment.