2011-04-22 15:41:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.76 2011/04/22 13:43:15 obache Exp $
|
1998-03-20 23:45:15 +01:00
|
|
|
|
2010-08-15 17:16:58 +02:00
|
|
|
DISTNAME= bison-2.4.3
|
2011-04-22 15:41:54 +02:00
|
|
|
PKGREVISION= 1
|
2001-01-13 00:34:50 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=bison/}
|
Update to 2.1:
Changes in version 2.1, 2005-09-16:
* Bison-generated parsers now support the translation of diagnostics like
"syntax error" into languages other than English. The default
language is still English. For details, please see the new
Internationalization section of the Bison manual. Software
distributors should also see the new PACKAGING file. Thanks to
Bruno Haible for this new feature.
* Wording in the Bison-generated parsers has been changed slightly to
simplify translation. In particular, the message "memory exhausted"
has replaced "parser stack overflow", as the old message was not
always accurate for modern Bison-generated parsers.
* Destructors are now called when the parser aborts, for all symbols left
behind on the stack. Also, the start symbol is now destroyed after a
successful parse. In both cases, the behavior was formerly inconsistent.
* When generating verbose diagnostics, Bison-generated parsers no longer
quote the literal strings associated with tokens. For example, for
a syntax error associated with '%token NUM "number"' they might
print 'syntax error, unexpected number' instead of 'syntax error,
unexpected "number"'.
2005-09-30 15:51:25 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1998-03-20 23:45:15 +01:00
|
|
|
|
2010-02-26 11:28:30 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-01-13 00:34:50 +01:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/bison/bison.html
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= GNU yacc(1) replacement
|
2009-11-30 19:38:02 +01:00
|
|
|
LICENSE= gnu-gpl-v3
|
1998-03-20 23:45:15 +01:00
|
|
|
|
2004-01-20 23:24:35 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2006-11-02 18:59:37 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-20 23:24:35 +01:00
|
|
|
|
2002-12-15 20:41:24 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2005-11-07 11:05:50 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2006-12-07 15:21:33 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2008-11-09 15:28:17 +01:00
|
|
|
USE_TOOLS+= grep gm4:run msgfmt
|
2006-03-30 05:44:41 +02:00
|
|
|
INFO_FILES= # PLIST
|
1999-10-04 19:24:00 +02:00
|
|
|
|
2009-05-30 16:47:07 +02:00
|
|
|
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes \
|
|
|
|
ac_cv_prog_M4=${TOOLS_PATH.gm4}
|
2006-05-03 17:41:05 +02:00
|
|
|
|
2003-08-09 09:33:27 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2008-11-07 23:01:48 +01:00
|
|
|
# Avoid rebuilding manpage
|
|
|
|
pre-build:
|
|
|
|
${TOUCH} ${WRKSRC}/doc/bison.1
|
|
|
|
|
2008-11-09 15:28:17 +01:00
|
|
|
# "bison" wants a recent version of "gettext" which at least NetBSD doesn'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
|
|
|
|
|
2006-05-03 17:41:05 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|