Skip to content

Commit

Permalink
devel/cpu_features: install internal/hwcaps.h
Browse files Browse the repository at this point in the history
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
         ^~~~~~~~~~~~~~~~~~~
  • Loading branch information
pkubaj committed Feb 2, 2022
1 parent 64aadd6 commit 053f1fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devel/cpu_features/Makefile
@@ -1,6 +1,6 @@
PORTNAME= cpu_features
DISTVERSION= 0.6.0
PORTREVISION= 1
PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= devel

Expand All @@ -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>
1 change: 1 addition & 0 deletions devel/cpu_features/pkg-plist
Expand Up @@ -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
Expand Down

0 comments on commit 053f1fd

Please sign in to comment.