Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2019 08:40:45 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r508300 - head/devel/include-what-you-use
Message-ID:  <201908070840.x778ejGD092822@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Wed Aug  7 08:40:45 2019
New Revision: 508300
URL: https://svnweb.freebsd.org/changeset/ports/508300

Log:
  Refactor out the constant string '80' to ease future maintenance.

Modified:
  head/devel/include-what-you-use/Makefile

Modified: head/devel/include-what-you-use/Makefile
==============================================================================
--- head/devel/include-what-you-use/Makefile	Wed Aug  7 08:33:24 2019	(r508299)
+++ head/devel/include-what-you-use/Makefile	Wed Aug  7 08:40:45 2019	(r508300)
@@ -12,8 +12,9 @@ COMMENT=	Tool for use with clang to analyze #includes 
 LICENSE=	NCSA
 LICENSE_FILE=	${WRKSRC}/LICENSE.TXT
 
-BUILD_DEPENDS=	clang80:devel/llvm80
-RUN_DEPENDS=	clang80:devel/llvm80
+LLVM_VER=	80
+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
@@ -23,7 +24,7 @@ SHEBANG_FILES=	fix_includes.py \
 
 GH_TAGNAME=	clang_8.0
 
-CMAKE_ARGS+=	-DLLVM_DIR=${LOCALBASE}/llvm80/lib/cmake/llvm \
-		-DClang_DIR=${LOCALBASE}/llvm80/lib/cmake/clang
+CMAKE_ARGS+=	-DLLVM_DIR=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/llvm \
+		-DClang_DIR=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/clang
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908070840.x778ejGD092822>