mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
graphics/opencv: when on POWER9 on powerpc64le, allow setting VSX3 as baseline
Also GCC is necessary because base LLVM 15 fails with: UNREACHABLE executed at /usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:11135! LLVM 16 also crashes and it seems 17 has already fixed this issue.
This commit is contained in:
parent
335e4a6404
commit
3fc69f53ec
1 changed files with 10 additions and 1 deletions
|
@ -19,7 +19,7 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
||||||
libharfbuzz.so:print/harfbuzz \
|
libharfbuzz.so:print/harfbuzz \
|
||||||
libhdf5.so:science/hdf5
|
libhdf5.so:science/hdf5
|
||||||
|
|
||||||
USES= cmake compiler:c++14-lang cpe localbase:ldflags pkgconfig
|
USES= cmake cpe localbase:ldflags pkgconfig
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= WeChatCV:wechat
|
GH_ACCOUNT= WeChatCV:wechat
|
||||||
GH_PROJECT= opencv_contrib:contrib \
|
GH_PROJECT= opencv_contrib:contrib \
|
||||||
|
@ -214,6 +214,15 @@ OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg
|
||||||
_IPPICV_i386= ippicv/ippicv_2020_lnx_ia32_20191018_general.tgz
|
_IPPICV_i386= ippicv/ippicv_2020_lnx_ia32_20191018_general.tgz
|
||||||
_IPPICV_amd64= ippicv/ippicv_2020_lnx_intel64_20191018_general.tgz
|
_IPPICV_amd64= ippicv/ippicv_2020_lnx_intel64_20191018_general.tgz
|
||||||
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
.if ${ARCH} == powerpc64le && defined(MACHINE_CPU) && ${MACHINE_CPU:Mvsx3}
|
||||||
|
CMAKE_ARGS+= -DCPU_BASELINE:STRING="VSX;VSX3;"
|
||||||
|
USES+= compiler:gcc-c++11-lib
|
||||||
|
.else
|
||||||
|
USES+= compiler:c++14-lang
|
||||||
|
.endif
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
# Handle contrib
|
# Handle contrib
|
||||||
${MV} ${WRKSRC_contrib} ${WRKSRC}/contrib
|
${MV} ${WRKSRC_contrib} ${WRKSRC}/contrib
|
||||||
|
|
Loading…
Add table
Reference in a new issue