2017-11-01 06:27:13 -07:00
|
|
|
|
|
|
|
|
# Configure_file is just here to rename the files
|
|
|
|
|
manconf = configuration_data()
|
|
|
|
|
manconf.set('GIMP_VERSION', gimp_version)
|
2024-01-13 11:58:01 -08:00
|
|
|
manconf.set('GIMP_APP_VERSION', gimp_app_version)
|
2017-11-01 06:27:13 -07:00
|
|
|
manconf.set('gimpdatadir', prefix / gimpdatadir)
|
|
|
|
|
manconf.set('gimplocaledir', prefix / localedir)
|
|
|
|
|
manconf.set('gimpplugindir', prefix / gimpplugindir)
|
|
|
|
|
manconf.set('manpage_gimpdir', '$XDG_CONFIG_HOME/' + gimpdir / gimp_app_version)
|
|
|
|
|
manconf.set('gimpsysconfdir', prefix / gimpsysconfdir)
|
2019-09-21 04:32:13 -07:00
|
|
|
manconf.set('mypaint_brushes_dir', mypaint_brushes_dir)
|
2017-11-01 06:27:13 -07:00
|
|
|
|
2026-03-30 02:31:44 -07:00
|
|
|
gimprc_man = custom_target('gimprc-' + gimp_app_version + '.5',
|
|
|
|
|
output: 'gimprc-' + gimp_app_version + '.5',
|
|
|
|
|
depends: [ gimp_exe_depends ],
|
|
|
|
|
command: [ gimp_exe, '--no-interface',
|
|
|
|
|
'--dump-gimprc-manpage' ],
|
|
|
|
|
capture: true,
|
|
|
|
|
build_by_default: true,
|
|
|
|
|
env: gimp_run_env,
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: get_option('mandir') / 'man5')
|
2017-11-01 06:27:13 -07:00
|
|
|
|
2026-03-30 02:31:44 -07:00
|
|
|
gimptool_man = configure_file(input : 'gimptool.1.in',
|
|
|
|
|
output: 'gimptool-' + gimp_app_version + '.1',
|
|
|
|
|
configuration: manconf)
|
|
|
|
|
man_files = [ gimptool_man ]
|
2017-11-01 06:27:13 -07:00
|
|
|
|
|
|
|
|
if enable_console_bin
|
2026-03-30 02:31:44 -07:00
|
|
|
gimp_console_man = configure_file(input : 'gimp.1.in',
|
|
|
|
|
output: 'gimp-console-' + gimp_app_version + '.1',
|
|
|
|
|
configuration: manconf)
|
|
|
|
|
man_files += [ gimp_console_man ]
|
2017-11-01 06:27:13 -07:00
|
|
|
endif
|
|
|
|
|
|
2026-03-30 02:31:44 -07:00
|
|
|
gimp_man = configure_file(input : 'gimp.1.in',
|
|
|
|
|
output: 'gimp-' + gimp_app_version + '.1',
|
|
|
|
|
configuration: manconf)
|
|
|
|
|
man_files += [ gimp_man ]
|
2022-08-29 06:41:08 -07:00
|
|
|
|
|
|
|
|
install_man(man_files)
|
|
|
|
|
|
2024-06-05 05:40:30 -07:00
|
|
|
if enable_default_bin and not platform_windows
|
2022-08-29 06:41:08 -07:00
|
|
|
install_symlink('gimptool.1',
|
2024-11-03 13:47:21 -08:00
|
|
|
pointing_to: 'gimptool-' + gimp_app_version + '.1',
|
|
|
|
|
install_dir: get_option('mandir') + '/man1')
|
|
|
|
|
install_symlink('gimptool-@0@.1'.format(api_version_major),
|
|
|
|
|
pointing_to: 'gimptool-' + gimp_app_version + '.1',
|
|
|
|
|
install_dir: get_option('mandir') + '/man1')
|
|
|
|
|
|
2022-08-29 06:41:08 -07:00
|
|
|
install_symlink('gimprc.5',
|
2024-11-03 13:47:21 -08:00
|
|
|
pointing_to: 'gimprc-' + gimp_app_version + '.5',
|
|
|
|
|
install_dir: get_option('mandir') + '/man5')
|
|
|
|
|
install_symlink('gimprc-@0@.5'.format(api_version_major),
|
|
|
|
|
pointing_to: 'gimprc-' + gimp_app_version + '.5',
|
|
|
|
|
install_dir: get_option('mandir') + '/man5')
|
|
|
|
|
|
2022-08-29 06:41:08 -07:00
|
|
|
if enable_console_bin
|
|
|
|
|
install_symlink('gimp-console.1',
|
2024-11-03 13:47:21 -08:00
|
|
|
pointing_to: 'gimp-console-' + gimp_app_version + '.1',
|
|
|
|
|
install_dir: get_option('mandir') + '/man1')
|
|
|
|
|
install_symlink('gimp-console-@0@.1'.format(api_version_major),
|
|
|
|
|
pointing_to: 'gimp-console-' + gimp_app_version + '.1',
|
|
|
|
|
install_dir: get_option('mandir') + '/man1')
|
2022-08-29 06:41:08 -07:00
|
|
|
endif
|
2024-11-03 13:47:21 -08:00
|
|
|
|
2022-08-29 06:41:08 -07:00
|
|
|
install_symlink('gimp.1',
|
2024-11-03 13:47:21 -08:00
|
|
|
pointing_to: 'gimp-' + gimp_app_version + '.1',
|
|
|
|
|
install_dir: get_option('mandir') + '/man1')
|
|
|
|
|
install_symlink('gimp-@0@.1'.format(api_version_major),
|
|
|
|
|
pointing_to: 'gimp-' + gimp_app_version + '.1',
|
|
|
|
|
install_dir: get_option('mandir') + '/man1')
|
2017-11-01 06:27:13 -07:00
|
|
|
endif
|
2026-03-30 02:31:44 -07:00
|
|
|
|
|
|
|
|
# Optional Markdown versions for the website.
|
|
|
|
|
pandoc = find_program('pandoc', required: false)
|
|
|
|
|
custom_target('Markdown GIMP man page',
|
|
|
|
|
input: [ gimp_man ],
|
|
|
|
|
output: 'gimp.md',
|
|
|
|
|
command: [ '../tools/man2md.py', '@INPUT@', '@OUTPUT@', prefix ],
|
|
|
|
|
build_by_default: false)
|
|
|
|
|
custom_target('Markdown gimprc man page',
|
|
|
|
|
input: [ gimprc_man ],
|
|
|
|
|
output: 'gimprc.md',
|
|
|
|
|
command: [ '../tools/man2md.py', '@INPUT@', '@OUTPUT@', prefix ],
|
|
|
|
|
build_by_default: false)
|
|
|
|
|
custom_target('Markdown gimptool man page',
|
|
|
|
|
input: [ gimptool_man ],
|
|
|
|
|
output: 'gimptool.md',
|
|
|
|
|
command: [ '../tools/man2md.py', '@INPUT@', '@OUTPUT@', prefix ],
|
|
|
|
|
build_by_default: false)
|