git: 053f1fdbf657 - main - devel/cpu_features: install internal/hwcaps.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Feb 2022 15:38:06 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=053f1fdbf657d303c5f192c1173cb4bf65cdd730
commit 053f1fdbf657d303c5f192c1173cb4bf65cdd730
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-02-02 15:31:40 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-02 15:31:40 +0000
devel/cpu_features: install internal/hwcaps.h
Fixes build of security/softether5 on powerpc64le:
/usr/local/include/cpu_features/cpuinfo_ppc.h:20:10: fatal error: 'internal/hwcaps.h' file not found
^~~~~~~~~~~~~~~~~~~
---
devel/cpu_features/Makefile | 4 +++-
devel/cpu_features/pkg-plist | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/devel/cpu_features/Makefile b/devel/cpu_features/Makefile
index 061b43b57598..b0c84309ce21 100644
--- a/devel/cpu_features/Makefile
+++ b/devel/cpu_features/Makefile
@@ -1,6 +1,6 @@
PORTNAME= cpu_features
DISTVERSION= 0.6.0
-PORTREVISION= 1
+PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= devel
@@ -22,6 +22,8 @@ CMAKE_ON= BUILD_SHARED_LIBS
CFLAGS+= -fPIC
post-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}/internal
+ ${INSTALL_DATA} ${WRKSRC}/include/internal/hwcaps.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}/internal/
${INSTALL_DATA} ${WRKSRC}/include/cpuinfo_*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}
.include <bsd.port.mk>
diff --git a/devel/cpu_features/pkg-plist b/devel/cpu_features/pkg-plist
index c38fceecee8a..733c33551e40 100644
--- a/devel/cpu_features/pkg-plist
+++ b/devel/cpu_features/pkg-plist
@@ -6,6 +6,7 @@ include/cpu_features/cpuinfo_arm.h
include/cpu_features/cpuinfo_mips.h
include/cpu_features/cpuinfo_ppc.h
include/cpu_features/cpuinfo_x86.h
+include/cpu_features/internal/hwcaps.h
lib/cmake/CpuFeatures/CpuFeaturesConfig.cmake
lib/cmake/CpuFeatures/CpuFeaturesConfigVersion.cmake
lib/cmake/CpuFeatures/CpuFeaturesTargets-%%CMAKE_BUILD_TYPE%%.cmake