From f1829395f05f6398e254e7c968f237bc80fd951c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Kr=C3=A4mer?= Date: Wed, 9 Jun 2021 00:44:37 +0200 Subject: [PATCH 1/3] New package: highway-0.12.2 --- srcpkgs/highway/template | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 srcpkgs/highway/template diff --git a/srcpkgs/highway/template b/srcpkgs/highway/template new file mode 100644 index 000000000000..462df78a4888 --- /dev/null +++ b/srcpkgs/highway/template @@ -0,0 +1,12 @@ +# Template file for 'highway' +pkgname=highway +version=0.12.2 +revision=1 +build_style=cmake +configure_args="-DBUILD_TESTING=OFF" +short_desc="C++ library for SIMD (Single Instruction, Multiple Data)" +maintainer="Joshua Krämer " +license="Apache-2.0" +homepage="https://github.com/google/highway" +distfiles="https://github.com/google/highway/archive/${version}.tar.gz" +checksum=e1d47ce510429fdcf31f41697ca74fb0dcd59d933196e531a86d51751a56f4cc From 3ebe79c39b3f22f39ee55d6c5c130fc365613a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Kr=C3=A4mer?= Date: Wed, 9 Jun 2021 01:52:29 +0200 Subject: [PATCH 2/3] New package: libjxl-0.4.0 --- common/shlibs | 2 ++ srcpkgs/libjxl-devel | 1 + srcpkgs/libjxl-plugins | 1 + srcpkgs/libjxl-tools | 1 + srcpkgs/libjxl/template | 60 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 65 insertions(+) create mode 120000 srcpkgs/libjxl-devel create mode 120000 srcpkgs/libjxl-plugins create mode 120000 srcpkgs/libjxl-tools create mode 100644 srcpkgs/libjxl/template diff --git a/common/shlibs b/common/shlibs index 7cfb4f583c9c..f24d517e9b4e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4007,3 +4007,5 @@ libbasu.so.0 basu-0.2.0_1 libXcomp.so.3 nx-libs-3.5.99.24_1 libXcompshad.so.3 nx-libs-3.5.99.24_1 libNX_X11.so.6 nx-libs-3.5.99.24_1 +libjxl.so.0 libjxl-0.4.0_1 +libjxl_threads.so.0 libjxl-0.4.0_1 diff --git a/srcpkgs/libjxl-devel b/srcpkgs/libjxl-devel new file mode 120000 index 000000000000..ddc1abf827d9 --- /dev/null +++ b/srcpkgs/libjxl-devel @@ -0,0 +1 @@ +libjxl \ No newline at end of file diff --git a/srcpkgs/libjxl-plugins b/srcpkgs/libjxl-plugins new file mode 120000 index 000000000000..ddc1abf827d9 --- /dev/null +++ b/srcpkgs/libjxl-plugins @@ -0,0 +1 @@ +libjxl \ No newline at end of file diff --git a/srcpkgs/libjxl-tools b/srcpkgs/libjxl-tools new file mode 120000 index 000000000000..ddc1abf827d9 --- /dev/null +++ b/srcpkgs/libjxl-tools @@ -0,0 +1 @@ +libjxl \ No newline at end of file diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template new file mode 100644 index 000000000000..7bf4073fe6f3 --- /dev/null +++ b/srcpkgs/libjxl/template @@ -0,0 +1,60 @@ +# Template file for 'libjxl' +pkgname=libjxl +version=0.4.0 +revision=1 +_hash=74ca6ba912fc1a682143ec2c5a1b193e008ec92b +wrksrc="libjxl-${_hash}" +build_style=cmake +configure_args="-DBUILD_TESTING=OFF -DJPEGXL_ENABLE_BENCHMARK=OFF -DJPEGXL_ENABLE_EXAMPLES=OFF -DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_ENABLE_PLUGINS=ON" +hostmakedepends="tar pkg-config asciidoc" +makedepends="brotli-devel highway libpng-devel giflib-devel libjpeg-turbo-devel libopenexr-devel gdk-pixbuf-devel gimp-devel" +short_desc="JPEG XL image format reference implementation" +maintainer="Joshua Krämer " +license="Apache-2.0" +homepage="https://github.com/libjxl/libjxl" +_lodepng_hash=48e5364ef48ec2408f44c727657ac1b6703185f8 +_skcms_hash=64374756e03700d649f897dbd98c95e78c30c7da +distfiles="https://github.com/libjxl/libjxl/archive/${_hash}.tar.gz + https://github.com/lvandeve/lodepng/archive/${_lodepng_hash}.tar.gz>lodepng-${_lodepng_hash}.tar.gz + https://skia.googlesource.com/skcms/+archive/${_skcms_hash}.tar.gz>skcms-${_skcms_hash}.tar.gz" +checksum="8fb7150e7d33721f30b5e6f899c5438b4396064af581e8891bccf3158a1e551c + c47c48c77a205f1af484b7b5a847290af65de3ea6f15817aa27c5ec7cc5208fd + @a69230c7b6f03a178c93abc6edc832c040d6e198340193b27c3d04afecf8f617" +skip_extraction="lodepng-${_lodepng_hash}.tar.gz + skcms-${_skcms_hash}.tar.gz" + +post_extract() { + cd ${XBPS_SRCDISTDIR}/libjxl-${version} + tar -xf lodepng-${_lodepng_hash}.tar.gz --strip-components=1 -C ${wrksrc}/third_party/lodepng + tar -xf skcms-${_skcms_hash}.tar.gz -C ${wrksrc}/third_party/skcms +} + +libjxl-devel_package() { + short_desc+=" - development files" + depends="libjxl>=${version}_${revision} brotli-devel" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} + +libjxl-tools_package() { + short_desc+=" - tools" + pkg_install() { + vmove usr/bin + vmove usr/share/man + } +} + +libjxl-plugins_package() { + short_desc+=" - plugins" + depends="desktop-file-utils" + pkg_install() { + vmove usr/lib/gdk-pixbuf-2.0 + vmove usr/lib/gimp + vmove usr/share/mime + vmove usr/share/thumbnailers + } +} From d844ddc5122ace20b8b4f1c3a59e8247c1ed441a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Kr=C3=A4mer?= Date: Thu, 10 Jun 2021 11:04:56 +0200 Subject: [PATCH 3/3] New package: qt-jpegxl-image-plugin --- srcpkgs/qt-jpegxl-image-plugin/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/qt-jpegxl-image-plugin/template diff --git a/srcpkgs/qt-jpegxl-image-plugin/template b/srcpkgs/qt-jpegxl-image-plugin/template new file mode 100644 index 000000000000..ec7e0d8b7060 --- /dev/null +++ b/srcpkgs/qt-jpegxl-image-plugin/template @@ -0,0 +1,15 @@ +# Template file for 'qt-jpegxl-image-plugin' +pkgname=qt-jpegxl-image-plugin +version=7d19098b4111819a33cac142449d13c185854aed +revision=1 +build_style=qmake +configure_args="qt-jpegxl-image-plugin.pro" +hostmakedepends="qt5-qmake" +makedepends="libjxl-devel qt5-devel" +depends="libjxl-plugins" +short_desc="Qt5 plugin to support the JPEG XL image format" +maintainer="Joshua Krämer " +license="GPL-3.0-only" +homepage="https://github.com/novomesk/qt-jpegxl-image-plugin" +distfiles="https://github.com/novomesk/qt-jpegxl-image-plugin/archive/${version}.tar.gz" +checksum=5634745983fa32becc58a656b5f1104ca5ad3393cdad3fc53ab7f1bab6061b9a