summaryrefslogtreecommitdiff
path: root/devel/bison/Makefile
blob: 156280cb9f2d39994a8c9abf16a4253d8b8d4d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: Makefile,v 1.121 2021/05/24 19:49:53 wiz Exp $

DISTNAME=	bison-3.7.6
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GNU:=bison/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.gnu.org/software/bison/bison.html
COMMENT=	GNU yacc(1) replacement
LICENSE=	gnu-gpl-v3

CHECK_PORTABILITY_SKIP+=	tests/local.mk

USE_LANGUAGES=		c c++
USE_TOOLS+=		grep gm4:run flex perl:build
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--disable-yacc
CONFIGURE_ENV+=		ac_cv_prog_M4=${TOOLS_PATH.gm4}

.include "options.mk"

INFO_FILES=		yes
TEST_TARGET=		check
REPLACE_PERL+=		examples/extexi
REPLACE_SH+=		examples/test examples/*/*.test

CONFIGURE_ARGS.Cygwin+=	ac_cv_func___fpending=yes

# Avoid rebuilding manpage
pre-build:
	${TOUCH} ${WRKSRC}/doc/bison.1

.include "../../mk/bsd.pkg.mk"