git: 4042f2b4959f - main - multimedia/ffmpeg: enable LTO by default on aarch64 and amd64

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 27 Sep 2024 18:54:53 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4042f2b4959ffeb882c5988f20ea99e74136a757

commit 4042f2b4959ffeb882c5988f20ea99e74136a757
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-06-03 07:37:44 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-09-27 18:52:46 +0000

    multimedia/ffmpeg: enable LTO by default on aarch64 and amd64
    
    6% faster decode at least with HEVC and MPEG-2 (HDTV) + -vf bwdif
    
    PR:             271798
    Inspired by:    Apline, Arch, Chimera, CRUX, Fedora, OpenMandriva, Solus
    Reviewed by:    olivier
---
 multimedia/ffmpeg/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile
index 7bddf7438189..688f0fa87a0c 100644
--- a/multimedia/ffmpeg/Makefile
+++ b/multimedia/ffmpeg/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	ffmpeg
 PORTVERSION=	6.1.2
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	multimedia audio net
 MASTER_SITES=	https://ffmpeg.org/releases/
@@ -50,7 +50,8 @@ OPTIONS_DEFAULT=	AOM ASM ASS DAV1D DRM FONTCONFIG FREETYPE FREI0R GMP \
 			GNUTLS HARFBUZZ ICONV JXL LAME LCMS2 LIBPLACEBO LIBXML2 NETWORK \
 			OPTIMIZED_CFLAGS OPUS RTCPU SHADERC SVTAV1 V4L VAAPI VDPAU VMAF \
 			VORBIS VPX VULKAN WEBP X264 X265 XCB
-OPTIONS_DEFAULT_amd64=	NVENC
+OPTIONS_DEFAULT_aarch64=LTO
+OPTIONS_DEFAULT_amd64=	LTO NVENC
 OPTIONS_DEFAULT_i386=	NVENC
 
 # i386 is too register-starved for LTO (PR257124)