Skip to content

Commit

Permalink
sysutils/intel-pcm: Fix plist and paths
Browse files Browse the repository at this point in the history
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:		fc33bc2
Sponsored by:	Netflix
  • Loading branch information
bsdimp committed Feb 23, 2023
1 parent af3d1a7 commit 54e6f98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sysutils/intel-pcm/Makefile
@@ -1,5 +1,6 @@
PORTNAME= intel-pcm
DISTVERSION= 202302
PORTREVISION= 1
CATEGORIES= sysutils

MAINTAINER= imp@FreeBSD.org
Expand Down Expand Up @@ -30,10 +31,10 @@ post-patch:
${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
@${REINPLACE_CMD} -e 's|/usr/share/pcm/|${DATADIR}/|g' \
${PATCH_WRKSRC}/src/utils.cpp

post-install:
${RM} -r ${STAGEDIR}${PREFIX}/share/licenses
Expand Down
6 changes: 6 additions & 0 deletions sysutils/intel-pcm/pkg-plist
@@ -1,4 +1,5 @@
sbin/pcm
sbin/pcm-accel
sbin/pcm-bw-histogram
sbin/pcm-core
sbin/pcm-iio
Expand All @@ -13,12 +14,17 @@ sbin/pcm-pcie
sbin/pcm-power
sbin/pcm-raw
sbin/pcm-sensor
sbin/pcm-sensor-server
sbin/pcm-tsx
%%DATADIR%%/PMURegisterDeclarations/GenuineIntel-6-4F-1.json
%%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%%/PMURegisterDeclarations/GenuineIntel-6-8F-6.json
%%DATADIR%%/opCode-106.txt
%%DATADIR%%/opCode-134.txt
%%DATADIR%%/opCode-143-accel.txt
%%DATADIR%%/opCode-143.txt
%%DATADIR%%/opCode-85.txt

0 comments on commit 54e6f98

Please sign in to comment.