pkgsrc/devel/bison/Makefile
adam f144f554c5 Changes 2.7.1:
* Bug fixes
  * Fix compiler attribute portability (yacc.c)
    With locations enabled, __attribute__ was used unprotected.
  * Fix some compiler warnings (lalr1.cc)
2013-04-15 19:19:09 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.90 2013/04/15 19:19:09 adam Exp $
DISTNAME= bison-2.7.1
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"