2021-05-28 18:57:54 +02:00
|
|
|
PORTNAME= libjxl
|
2020-11-20 18:04:18 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2021-10-30 00:05:36 +02:00
|
|
|
DISTVERSION= 0.6.1
|
2022-07-27 13:48:16 +02:00
|
|
|
PORTREVISION= 6
|
2020-11-20 18:04:18 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
graphics/libjxl: unbreak with libc++ 12
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:153:12: error: unknown type name 'cpusetid_t'
int cpuset(cpusetid_t *);
^
/usr/include/sys/cpuset.h:154:18: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:154:30: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:154:36: error: unknown type name 'cpusetid_t'
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
^
/usr/include/sys/cpuset.h:155:18: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int __cpulevel_t; /* level parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:30: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:42: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:48: error: unknown type name 'cpusetid_t'
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/sys/cpuset.h:156:24: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int __cpulevel_t; /* level parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:156:36: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:156:48: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:24: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int __cpulevel_t; /* level parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:36: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:48: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
Reported by: pkg-fallout
2021-06-17 01:46:02 +02:00
|
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
|
|
|
PATCHFILES+= adb32f3f8f37.patch:-p1 # https://github.com/libjxl/libjxl/pull/193
|
2021-10-01 16:41:25 +02:00
|
|
|
PATCHFILES+= c31dca74e68f.patch:-p1 # https://github.com/libjxl/libjxl/pull/678
|
2022-02-17 15:05:19 +01:00
|
|
|
PATCHFILES+= 0b70567432ab.patch:-p1 # https://github.com/libjxl/libjxl/pull/797
|
|
|
|
PATCHFILES+= e0107a6ca637.patch:-p1 # https://github.com/libjxl/libjxl/pull/847
|
|
|
|
PATCHFILES+= e903d53a58b4.patch:-p1 # https://github.com/libjxl/libjxl/pull/1071
|
|
|
|
PATCHFILES+= 600b59153882.patch:-p1 # https://github.com/libjxl/libjxl/pull/1156
|
2022-06-02 17:30:41 +02:00
|
|
|
PATCHFILES+= 98d25826edc1.patch:-p1 # https://github.com/libjxl/libjxl/pull/1343
|
|
|
|
PATCHFILES+= 1f849bd28145.patch:-p1 # https://github.com/libjxl/libjxl/pull/1369
|
graphics/libjxl: unbreak with libc++ 12
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:153:12: error: unknown type name 'cpusetid_t'
int cpuset(cpusetid_t *);
^
/usr/include/sys/cpuset.h:154:18: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:154:30: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:154:36: error: unknown type name 'cpusetid_t'
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
^
/usr/include/sys/cpuset.h:155:18: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int __cpulevel_t; /* level parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:30: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:42: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:48: error: unknown type name 'cpusetid_t'
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
^
/usr/include/sys/cpuset.h:156:24: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int __cpulevel_t; /* level parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:156:36: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:156:48: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:24: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int __cpulevel_t; /* level parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:36: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int __cpuwhich_t; /* which parameter for cpuset. */
^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:48: error: unknown type name 'id_t'; did you mean 'pid_t'?
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t pid_t;
^
Reported by: pkg-fallout
2021-06-17 01:46:02 +02:00
|
|
|
|
2020-11-20 18:04:18 +01:00
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= JPEG XL reference encoder/decoder
|
|
|
|
|
2021-08-02 19:17:37 +02:00
|
|
|
LICENSE= BSD3CLAUSE ZLIB
|
2020-11-20 18:04:18 +01:00
|
|
|
LICENSE_COMB= multi
|
2021-08-02 19:17:37 +02:00
|
|
|
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE
|
2020-11-20 18:04:18 +01:00
|
|
|
LICENSE_FILE_ZLIB= ${WRKSRC}/third_party/lodepng/LICENSE
|
|
|
|
|
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
|
2022-02-18 21:20:15 +01:00
|
|
|
GH_TUPLE= jbeich:skcms:6437475:skcms/third_party/skcms \
|
2020-11-20 18:04:18 +01:00
|
|
|
lvandeve:lodepng:48e5364:lodepng/third_party/lodepng \
|
|
|
|
webmproject:sjpeg:868ab55:sjpeg/third_party/sjpeg \
|
|
|
|
${NULL}
|
|
|
|
CMAKE_ON= JPEGXL_ENABLE_PLUGINS
|
|
|
|
CMAKE_OFF= JPEGXL_WARNINGS_AS_ERRORS ${BENCHMARK FUZZERS TCMALLOC:L:S/^/JPEGXL_ENABLE_/}
|
|
|
|
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-02-13 10:17:34 +01:00
|
|
|
OPTIONS_EXCLUDE_powerpc64= ${"${/usr/bin/ld:L:tA}"==/usr/bin/ld.lld:?LTO:} # https://github.com/llvm/llvm-project/issues/46697
|
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
|
|
|
|
|
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
|
|
|
|
2021-04-11 02:11:57 +02:00
|
|
|
OPENEXR_LIB_DEPENDS= libImath.so:math/Imath \
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
post-patch-PIXBUF-off:
|
|
|
|
@${REINPLACE_CMD} -i.nopixbuf '/gdk-pixbuf/d' ${WRKSRC}/plugins/CMakeLists.txt
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|