2000-03-11 20:52:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2000/03/12 01:52:45 espie Exp $
|
1999-06-07 19:37:56 -04:00
|
|
|
|
|
|
|
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-07 19:37:56 -04:00
|
|
|
|
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}
|
1999-06-07 19:37:56 -04:00
|
|
|
|
|
|
|
MAINTAINER= espie@cvs.openbsd.org
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2000-03-11 20:52:45 -05:00
|
|
|
# guide.tar.gz can be redistributed freely provided its contents are not
|
|
|
|
# altered.
|
|
|
|
|
|
|
|
LICENSE_TYPE= GPL NONE
|
2000-03-11 19:25:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
AUTHOR= evans@cs.virginia.edu # David Evans
|
1999-06-07 19:37:56 -04:00
|
|
|
BUGS= lclint-bug@sds.lcs.mit.edu
|
2000-03-11 19:25:21 -05:00
|
|
|
HOMEPAGE= http://lclint.cs.virginia.edu/
|
1999-06-07 19:37:56 -04:00
|
|
|
|
1999-06-16 09:49:34 -04:00
|
|
|
# Has to use bison because lclint uses pure parsers
|
2000-03-05 13:30:21 -05:00
|
|
|
BUILD_DEPENDS= bison:devel/bison
|
1999-06-07 19:37:56 -04:00
|
|
|
|
2000-03-05 13:30:21 -05:00
|
|
|
USE_GMAKE= Yes
|
2000-03-11 19:25:21 -05:00
|
|
|
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}
|
1999-06-07 19:37:56 -04:00
|
|
|
|
|
|
|
post-patch:
|
1999-12-08 12:02:56 -05:00
|
|
|
@cd ${WRKSRC}/src && gmake up
|
1999-06-07 19:37:56 -04:00
|
|
|
|
1999-09-24 10:13:06 -04:00
|
|
|
LIBSRC=${WRKSRC}/lib
|
2000-03-05 13:30:21 -05:00
|
|
|
LCLINT=${WRKBUILD}/bin/lclint
|
1999-09-24 10:13:06 -04:00
|
|
|
|
|
|
|
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
|
1999-06-07 19:37:56 -04:00
|
|
|
post-install:
|
1999-12-08 12:02:56 -05:00
|
|
|
@mkdir -p ${DOCDIR}
|
|
|
|
@cd ${DOCDIR} && tar zxf ${FULLDISTDIR}/${GUIDE}
|
1999-06-07 19:37:56 -04:00
|
|
|
|
1999-12-08 12:02:56 -05:00
|
|
|
test: install
|
|
|
|
@cd ${WRKSRC} && gmake test
|
1999-06-07 19:37:56 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|