[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / clang-tools-extra

File: [cvs.NetBSD.org] / pkgsrc / lang / clang-tools-extra / Makefile (download)

Revision 1.22, Wed Nov 23 16:20:30 2022 UTC (2 months ago) by adam
Branch: MAIN
Changes since 1.21: +2 -1 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.22 2022/11/23 16:20:30 adam Exp $

PKGREVISION= 1
.include "../../lang/clang/Makefile.common"

PKGNAME=	${DISTNAME:S/clang/clang-tools-extra/:S/.src//}

COMMENT=	Extra Clang tools

DEPENDS+=	clang>=${LLVM_VERSION}:../../lang/clang

CLANG_TOOLS_EXTRA=	clang-tools-extra-${LLVM_VERSION}.src
EXTRA_DIST+=		${CLANG_TOOLS_EXTRA}${EXTRACT_SUFX}
SITES.${CLANG_TOOLS_EXTRA}${EXTRACT_SUFX}= \
	${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}

BUILD_TARGET=	clang-change-namespace clang-apply-replacements clang-doc
BUILD_TARGET+=	clang-include-fixer clang-move clang-query clang-reorder-fields
BUILD_TARGET+=	clang-tidy clangd modularize pp-trace tool-template
INSTALL_DIRS=	build/tools/extra

REPLACE_PYTHON+=	tools/extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
REPLACE_PYTHON+=	tools/extra/clang-tidy/tool/clang-tidy-diff.py
REPLACE_PYTHON+=	tools/extra/clang-tidy/tool/run-clang-tidy.py

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-Bsymbolic-functions

.PHONY: inject-clang-tools
post-extract: inject-clang-tools
inject-clang-tools:
	${MV} ${WRKDIR}/${DISTNAME:S/clang/clang-tools-extra/} ${WRKSRC}/tools/extra

.include "../../mk/bsd.pkg.mk"