aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/svt-av1/Makefile
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2019-02-21 05:51:09 +0800
committerjbeich <jbeich@FreeBSD.org>2019-02-21 05:51:09 +0800
commit866a66255ab6dbd3a911348f10f0b4b2ce69d86f (patch)
tree0367da9741d98370c14c8dfe5486a4693a827e17 /multimedia/svt-av1/Makefile
parent14f02dd2396e816890846b7e451d6e25ff471388 (diff)
downloadfreebsd-ports-gnome-866a66255ab6dbd3a911348f10f0b4b2ce69d86f.tar.gz
freebsd-ports-gnome-866a66255ab6dbd3a911348f10f0b4b2ce69d86f.tar.zst
freebsd-ports-gnome-866a66255ab6dbd3a911348f10f0b4b2ce69d86f.zip
multimedia/svt-av1: respect CPUTYPE in AVX2 sources
Diffstat (limited to 'multimedia/svt-av1/Makefile')
-rw-r--r--multimedia/svt-av1/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/multimedia/svt-av1/Makefile b/multimedia/svt-av1/Makefile
index 08edd39b6443..90114e921d29 100644
--- a/multimedia/svt-av1/Makefile
+++ b/multimedia/svt-av1/Makefile
@@ -31,6 +31,8 @@ post-patch:
-e 's/CMAKE_C_FLAGS "/&$${CMAKE_C_FLAGS} /' \
-e '/C_FLAGS_(RELEASE|DEBUG)/d' \
${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -i .flags -e 's/-march=core-avx2/-mavx2/' \
+ ${WRKSRC}/Source/Lib/ASM_AVX2/CMakeLists.txt \
# Avoid lang/gcc* dependency
@${REINPLACE_CMD} -i .gcc -e 's/gcc-//' \
-e '/CMAKE_C/{ s/STREQUAL/MATCHES/; s/"GNU/&|Clang/; }' \