openbsd-ports/devel/cppcheck/Makefile
gsoares 0a0de6ff8d - update to 1.48,
- remove NO_REGRESS, and set REGRESS_TARGET (enable regression tests)
- use INSTALL_MAN instead of INSTALL_DATA
- add a patch to fix an issue which was found by Igor Zinovik(MAINTAINER)
http://sourceforge.net/apps/trac/cppcheck/ticket/2755
(The patch has already been committed upstream and will be part of the next release)

ok jasper@, sthen@, Igor Zinovik(MAINTAINER)
2011-05-01 21:08:49 +00:00

46 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2011/05/01 21:08:49 gsoares Exp $
COMMENT = C/C++ static checker
DISTNAME = cppcheck-1.48
CATEGORIES = devel
HOMEPAGE = http://cppcheck.sourceforge.net/
MAINTAINER = Igor Zinovik <zinovik.igor@gmail.com>
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m pcre stdc++
BUILD_DEPENDS = textproc/docbook-xsl \
textproc/libxslt
LIB_DEPENDS = devel/pcre
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
ALL_TARGET = cppcheck
REGRESS_TARGET = test
MAKE_FLAGS = BIN=${PREFIX}/bin CXX="${CXX}" \
CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include -L${PREFIX}/lib"
USE_GMAKE = Yes
post-build:
cd ${WRKSRC} && \
${PREFIX}/bin/xsltproc --novalid --nonet --param man.charmap.use.subset "0" \
${PREFIX}/share/xsl/docbook/manpages/docbook.xsl \
${WRKSRC}/man/cppcheck.1.xml
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>