echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff diff --git a/libgupnp/meson.build b/libgupnp/meson.build index b832acb..561b3cd 100644 --- a/libgupnp/meson.build +++ b/libgupnp/meson.build @@ -90,10 +90,20 @@ sources = files( 'xml-util.c' ) +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)] + libgupnp = library( 'gupnp-1.2', sources + context_manager_impl + enums, - version : '0.0.0', + version : version, + darwin_versions : darwin_versions, dependencies : dependencies + system_deps, c_args : context_manager_args, include_directories: include_directories('..'), diff --git a/meson.build b/meson.build index 9cf4697..45fb0dc 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('gupnp', 'c', version : '1.2.0') +project('gupnp', 'c', version : '1.2.0', meson_version : '>= 0.48.0') gnome = import('gnome') pkg = import('pkgconfig') EOF