openbsd-ports/devel/lclint/Makefile
espie c770c7464c Don't depend on cookie, I'm ridiculous.
Kill deprecated variables while I'm at it.
1999-12-08 17:02:56 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 1999/12/08 17:02:56 espie Exp $
NEED_VERSION= 1.116
DISTNAME= lclint-2.4b
CATEGORIES= devel
MASTER_SITES= ftp://ftp.sds.lcs.mit.edu/pub/lclint/
DIST_SUBDIR= lclint
EXTRACT_ONLY= ${DISTNAME}.src.tar.gz
GUIDE= guide.tar.gz
DISTFILES= ${EXTRACT_ONLY} ${GUIDE}
MAINTAINER= espie@cvs.openbsd.org
AUTHOR= evs@sds.lcs.mit.edu # David Evans
BUGS= lclint-bug@sds.lcs.mit.edu
# Has to use bison because lclint uses pure parsers
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
USE_GMAKE= yes
GNU_CONFIGURE= yes
DOCDIR= ${PREFIX}/share/doc/${DISTNAME}
post-patch:
@cd ${WRKSRC}/src && gmake up
LIBSRC=${WRKSRC}/lib
LCLINT=${WRKSRC}/bin/lclint
post-build:
-cd ${LIBSRC} && rm *.orig
cd ${LIBSRC} && $(LCLINT) -nolib ansi.h posix.h -dump posix
cd ${LIBSRC} && $(LCLINT) -DSTRICT -nolib ansi.h posix.h -dump posixstrict
cd ${LIBSRC} && $(LCLINT) -nolib ansi.h posix.h unix.h -dump unix
cd ${LIBSRC} && $(LCLINT) -DSTRICT -nolib ansi.h posix.h unix.h -dump unixstrict
post-install:
@mkdir -p ${DOCDIR}
@cd ${DOCDIR} && tar zxf ${FULLDISTDIR}/${GUIDE}
test: install
@cd ${WRKSRC} && gmake test
.include <bsd.port.mk>