pkgsrc/devel/bison/Makefile
wiz ea216a921a Update to 2.6.4:
* Noteworthy changes in release 2.6.4 (2012-10-23) [stable]

  Bison 2.6.3's --version was incorrect.  This release fixes this issue.

* Noteworthy changes in release 2.6.3 (2012-10-22) [stable]

** Bug fixes

  Bugs and portability issues in the test suite have been fixed.

  Some errors in translations have been addressed, and --help now directs
  users to the appropriate place to report them.

  Stray Info files shipped by accident are removed.

  Incorrect definitions of YY_, issued by yacc.c when no parser header is
  generated, are removed.

  All the generated headers are self-contained.

** Header guards (yacc.c, glr.c, glr.cc)

  In order to avoid collisions, the header guards are now
  YY_<PREFIX>_<FILE>_INCLUDED, instead of merely <PREFIX>_<FILE>.
  For instance the header generated from

    %define api.prefix "calc"
    %defines "lib/parse.h"

  will use YY_CALC_LIB_PARSE_H_INCLUDED as guard.

** Fix compiler warnings in the generated parser (yacc.c, glr.c)

  The compilation of pure parsers (%define api.pure) can trigger GCC
  warnings such as:

    input.c: In function 'yyparse':
    input.c:1503:12: warning: 'yylval' may be used uninitialized in this
                              function [-Wmaybe-uninitialized]
       *++yyvsp = yylval;
                ^

  This is now fixed; pragmas to avoid these warnings are no longer needed.

  Warnings from clang ("equality comparison with extraneous parentheses" and
  "function declared 'noreturn' should not return") have also been
  addressed.
2012-11-03 01:02:23 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.87 2012/11/03 01:02:23 wiz Exp $
DISTNAME= bison-2.6.4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=bison/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/bison/bison.html
COMMENT= GNU yacc(1) replacement
LICENSE= gnu-gpl-v3
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
USE_PKGLOCALEDIR= yes
USE_TOOLS+= grep gm4:run msgfmt flex
GNU_CONFIGURE= yes
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes
CONFIGURE_ENV+= ac_cv_prog_M4=${TOOLS_PATH.gm4}
INFO_FILES= yes
TEST_TARGET= check
# Avoid rebuilding manpage
pre-build:
${TOUCH} ${WRKSRC}/doc/bison.1
# "bison" wants a recent version of "gettext" which at least some
# NetBSD versions don't provide. Figure out whether it will install
# the locale files or not.
PLIST_SRC= ${WRKDIR}/PLIST
post-configure:
if grep -q '^POSUB = po$$' ${WRKSRC}/Makefile; then \
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
else \
${GREP} -v '^share/locale/' ${PKGDIR}/PLIST >${PLIST_SRC}; \
fi
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"