Changeset View
Changeset View
Standalone View
Standalone View
devel/bear/Makefile
# Created by: Jov <amutu@amutu.com> | # Created by: Jov <amutu@amutu.com> | ||||||||
PORTNAME= bear | PORTNAME= bear | ||||||||
DISTVERSION= 2.4.4 | DISTVERSION= 3.0.13 | ||||||||
CATEGORIES= devel | CATEGORIES= devel | ||||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | |||||||||
MAINTAINER= jrm@FreeBSD.org | MAINTAINER= jrm@FreeBSD.org | ||||||||
COMMENT= Tool that generates a compilation database for clang tooling | COMMENT= Tool that generates a compilation database for clang tooling | ||||||||
LICENSE= GPLv3 | LICENSE= GPLv3+ | ||||||||
USES= cmake python shebangfix | BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json | ||||||||
LIB_DEPENDS= libabsl_hash.so:devel/abseil \ | |||||||||
libcares.so:dns/c-ares \ | |||||||||
libfmt.so:devel/libfmt \ | |||||||||
libgrpc.so:devel/grpc \ | |||||||||
libprotobuf.so:devel/protobuf \ | |||||||||
dereks_lifeofadishwasher.com: From https://github.com/rizsotto/Bear/blob/master/INSTALL.md#build-dependencies | |||||||||
libre2.so:devel/re2 \ | |||||||||
libspdlog.so:devel/spdlog | |||||||||
USES= cmake compiler:c++17-lang pkgconfig | |||||||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||||||
GH_ACCOUNT= rizsotto | GH_ACCOUNT= rizsotto | ||||||||
GH_PROJECT= Bear | GH_PROJECT= Bear | ||||||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||||||
SHEBANG_FILES= bear/bear.py | CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR=${DOCSDIR} \ | ||||||||
python_OLD_CMD= "/usr/bin/env @BEAR_PYTHON_EXECUTABLE@" | -DENABLE_FUNC_TESTS=OFF \ | ||||||||
-DENABLE_UNIT_TESTS=OFF | |||||||||
Done Inline Actions
dereks_lifeofadishwasher.com: From https://github.com/rizsotto/Bear/blob/master/INSTALL.md#build-commands | |||||||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||||||
post-patch: | pre-install: | ||||||||
${REINPLACE_CMD} -e '/install(FILES COPYING/d' \ | ${MV} ${STAGEDIR}/${CONFIGURE_WRKSRC}/stage ${CONFIGURE_WRKSRC}/ | ||||||||
-e '/{CMAKE_INSTALL_DOCDIR}/d' \ | ${RM} -r ${STAGEDIR}/wrkdirs | ||||||||
${WRKSRC}/CMakeLists.txt | |||||||||
post-install-DOCS-on: | post-install: | ||||||||
${MKDIR} ${STAGEDIR}${DOCSDIR} | .for l in bin/citnames bin/intercept libexec/bear/libexec.so libexec/bear/wrapper | ||||||||
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${l} | ||||||||
.endfor | |||||||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
From https://github.com/rizsotto/Bear/blob/master/INSTALL.md#build-dependencies