Index: head/multimedia/svt-av1/Makefile =================================================================== --- head/multimedia/svt-av1/Makefile (revision 566229) +++ head/multimedia/svt-av1/Makefile (revision 566230) @@ -1,28 +1,40 @@ # $FreeBSD$ PORTNAME= svt-av1 DISTVERSIONPREFIX= v DISTVERSION= 0.8.6 +PORTREVISION= 1 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org COMMENT= Scalable AV1 encoder LICENSE= BSD2CLAUSE BSD3CLAUSE LICENSE_COMB= multi LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE.md LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/third_party/fastfeat/LICENSE BROKEN_i386= https://github.com/AOMediaCodec/SVT-AV1/issues/1231 BUILD_DEPENDS= nasm:devel/nasm USES= cmake compiler:c11 USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= AOMediaCodec GH_PROJECT= SVT-AV1 CMAKE_ON= ENABLE_NASM CMAKE_OFF= NATIVE + +OPTIONS_DEFINE= LTO +OPTIONS_DEFAULT=LTO +OPTIONS_EXCLUDE_powerpc64= ${"${/usr/bin/ld:L:tA}"==/usr/bin/ld.lld:?LTO:} # LLVM bug 47353 + +LTO_CMAKE_BOOL= CMAKE_INTERPROCEDURAL_OPTIMIZATION +LTO_CMAKE_ON= -DCMAKE_POLICY_DEFAULT_CMP0069:STRING=NEW +.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld +# --plugin isn't supported by old GNU ld.bfd in base +LTO_LDFLAGS= -fuse-ld=lld +.endif .include Index: head/multimedia/svt-hevc/Makefile =================================================================== --- head/multimedia/svt-hevc/Makefile (revision 566229) +++ head/multimedia/svt-hevc/Makefile (revision 566230) @@ -1,35 +1,46 @@ # $FreeBSD$ PORTNAME= svt-hevc DISTVERSIONPREFIX= v DISTVERSION= 1.5.0 +PORTREVISION= 1 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org COMMENT= Scalable HEVC encoder LICENSE= BSD2CLAUSE+PATENT LICENSE_GROUPS= FSF OSI COPYFREE LICENSE_NAME= BSD-2-Clause Plus Patent License LICENSE_FILE= ${WRKSRC}/LICENSE.md LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= uses x86-64 assembly BUILD_DEPENDS= nasm:devel/nasm USES= cmake compiler:c11 USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= OpenVisualCloud GH_PROJECT= SVT-HEVC CMAKE_OFF= NATIVE + +OPTIONS_DEFINE= LTO +OPTIONS_DEFAULT=LTO + +LTO_CMAKE_BOOL= CMAKE_INTERPROCEDURAL_OPTIMIZATION +LTO_CMAKE_ON= -DCMAKE_POLICY_DEFAULT_CMP0069:STRING=NEW +.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld +# --plugin isn't supported by old GNU ld.bfd in base +LTO_LDFLAGS= -fuse-ld=lld +.endif post-patch: # Keep using nasm and drop vendor -O/-g @${REINPLACE_CMD} -e '/find_program.*yasm/d' \ -Ee '/set.*(release|debug)_flags_to_test/,/\)/d' \ ${WRKSRC}/CMakeLists.txt .include Index: head/multimedia/svt-vp9/Makefile =================================================================== --- head/multimedia/svt-vp9/Makefile (revision 566229) +++ head/multimedia/svt-vp9/Makefile (revision 566230) @@ -1,37 +1,48 @@ # $FreeBSD$ PORTNAME= svt-vp9 DISTVERSIONPREFIX= v DISTVERSION= 0.3.0 +PORTREVISION= 1 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org COMMENT= Scalable VP9 encoder LICENSE= BSD2CLAUSE+PATENT LICENSE_GROUPS= FSF OSI COPYFREE LICENSE_NAME= BSD-2-Clause Plus Patent License LICENSE_FILE= ${WRKSRC}/LICENSE.md LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= uses x86-64 assembly BUILD_DEPENDS= nasm:devel/nasm USES= cmake compiler:c11 USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= OpenVisualCloud GH_PROJECT= SVT-VP9 CMAKE_OFF= NATIVE YASM + +OPTIONS_DEFINE= LTO +OPTIONS_DEFAULT=LTO + +LTO_CMAKE_BOOL= CMAKE_INTERPROCEDURAL_OPTIMIZATION +LTO_CMAKE_ON= -DCMAKE_POLICY_DEFAULT_CMP0069:STRING=NEW +.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld +# --plugin isn't supported by old GNU ld.bfd in base +LTO_LDFLAGS= -fuse-ld=lld +.endif post-patch: # Avoid conflict with standard types @${GREP} -Flr '_T_DEFINED' ${WRKSRC} | ${XARGS} \ ${REINPLACE_CMD} -i .types 's/_T_DEFINED/_DEFINED/' # Avoid platform whitelists for generic non-Windows code @${GREP} --exclude='*/third_party/*' -Flr '__linux' ${WRKSRC} | ${XARGS} \ ${REINPLACE_CMD} -i .opsys -E 's/__linux(__)?/__unix__/' .include