Skip to content

Commit

Permalink
libjpeg-turbo: update to 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bgilbert authored and jpakkane committed May 10, 2024
1 parent 6c17604 commit c3a8a51
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,7 @@
"libturbojpeg"
],
"versions": [
"3.0.3-1",
"3.0.2-1",
"3.0.1-1",
"3.0.0-5",
Expand Down
8 changes: 4 additions & 4 deletions subprojects/libjpeg-turbo.wrap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[wrap-file]
directory = libjpeg-turbo-3.0.2
source_url = https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.0.2/libjpeg-turbo-3.0.2.tar.gz
source_filename = libjpeg-turbo-3.0.2.tar.gz
source_hash = c2ce515a78d91b09023773ef2770d6b0df77d674e144de80d63e0389b3a15ca6
directory = libjpeg-turbo-3.0.3
source_url = https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.0.3/libjpeg-turbo-3.0.3.tar.gz
source_filename = libjpeg-turbo-3.0.3.tar.gz
source_hash = 343e789069fc7afbcdfe44dbba7dbbf45afa98a15150e079a38e60e44578865d
patch_directory = libjpeg-turbo

[provide]
Expand Down
8 changes: 4 additions & 4 deletions subprojects/packagefiles/libjpeg-turbo/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('libjpeg-turbo', 'c',
version : '3.0.2',
version : '3.0.3',
license : 'bsd-like',
meson_version : '>= 0.64.0')

Expand All @@ -13,7 +13,7 @@ host_cpu = host_machine.cpu_family()
cdata = configuration_data()
cdata.set('CMAKE_PROJECT_NAME', meson.project_name())
cdata.set('VERSION', meson.project_version())
cdata.set('COPYRIGHT_YEAR', '1991-2023')
cdata.set('COPYRIGHT_YEAR', '1991-2024')

jpeg_lib_version = 80
so_major = jpeg_lib_version / 10
Expand Down Expand Up @@ -77,13 +77,13 @@ if meson.can_run_host_binaries()
code = '''
#include <stdio.h>
#include <stdlib.h>
int is_shifting_signed (long arg) {
static int is_shifting_signed (long arg) {
long res = arg >> 4;
if (res == -0x7F7E80CL)
return 1; /* right shift is signed */
/* see if unsigned-shift hack will fix it. */
/* we can't just test exact value since it depends on width of long... */
res |= (~0L) << (32-4);
res |= 0xFFFFFFFFL << (32-4);
if (res == -0x7F7E80CL)
return 0; /* right shift is unsigned */
printf(\"Right shift isn't acting as I expect it to.\\\\n\");
Expand Down
11 changes: 11 additions & 0 deletions subprojects/packagefiles/libjpeg-turbo/simd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ if host_cpu in ['x86', 'x86_64']
if have_simd
add_project_arguments('-DPIC', language: 'nasm')
x64 = host_cpu == 'x86_64'
# simulate upstream's "is ELF" check by excluding non-ELF OSes
if x64 and host_machine.system() not in ['cygwin', 'darwin', 'windows']
if cc.compiles('''
#if (__CET__ & 3) == 0
#error \"CET not enabled\"
#endif
int main(void) { return 0; }
''')
add_project_arguments('-D__CET__', language: 'nasm')
endif
endif
dir = x64 ? 'x86_64' : 'i386'
simd_src = x64 ? simd_src_x86_64 : simd_src_i386
simd = static_library('simd', dir / 'jsimd.c',
Expand Down

0 comments on commit c3a8a51

Please sign in to comment.