2021-05-28 18:57:54 +02:00
|
|
|
PORTNAME= libjxl
|
2020-11-20 18:04:18 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2024-01-10 10:51:57 +01:00
|
|
|
DISTVERSION= 0.9.1
|
2020-11-20 18:04:18 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= JPEG XL reference encoder/decoder
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://jpeg.org/jpegxl/
|
2020-11-20 18:04:18 +01:00
|
|
|
|
2022-08-05 16:09:58 +02:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2020-11-20 18:04:18 +01:00
|
|
|
|
2022-02-18 20:52:58 +01:00
|
|
|
LIB_DEPENDS= libbrotlienc.so:archivers/brotli \
|
|
|
|
libhwy.so:devel/highway
|
2021-05-17 15:42:20 +02:00
|
|
|
TEST_DEPENDS= googletest>0:devel/googletest
|
2020-11-20 18:04:18 +01:00
|
|
|
|
2021-10-20 18:13:09 +02:00
|
|
|
USES= cmake:testing compiler:c++11-lib cpe localbase:ldflags pkgconfig shared-mime-info
|
|
|
|
CPE_VENDOR= ${PORTNAME}_project
|
2021-05-28 18:57:54 +02:00
|
|
|
USE_GITHUB= yes
|
2020-11-20 18:04:18 +01:00
|
|
|
USE_LDCONFIG= yes
|
2023-12-22 15:33:41 +01:00
|
|
|
GH_TUPLE= jbeich:skcms:42030a7:skcms/third_party/skcms \
|
2024-01-10 10:51:57 +01:00
|
|
|
libjxl:testdata:ff8d743:testdata/testdata \
|
2023-12-22 15:33:41 +01:00
|
|
|
webmproject:sjpeg:e5ab130:sjpeg/third_party/sjpeg \
|
2020-11-20 18:04:18 +01:00
|
|
|
${NULL}
|
|
|
|
CMAKE_ON= JPEGXL_ENABLE_PLUGINS
|
2022-10-05 17:41:16 +02:00
|
|
|
CMAKE_OFF= ${BENCHMARK FUZZERS TCMALLOC:L:S/^/JPEGXL_ENABLE_/}
|
2020-11-20 18:04:18 +01:00
|
|
|
CMAKE_OFF+= ${OpenGL GLUT:L:S/^/CMAKE_DISABLE_FIND_PACKAGE_/} # sjpeg
|
2021-05-17 15:42:20 +02:00
|
|
|
CMAKE_OFF+= ${CMAKE_TESTING_ON}
|
2022-01-10 23:25:21 +01:00
|
|
|
LDFLAGS+= -Wl,--as-needed # brotlicommon, OPENEXR/PNG deps
|
2020-11-20 18:04:18 +01:00
|
|
|
|
2022-01-10 23:25:21 +01:00
|
|
|
OPTIONS_DEFINE= GIF JPEG LTO MANPAGES OPENEXR PIXBUF PNG
|
|
|
|
OPTIONS_DEFAULT=GIF JPEG LTO MANPAGES OPENEXR PIXBUF PNG
|
2021-02-25 19:32:23 +01:00
|
|
|
OPTIONS_EXCLUDE_i386= LTO # ConvolutionWithTranspose(): JXL_CHECK: out->xsize() == in.ysize()
|
2022-03-27 23:12:57 +02:00
|
|
|
OPTIONS_EXCLUDE_riscv64= LTO # bug 262871
|
2020-11-20 18:04:18 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
|
|
|
|
GIF_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_GIF
|
|
|
|
|
|
|
|
JPEG_USES= jpeg
|
|
|
|
JPEG_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_JPEG
|
2023-12-22 15:33:41 +01:00
|
|
|
JPEG_CMAKE_BOOL_OFF+= JPEGXL_ENABLE_JPEGLI_LIBJPEG # XXX WITH_JPEG8, libmap.conf(5)
|
2020-11-20 18:04:18 +01:00
|
|
|
|
2021-02-25 19:32:23 +01:00
|
|
|
LTO_CMAKE_BOOL= CMAKE_INTERPROCEDURAL_OPTIMIZATION
|
|
|
|
LTO_CMAKE_ON= -DCMAKE_POLICY_DEFAULT_CMP0069:STRING=NEW
|
|
|
|
|
2021-03-24 19:45:39 +01:00
|
|
|
MANPAGES_BUILD_DEPENDS= a2x:textproc/asciidoc
|
|
|
|
MANPAGES_USES= python:build
|
2021-08-02 18:20:01 +02:00
|
|
|
MANPAGES_CMAKE_BOOL= JPEGXL_ENABLE_MANPAGES
|
2021-03-24 19:45:39 +01:00
|
|
|
|
2022-08-05 16:09:58 +02:00
|
|
|
OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr
|
2020-11-20 18:04:18 +01:00
|
|
|
OPENEXR_CMAKE_BOOL= JPEGXL_ENABLE_OPENEXR
|
|
|
|
|
|
|
|
PIXBUF_USES= gnome
|
|
|
|
PIXBUF_USE= GNOME=gdkpixbuf2
|
2023-02-23 13:49:36 +01:00
|
|
|
PIXBUF_CMAKE_BOOL= JPEGXL_ENABLE_PLUGIN_GDKPIXBUF
|
2020-11-20 18:04:18 +01:00
|
|
|
|
|
|
|
PNG_LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
PNG_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_PNG
|
|
|
|
|
2020-12-24 20:44:27 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's,/usr,${LOCALBASE},' \
|
|
|
|
${WRKSRC}/plugins/gdk-pixbuf/jxl.thumbnailer
|
|
|
|
|
2020-11-20 18:04:18 +01:00
|
|
|
.include <bsd.port.mk>
|