diff --git a/devel/lclint/Makefile b/devel/lclint/Makefile index 60712ec5a12..9f1ab38ff54 100644 --- a/devel/lclint/Makefile +++ b/devel/lclint/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 1999/09/22 10:34:03 espie Exp $ +# $OpenBSD: Makefile,v 1.7 1999/09/24 14:13:06 espie Exp $ NEED_VERSION= 1.116 DISTNAME= lclint-2.4b @@ -25,6 +25,15 @@ DOCDIR= ${PREFIX}/share/doc/${DISTNAME} post-patch: @cd ${WRKSRC}/src && ${MAKE_PROGRAM} 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} ${DOCDIR} @cd ${DOCDIR} && ${TAR} -zxf ${FULLDISTDIR}/${GUIDE} diff --git a/devel/lclint/patches/patch-ac b/devel/lclint/patches/patch-ac new file mode 100644 index 00000000000..2e4a42d9214 --- /dev/null +++ b/devel/lclint/patches/patch-ac @@ -0,0 +1,11 @@ +--- lib/posix.h.orig Fri Sep 24 13:47:38 1999 ++++ lib/posix.h Fri Sep 24 13:48:04 1999 +@@ -819,7 +819,7 @@ pause (void) + /*@modifies errno@*/; + + extern int +-pipe (int fd[]) ++pipe (/*@out@*/ int fd[]) + /*@modifies errno@*/; + + extern ssize_t