Skip to content

Commit

Permalink
libsndfile: update to 1.2.2
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Sep 14, 2023
1 parent da7bad8 commit feaccfa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,7 @@
"sndfile"
],
"versions": [
"1.2.2-1",
"1.2.0-1",
"1.1.0-6",
"1.1.0-5",
Expand Down
8 changes: 4 additions & 4 deletions subprojects/libsndfile.wrap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[wrap-file]
directory = libsndfile-1.2.0
source_url = https://github.com/libsndfile/libsndfile/releases/download/1.2.0/libsndfile-1.2.0.tar.xz
source_filename = libsndfile-1.2.0.tar.xz
source_hash = 0e30e7072f83dc84863e2e55f299175c7e04a5902ae79cfb99d4249ee8f6d60a
directory = libsndfile-1.2.2
source_url = https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz
source_filename = libsndfile-1.2.2.tar.xz
source_hash = 3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e
patch_directory = libsndfile

[provide]
Expand Down
16 changes: 9 additions & 7 deletions subprojects/packagefiles/libsndfile/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(
'libsndfile',
'c',
license: 'LGPL-2.1-or-later',
version: '1.2.0',
version: '1.2.2',
meson_version: '>=0.54.1',
)

Expand Down Expand Up @@ -104,7 +104,9 @@ funcs = [
'getpagesize',
'gettimeofday',
'gmtime',
'gmtime_r',
'localtime',
'localtime_r',
'lrint',
'lrintf',
'lround',
Expand Down Expand Up @@ -137,15 +139,15 @@ cdata.set('SIZEOF_VOIDP_CODE', '#define VOIDP_CODE')
sizes += {'double': '', 'float': '', 'int': '', 'loff_t': '', 'off64_t': '', 'short': '', 'size_t': ''}

foreach f : funcs
cdata.set10('HAVE_@0@'.format(f.underscorify().to_upper()), cc.has_function(f))
endforeach

foreach f : ['gmtime_r', 'localtime_r']
cdata.set('HAVE_@0@'.format(f.underscorify().to_upper()), cc.has_header_symbol('time.h', f, args: '-D_POSIX_C_SOURCE'))
if cc.has_function(f)
cdata.set('HAVE_@0@'.format(f.underscorify().to_upper()), 1)
endif
endforeach

foreach h : headers
cdata.set10('HAVE_@0@'.format(h.underscorify().to_upper()), cc.has_header(h))
if cc.has_header(h)
cdata.set('HAVE_@0@'.format(h.underscorify().to_upper()), 1)
endif
endforeach

foreach s, h : sizes
Expand Down

0 comments on commit feaccfa

Please sign in to comment.