wget https://gitlab.gnome.org/GNOME/gssdp/commit/3b085a7e2c94119519d848c4f4f1434bbea3d937.patch echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff diff --git a/libgssdp/meson.build b/libgssdp/meson.build index aa66def..a022609 100644 --- a/libgssdp/meson.build +++ b/libgssdp/meson.build @@ -48,8 +48,18 @@ if generic_unix sources += 'gssdp-net-posix.c' endif +version = '0.0.0' +version_arr = version.split('.') +major_version = version_arr[0].to_int() +minor_version = version_arr[1].to_int() +micro_version = version_arr[2].to_int() +current = major_version + minor_version + 1 +interface_age = micro_version +darwin_versions = [current, '@0@.@1@'.format(current, interface_age)] + libgssdp = library('gssdp-1.2', sources + enums, - version : '0.0.0', + version : version, + darwin_versions : darwin_versions, dependencies : dependencies + system_deps, include_directories : include_directories('..'), install : true) diff --git a/meson.build b/meson.build index 7e898eb..3d75cc9 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('gssdp', 'c', version: '1.2.0') +project('gssdp', 'c', version: '1.2.0', meson_version : '>= 0.48.0') gnome = import('gnome') pkg = import('pkgconfig') EOF