sysutils/intel-pcm: Rework port
- Update WWW and location of repo on GitHub - Add (lib)simdjson as dependency - Make DOCS optional - Install files in paths consistent with name of port - Fix paths in source files Reviewed by: imp (maintainer) via IRC (previous version) Approved by: imp (maintainer) via IRC
This commit is contained in:
parent
3346ed87cd
commit
c8b2af7ca6
@ -1,20 +1,42 @@
|
||||
PORTNAME= intel-pcm
|
||||
PORTVERSION= 202210
|
||||
DISTVERSION= 202210
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
|
||||
MAINTAINER= imp@FreeBSD.org
|
||||
COMMENT= Process Count Monitor (PCM) for Intel processors
|
||||
WWW= https://github.com/opcm/pcm
|
||||
WWW= https://github.com/intel/pcm
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
|
||||
USES= cmake
|
||||
LIB_DEPENDS= libsimdjson.so:devel/simdjson
|
||||
|
||||
USES= cmake compiler:c++11-lang
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= opcm
|
||||
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-iio.cpp
|
||||
@${REINPLACE_CMD} -e 's|/usr/share/pcm/|${DATADIR}/|g' \
|
||||
${PATCH_WRKSRC}/src/pcm-raw.cpp
|
||||
|
||||
post-install:
|
||||
${RM} -r ${STAGEDIR}${PREFIX}/share/licenses
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1667861314
|
||||
SHA256 (opcm-pcm-202210_GH0.tar.gz) = faec5b7923d0bc0018c090df594b1bf562428a08ab243cbb5c973e4b7ab6b126
|
||||
SIZE (opcm-pcm-202210_GH0.tar.gz) = 1088332
|
||||
TIMESTAMP = 1667933954
|
||||
SHA256 (intel-pcm-202210_GH0.tar.gz) = faec5b7923d0bc0018c090df594b1bf562428a08ab243cbb5c973e4b7ab6b126
|
||||
SIZE (intel-pcm-202210_GH0.tar.gz) = 1088332
|
||||
|
@ -14,25 +14,11 @@ sbin/pcm-power
|
||||
sbin/pcm-raw
|
||||
sbin/pcm-sensor
|
||||
sbin/pcm-tsx
|
||||
share/doc/PCM/CUSTOM-COMPILE-OPTIONS.md
|
||||
share/doc/PCM/DOCKER_README.md
|
||||
share/doc/PCM/ENVVAR_README.md
|
||||
share/doc/PCM/FAQ.md
|
||||
share/doc/PCM/FREEBSD_HOWTO.txt
|
||||
share/doc/PCM/LINUX_HOWTO.txt
|
||||
share/doc/PCM/MAC_HOWTO.txt
|
||||
share/doc/PCM/PCM-EXPORTER.md
|
||||
share/doc/PCM/PCM-SENSOR-SERVER-README.md
|
||||
share/doc/PCM/PCM_RAW_README.md
|
||||
share/doc/PCM/README.md
|
||||
share/doc/PCM/WINDOWS_HOWTO.md
|
||||
share/doc/PCM/license.txt
|
||||
share/licenses/pcm/LICENSE
|
||||
share/pcm/PMURegisterDeclarations/GenuineIntel-6-55-4.json
|
||||
share/pcm/PMURegisterDeclarations/GenuineIntel-6-55-7.json
|
||||
share/pcm/PMURegisterDeclarations/GenuineIntel-6-6A-6.json
|
||||
share/pcm/PMURegisterDeclarations/GenuineIntel-6-86-5.json
|
||||
share/pcm/PMURegisterDeclarations/GenuineIntel-6-8E-C.json
|
||||
share/pcm/opCode-106.txt
|
||||
share/pcm/opCode-134.txt
|
||||
share/pcm/opCode-85.txt
|
||||
%%DATADIR%%/PMURegisterDeclarations/GenuineIntel-6-55-4.json
|
||||
%%DATADIR%%/PMURegisterDeclarations/GenuineIntel-6-55-7.json
|
||||
%%DATADIR%%/PMURegisterDeclarations/GenuineIntel-6-6A-6.json
|
||||
%%DATADIR%%/PMURegisterDeclarations/GenuineIntel-6-86-5.json
|
||||
%%DATADIR%%/PMURegisterDeclarations/GenuineIntel-6-8E-C.json
|
||||
%%DATADIR%%/opCode-106.txt
|
||||
%%DATADIR%%/opCode-134.txt
|
||||
%%DATADIR%%/opCode-85.txt
|
||||
|
Loading…
Reference in New Issue
Block a user