Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2024 11:02:17 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: d66b3a399ac3 - 2024Q4 - graphics/libjxl: enable AVX512 runtime detection (amd64-only)
Message-ID:  <202411231102.4ANB2Hxk016602@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch 2024Q4 has been updated by jbeich:

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

commit d66b3a399ac38e038510fdde53fabdc6f43ef3c0
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-11-23 05:55:47 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-11-23 11:01:39 +0000

    graphics/libjxl: enable AVX512 runtime detection (amd64-only)
    
    Upstream default is optimized for bundling or Linux-style micro-packages.
    FreeBSD currently doesn't split docs/headers/plugins, so minor binary size
    increase (7 MiB -> 9 MiB) is less important. FreeBSD is primarily used on
    servers where AVX512 is more common while on old desktops libjxl bloat is
    dwarfed by many other packages (e.g., firefox, llvm*, gcc*, boost-libs).
    
    See also https://github.com/libjxl/libjxl/pull/2627#issuecomment-1618237136
    
    (cherry picked from commit 18d435c1e3c253c2d10e08b4b5878504c46b43e7)
---
 graphics/libjxl/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/graphics/libjxl/Makefile b/graphics/libjxl/Makefile
index 7ea4140b60af..3245bc99706f 100644
--- a/graphics/libjxl/Makefile
+++ b/graphics/libjxl/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	libjxl
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.11.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -22,6 +23,7 @@ GH_TUPLE=	libjxl:testdata:ff8d743:testdata/testdata \
 		webmproject:sjpeg:e5ab130:sjpeg/third_party/sjpeg \
 		${NULL}
 CMAKE_ON=	JPEGXL_ENABLE_PLUGINS
+CMAKE_ON+=	${AVX512 AVX512_SPR AVX512_ZEN4:L:S/^/JPEGXL_ENABLE_/}
 CMAKE_OFF=	${BENCHMARK FUZZERS TCMALLOC:L:S/^/JPEGXL_ENABLE_/}
 CMAKE_OFF+=	${OpenGL GLUT:L:S/^/CMAKE_DISABLE_FIND_PACKAGE_/} # sjpeg
 CMAKE_OFF+=	${CMAKE_TESTING_ON}


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411231102.4ANB2Hxk016602>