Date: Wed, 16 Jan 2013 18:05:43 +0000 (UTC) From: Brendan Fabeny <bf@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310506 - in head/devel/cppcheck: . files Message-ID: <201301161805.r0GI5hTc074178@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bf Date: Wed Jan 16 18:05:43 2013 New Revision: 310506 URL: http://svnweb.freebsd.org/changeset/ports/310506 Log: update to 1.58; sort some assignments; shorten a long line; trim Makefile header; fix header search order; make it possible to build a slim version with minimal dependencies Deleted: head/devel/cppcheck/files/patch-Makefile Modified: head/devel/cppcheck/Makefile head/devel/cppcheck/distinfo Modified: head/devel/cppcheck/Makefile ============================================================================== --- head/devel/cppcheck/Makefile Wed Jan 16 16:32:20 2013 (r310505) +++ head/devel/cppcheck/Makefile Wed Jan 16 18:05:43 2013 (r310506) @@ -1,13 +1,8 @@ -# New ports collection makefile for: cppcheck -# Date created: March 3, 2009 -# Whom: Gabor Pali <pgj@FreeBSD.org> -# +# Created by: Gabor Pali <pgj@FreeBSD.org> # $FreeBSD$ -# PORTNAME= cppcheck -PORTVERSION= 1.57 -PORTREVISION= 1 +PORTVERSION= 1.58 CATEGORIES= devel MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/ @@ -16,38 +11,74 @@ COMMENT= Static analysis of C/C++ code LICENSE= GPLv3 -LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre \ - tinyxml:${PORTSDIR}/textproc/tinyxml +LIB_DEPENDS= tinyxml:${PORTSDIR}/textproc/tinyxml -USE_GMAKE= yes USE_BZIP2= yes +USE_GMAKE= yes + +ALL_TARGET= cppcheck LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -CPPFLAGS+= -I${LOCALBASE}/include -MAKE_ENV+= HAVE_RULES=yes TINYXML=-ltinyxml +MAKE_ENV+= TINYXML=-ltinyxml -PLIST_FILES= bin/cppcheck +OPTIONS_DEFINE= MATCHCOMPILER RULES +OPTIONS_DEFAULT= MATCHCOMPILER RULES -ALL_TARGET= cppcheck +MATCHCOMPILER_DESC= Build-time optimizations via Python +RULES_DESC= User-defined rule support (requires PCRE) -.include <bsd.port.pre.mk> +PLIST_FILES= bin/cppcheck + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDOCS} +ALL_TARGET+= man BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl - -MANCOMPRESSED= no +MAKE_ENV+= DB2MAN="${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl" MAN1= cppcheck.1 -ALL_TARGET+= man +MANCOMPRESSED= no post-install: @${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1 .endif +.if ${PORT_OPTIONS:MMATCHCOMPILER} +MAKE_ENV+= SRCDIR=build +USE_PYTHON_BUILD= 2.6+ +.endif + +.if ${PORT_OPTIONS:MRULES} +LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre +MAKE_ENV+= HAVE_RULES=yes +.endif + +post-patch: + @${REINPLACE_CMD} \ + -e 's|-Iexternals/tinyxml|-I${LOCALBASE}/include|' \ + ${WRKSRC}/Makefile +.if ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -e '\|DB2MAN=|d' \ + ${WRKSRC}/Makefile +.endif +.if ${PORT_OPTIONS:MMATCHCOMPILER} + @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' \ + ${WRKSRC}/Makefile +.endif +.if ${PORT_OPTIONS:MRULES} + @${REINPLACE_CMD} \ + -e '\|CXXFLAGS +=| \ + s| -DTIXML_USE_STL $$(shell pcre-config --cflags)||' \ + -e '\|$$(SRCDIR)/cppcheck.cpp| \ + s|$${INCLUDE_FOR_LIB}|& $$(shell pcre-config --cflags)|' \ + ${WRKSRC}/Makefile +.endif + do-install: @${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin check regression-test test: build @(cd ${BUILD_WRKSRC}; \ - ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} test) + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \ + ${_MAKE_JOBS} ${MAKE_ARGS} test) -.include <bsd.port.post.mk> +.include <bsd.port.mk> Modified: head/devel/cppcheck/distinfo ============================================================================== --- head/devel/cppcheck/distinfo Wed Jan 16 16:32:20 2013 (r310505) +++ head/devel/cppcheck/distinfo Wed Jan 16 18:05:43 2013 (r310506) @@ -1,2 +1,2 @@ -SHA256 (cppcheck-1.57.tar.bz2) = 8774a804e08465787e3ddc3af9faf496606c207aa65f750eefd2851a9ccdafd5 -SIZE (cppcheck-1.57.tar.bz2) = 1180272 +SHA256 (cppcheck-1.58.tar.bz2) = d82e98f83ad9fa963d8f9f72d73b409abe13a35aaf302a86a0114a161715b19b +SIZE (cppcheck-1.58.tar.bz2) = 1230439
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301161805.r0GI5hTc074178>