millert 19e2873445 Allow splint to build with bison 3.7.
The y.tab.c file equivalent now includes the generated header so
we need to update the path in it when renaming the header file.
OK sthen@
2021-05-09 13:40:03 +00:00

37 lines
829 B
Makefile

# $OpenBSD: Makefile,v 1.15 2021/05/09 13:40:03 millert Exp $
COMMENT = advanced lint: statically check C programs
DISTNAME = splint-3.1.2
DISTFILES = splint-3.1.2.src.tgz
REVISION = 1
CATEGORIES = devel
HOMEPAGE = http://www.splint.org/
MAINTAINER = Marc Espie <espie@openbsd.org>
# GPL
PERMIT_PACKAGE = Yes
WANTLIB = c
MASTER_SITES = ${HOMEPAGE}downloads/
# Has to use bison because splint uses pure parsers
BUILD_DEPENDS = devel/bison
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/config
pre-build:
-rm ${WRKSRC}/src/{cgrammar,llgrammar,mtgrammar,signature}.c
DOCDIR= ${PREFIX}/share/doc/splint
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/manual.pdf ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/html/manual.htm ${DOCDIR}/manual.html
.include <bsd.port.mk>