# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD: head/devel/include-what-you-use/Makefile 460253 2018-01-29 11:11:02Z jbeich $

PORTNAME=	include-what-you-use
PORTVERSION=	0.8
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	koobs@FreeBSD.org
COMMENT=	Tool for use with clang to analyze #includes in C and C++ source files

LICENSE=	NCSA
LICENSE_FILE=	${WRKSRC}/LICENSE.TXT

BROKEN_powerpc64=	fails to compile: cc1plus: unrecognized command line option "-std=c++11"

BUILD_DEPENDS=	clang50:devel/llvm50
RUN_DEPENDS=	clang50:devel/llvm50

USES=		cmake:outsource ncurses python:run shebangfix
USE_GITHUB=	yes

SHEBANG_FILES=	fix_includes.py \
		iwyu_tool.py

GH_TAGNAME=	clang_5.0

CMAKE_ARGS+=	-DIWYU_LLVM_INCLUDE_PATH=${LOCALBASE}/llvm50/include \
		-DIWYU_LLVM_LIB_PATH=${LOCALBASE}/llvm50/lib

.include <bsd.port.mk>
