[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / cppcheck

File: [cvs.NetBSD.org] / pkgsrc / devel / cppcheck / Makefile (download)

Revision 1.22, Wed Feb 6 23:22:03 2013 UTC (6 years, 2 months ago) by jperkin
Branch: MAIN
Changes since 1.21: +2 -2 lines

PKGREVISION bumps for the security/openssl 1.0.1d update.

# $NetBSD: Makefile,v 1.22 2013/02/06 23:22:03 jperkin Exp $
#

DISTNAME=	cppcheck-1.57
PKGREVISION=	2
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"

INSTALLATION_DIRS=	${PKGMANDIR}/man1
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake
BUILD_TARGET=		all man
BUILD_MAKE_FLAGS+=	DB2MAN=${DBXSLDIR}/share/xsl/docbook/manpages/docbook.xsl

.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"