openbsd-ports/devel/cppcheck/Makefile
gsoares 93e38ad1e1 update to 1.55
ok jasper@
2012-07-13 02:26:03 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2012/07/13 02:26:03 gsoares Exp $
COMMENT = C/C++ static checker
DISTNAME = cppcheck-1.55
CATEGORIES = devel
HOMEPAGE = http://cppcheck.sourceforge.net/
MAINTAINER = Gleydson Soares <gsoares@openbsd.org>
# 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}" \
CPPFLAGS="-DHAVE_RULES -I${PREFIX}/include" \
LDFLAGS="-L${PREFIX}/lib -lpcre"
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>