blob: 7e025fbeb9267386ef77ab747847dfabea4bfb52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.25 2013/06/03 10:04:43 wiz Exp $
DISTNAME= cppcheck-1.59
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://cppcheck.wiki.sourceforge.net/
COMMENT= Tool for static C/C++ code analysis
LICENSE= gnu-gpl-v3
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
FIND_PREFIX:= DBXSLDIR=docbook-xsl
.include "../../mk/find-prefix.mk"
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
BUILD_TARGET= all man
BUILD_MAKE_FLAGS+= DB2MAN=${DBXSLDIR}/share/xsl/docbook/manpages/docbook.xsl
INSTALLATION_DIRS= ${PKGMANDIR}/man1
.include "options.mk"
post-install:
${INSTALL_MAN} ${WRKSRC}/cppcheck.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.if !empty(PKG_OPTIONS:Mqt)
${INSTALL_PROGRAM} ${WRKSRC}/gui/cppcheck-gui \
${DESTDIR}${PREFIX}/bin
.endif
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|