1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/epos-devel/Makefile
Alexey Dokuchaev 6b5eb98e6d Unbreak the build on 9.X (against old yacc(1) which apparently does not
support %token_table declaration).  Originally the port was relying on
bison(1) instead (via USES=bison) in yacc-compat mode, but was switched
to yacc(1) in r389653 because it failed to build against `devel/bison'
version update to 3.0.4 as part of an exp-run (see PR).

It turns out that actually generated code does not suffer from removing
%token_table: the only difference in generated `neural_parse.cc' is that
yyname[] table is not guarded by `#if YYDEBUG' and it #define's yytname
as yyname, but the code that references yytname in `neural_parse.cc' is
#if'ed 0 and YYDEBUG is defined to 1 earlier.  That said, simply comment
out %token_table line which allows the build to proceed (ir)regardless of
the yacc(1) version, on all FreeBSD releases (including 8.X).

While here, remove `ac_cv_lib_stdcpp_main=no' in CONFIGURE_ENV that was
supposed to fix the build against Clang added in r323095 as it seems no
longer required, augment COMMENT and port description, and fix WWW line
to point to working website, killing trailing whitespace along the way.

PR:	200833
2016-01-26 17:57:01 +00:00

28 lines
663 B
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= epos
PORTVERSION= 2.5.37
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-dev/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Language independent Text-to-Speech (TTS) system
LICENSE= GPLv2 LGPL20
LICENSE_COMB= multi
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV= YACC="${YACC}"
post-patch:
@${REINPLACE_CMD} -e 's/^\(SUBDIRS =.*\)doc/\1/' ${WRKSRC}/Makefile.in
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-ggdb||'
@${REINPLACE_CMD} -e 's|<iostream.h>|<iostream>|' \
${WRKSRC}/src/nnet/neural.cc
.include <bsd.port.mk>