mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
add a PACKAGE_VERSION override for meson
This commit is contained in:
parent
03217a487e
commit
cb11fd9cf7
2 changed files with 9 additions and 2 deletions
10
meson.build
10
meson.build
|
|
@ -53,6 +53,8 @@ require_glib_internal = get_option('install-glib') == 'force'
|
|||
|
||||
want_static_dependency = get_option('static-dependency') == 'yes'
|
||||
|
||||
package_version = get_option('PACKAGE_VERSION') != '' ? get_option('PACKAGE_VERSION') : meson.project_version()
|
||||
|
||||
chat_modules = ['irc']
|
||||
|
||||
run_command('mkdir', meson.current_build_dir() / incdir)
|
||||
|
|
@ -540,7 +542,7 @@ foreach h : headers
|
|||
endforeach
|
||||
|
||||
conf.set('HAVE_LIBUTF8PROC', have_libutf8proc)
|
||||
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||
conf.set_quoted('PACKAGE_VERSION', package_version)
|
||||
conf.set_quoted('PACKAGE_TARNAME', meson.project_name())
|
||||
|
||||
configure_file(output : 'irssi-config.h',
|
||||
|
|
@ -581,7 +583,11 @@ pc_requires = []
|
|||
if not glib_internal
|
||||
pc_requires += glib_dep
|
||||
endif
|
||||
pc.generate(filebase : 'irssi-1', name : 'Irssi', description : 'Irssi chat client', requires : pc_requires)
|
||||
pc.generate(filebase : 'irssi-1',
|
||||
name : 'Irssi',
|
||||
description : 'Irssi chat client',
|
||||
version : package_version,
|
||||
requires : pc_requires)
|
||||
|
||||
###########
|
||||
# irssi.1 #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue