diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2009-04-22 12:40:15 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2009-04-22 12:40:15 +0000 |
commit | 4e5d3c9a436f059f2c5be67826a94bece36add20 (patch) | |
tree | e7cb69933a6d8c6d44814a95ede796fb83277412 /devel/cppcheck/Makefile | |
parent | a6d1421969bf5bb4919b0a66b68a8faf2cf05b57 (diff) | |
download | ports-4e5d3c9a436f059f2c5be67826a94bece36add20.tar.gz ports-4e5d3c9a436f059f2c5be67826a94bece36add20.zip |
- Update to 1.31
- Respect NO_INSTALL_MAN_PAGES, CXX
- Add "regression-test" target for regression testing
- Switch to bzip2
PR: ports/133749
Submitted by: bf <bf2006a (at) yahoo (dot) com>
Approved by: tabthorpe (mentor)
Notes
Notes:
svn path=/head/; revision=232504
Diffstat (limited to 'devel/cppcheck/Makefile')
-rw-r--r-- | devel/cppcheck/Makefile | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile index efea4862f753..3aa296b77256 100644 --- a/devel/cppcheck/Makefile +++ b/devel/cppcheck/Makefile @@ -6,30 +6,42 @@ # PORTNAME= cppcheck -PORTVERSION= 1.30 +PORTVERSION= 1.31 CATEGORIES= devel MASTER_SITES= SF MAINTAINER= pgj@FreeBSD.org COMMENT= Static analysis of C/C++ code +USE_GMAKE= yes +USE_BZIP2= yes + +PLIST_FILES= bin/cppcheck + +ALL_TARGET= cppcheck + +.if !defined(NO_INSTALL_MANPAGES) BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl MANCOMPRESSED= no MAN1= cppcheck.1 +ALL_TARGET+= cppcheck.1 -USE_GMAKE= yes -ALL_TARGET= cppcheck cppcheck.1 - -PLIST_FILES= bin/cppcheck +post-install: + @${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1 +.endif post-patch: - @${REINPLACE_CMD} -e 's|CXXFLAGS=|CXXFLAGS= ${CXXFLAGS} |' \ + @${REINPLACE_CMD} -e 's|CXXFLAGS=|CXXFLAGS= ${CXXFLAGS} | ; \ + s|CXX=(.*)|CXX= ${CXX}|' \ ${WRKSRC}/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin - @${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1 + +regression-test: build + @(cd ${BUILD_WRKSRC}; \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} test) .include <bsd.port.mk> |