audio/festival: fix build with clang 16

Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because audio/festival's build infrastructure does not explicitly set
its C++ standard, this leads to an error:

  regexp.cc:178:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  STATIC char *regnext(register char *p);
                       ^~~~~~~~~

To work around the error, add USE_CXXSTD=gnu++11 to compile for C++11
with GNU extensions instead. While here, pet portlint a little.

PR:		272014
Approved by:	fernape
MFH:		2023Q2
This commit is contained in:
Dimitry Andric 2023-06-15 18:31:34 +02:00
parent a579bac9a2
commit 9a521a21bc

View file

@ -24,12 +24,14 @@ MAINTAINER= mi@aldan.algebra.com
COMMENT= Multi-lingual speech synthesis system
WWW= https://www.cstr.ed.ac.uk/projects/festival/
USES= gmake
USE_CXXSTD= gnu++11
OPTIONS_DEFINE= NAS
OPTIONS_DEFAULT=NAS
CXXFLAGS+= -DFTLIBDIR=${LOCALBASE}/share/festival/lib -fno-delete-null-pointer-checks
CONFIGURE_WRKSRC=${WRKDIR}/festival
USES= gmake
SPEECHTOOLS= ${WRKSRC}/speech_tools
FESTIVAL= ${WRKSRC}/festival
MAKE_ARGS+= CC="${CCACHE_BIN} ${CC}" GCC="${CCACHE_BIN} ${CC}" \