openbsd-ports/devel/lclint/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

2001-03-23 10:56:04 -05:00
# $OpenBSD: Makefile,v 1.23 2001/03/23 15:56:04 brad Exp $
2000-08-01 11:41:13 -04:00
DISTNAME= lclint-2.5q
CATEGORIES= devel
2001-03-23 10:56:04 -05:00
NEED_VERSION= 1.336
MASTER_SITES= http://lclint.cs.virginia.edu/
MASTER_SITES0= http://lclint.cs.virginia.edu/guide/
1999-06-16 00:44:21 -04:00
DIST_SUBDIR= lclint
EXTRACT_ONLY= ${DISTNAME}.src.tar.gz
GUIDE= lclint-guide.tar.gz
DISTFILES= ${EXTRACT_ONLY} ${GUIDE}:0
2000-10-09 20:40:20 -04:00
MAINTAINER= Marc Espie <espie@openbsd.org>
2000-02-12 03:02:07 -05:00
# guide.tar.gz can be redistributed freely provided its contents are not
# altered.
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
AUTHOR= evans@cs.virginia.edu # David Evans
BUGS= lclint-bug@sds.lcs.mit.edu
HOMEPAGE= http://lclint.cs.virginia.edu/
# Has to use bison because lclint uses pure parsers
BUILD_DEPENDS= bison::devel/bison
2000-03-05 13:30:21 -05:00
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu dest
1999-06-16 00:44:21 -04:00
DOCDIR= ${PREFIX}/share/doc/${DISTNAME}
post-patch:
2001-03-23 10:56:04 -05:00
@cd ${WRKSRC}/src && ${MAKE_PROGRAM} up
LIBSRC=${WRKSRC}/lib
2000-03-05 13:30:21 -05:00
LCLINT=${WRKBUILD}/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:
${INSTALL_DATA_DIR} ${DOCDIR}
cd ${DOCDIR} && tar -zxv -s ,lclint-guide/,, -f ${FULLDISTDIR}/${GUIDE}
test: install
2001-03-23 10:56:04 -05:00
@cd ${WRKSRC} && ${MAKE_PROGRAM} test
.include <bsd.port.mk>