openbsd-ports/devel/lclint/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.16 2000/03/12 01:52:45 espie Exp $
DISTNAME= lclint-2.4b
CATEGORIES= devel
2000-03-05 13:30:21 -05:00
NEED_VERSION= 1.223
1999-06-16 00:44:21 -04:00
MASTER_SITES= ftp://ftp.sds.lcs.mit.edu/pub/lclint/
1999-06-16 00:44:21 -04:00
DIST_SUBDIR= lclint
EXTRACT_ONLY= ${DISTNAME}.src.tar.gz
GUIDE= guide.tar.gz
DISTFILES= ${EXTRACT_ONLY} ${GUIDE}
MAINTAINER= espie@cvs.openbsd.org
2000-02-12 03:02:07 -05:00
# guide.tar.gz can be redistributed freely provided its contents are not
# altered.
LICENSE_TYPE= GPL NONE
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
2000-03-05 13:30:21 -05:00
BUILD_DEPENDS= bison:devel/bison
2000-03-05 13:30:21 -05:00
USE_GMAKE= Yes
HAS_CONFIGURE= Yes
CONFIGURE_ARGS=--prefix='$${DESTDIR}${PREFIX}' --sysconfdir='$${DESTDIR}/etc'
FAKE= Yes
1999-06-16 00:44:21 -04:00
DOCDIR= ${PREFIX}/share/doc/${DISTNAME}
post-patch:
@cd ${WRKSRC}/src && gmake 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:
@mkdir -p ${DOCDIR}
@cd ${DOCDIR} && tar zxf ${FULLDISTDIR}/${GUIDE}
test: install
@cd ${WRKSRC} && gmake test
.include <bsd.port.mk>