2012-09-27 13:26:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2012/09/27 17:26:05 ajacoutot Exp $
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2010-11-03 03:27:26 -04:00
|
|
|
COMMENT = C/C++ static checker
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2012-09-20 15:35:09 -04:00
|
|
|
DISTNAME = cppcheck-1.56
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2010-11-03 03:27:26 -04:00
|
|
|
CATEGORIES = devel
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2010-11-03 03:27:26 -04:00
|
|
|
HOMEPAGE = http://cppcheck.sourceforge.net/
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2011-09-13 09:39:49 -04:00
|
|
|
MAINTAINER = Gleydson Soares <gsoares@openbsd.org>
|
2010-09-23 05:34:51 -04:00
|
|
|
|
|
|
|
# GPLv3
|
2010-11-03 03:27:26 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
2012-04-15 10:33:50 -04:00
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
2010-11-03 03:27:26 -04:00
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2012-04-15 10:33:50 -04:00
|
|
|
WANTLIB = c m pcre stdc++
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2012-09-27 13:26:05 -04:00
|
|
|
BUILD_DEPENDS = textproc/docbook-xsl
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2011-03-12 08:25:30 -05:00
|
|
|
LIB_DEPENDS = devel/pcre
|
|
|
|
|
2010-11-03 03:27:26 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2010-11-03 03:27:26 -04:00
|
|
|
ALL_TARGET = cppcheck
|
2011-05-01 17:08:49 -04:00
|
|
|
REGRESS_TARGET = test
|
2012-01-12 09:04:25 -05:00
|
|
|
MAKE_FLAGS = BIN=${PREFIX}/bin \
|
|
|
|
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
CPPFLAGS="-DHAVE_RULES -I${PREFIX}/include" \
|
|
|
|
LDFLAGS="-L${PREFIX}/lib -lpcre"
|
2010-09-23 05:34:51 -04:00
|
|
|
|
2010-11-03 03:27:26 -04:00
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
2010-09-23 05:34:51 -04:00
|
|
|
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/
|
2011-05-01 17:08:49 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1/
|
2010-09-23 05:34:51 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|