2c9f5d1cb5
PR: 255189 Approved by: koobs (maintainer) MFH: 2021Q2 (several bugfix releases)
27 lines
712 B
Makefile
27 lines
712 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
|
|
PORTNAME= include-what-you-use
|
|
PORTVERSION= 0.15
|
|
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
|
|
|
|
LLVM_VER= 11
|
|
BUILD_DEPENDS= clang${LLVM_VER}:devel/llvm${LLVM_VER}
|
|
RUN_DEPENDS= clang${LLVM_VER}:devel/llvm${LLVM_VER}
|
|
|
|
USES= cmake compiler:c++11-lang ncurses python:run shebangfix
|
|
USE_GITHUB= yes
|
|
GH_TAGNAME= clang_${LLVM_VER}
|
|
|
|
SHEBANG_FILES= fix_includes.py \
|
|
iwyu_tool.py
|
|
|
|
CMAKE_ARGS+= -DLLVM_DIR=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/llvm \
|
|
-DClang_DIR=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/clang
|
|
|
|
.include <bsd.port.mk>
|