54e6f98927
Some code migrated from pcm-iio.cpp to utils.cpp with hard-coded paths,
but the REINPLACE commands were wrong. Additional binaries and files are
present in newer versions that were neglected in the last commit.
PR: 268730
Fixes: fc33bc299d
Sponsored by: Netflix
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
PORTNAME= intel-pcm
|
|
DISTVERSION= 202302
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= imp@FreeBSD.org
|
|
COMMENT= Process Count Monitor (PCM) for Intel processors
|
|
WWW= https://github.com/intel/pcm
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
LIB_DEPENDS= libsimdjson.so:devel/simdjson
|
|
|
|
USES= cmake compiler:c++11-lang
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= intel
|
|
GH_PROJECT= pcm
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-O3 -D_FORTIFY_SOURCE=1|-D_FORTIFY_SOURCE=1|g' \
|
|
${PATCH_WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_DATADIR}/pcm|$${CMAKE_INSTALL_DATADIR}/${PORTNAME}|g' \
|
|
${PATCH_WRKSRC}/src/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_DOCDIR}|$${CMAKE_INSTALL_DATADIR}/doc/${PORTNAME}|g' \
|
|
${PATCH_WRKSRC}/src/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|/usr/share/pcm/|${DATADIR}/|g' \
|
|
${PATCH_WRKSRC}/src/pcm-raw.cpp
|
|
@${REINPLACE_CMD} -e 's|/usr/share/pcm/|${DATADIR}/|g' \
|
|
${PATCH_WRKSRC}/src/utils.cpp
|
|
|
|
post-install:
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/licenses
|
|
|
|
.include <bsd.port.mk>
|