X is the base's again (Konrad, 2026-11-13): the X from pkgsrc in the
makronix set did not start anywhere (no input driver, no keymap, no
"fixed" font; dtlogin "The X-server can not be started on display :0").
Same commit as before the removal in e7bd6d940 (PINS then).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
79 lines
2.5 KiB
Meson
79 lines
2.5 KiB
Meson
# SPDX-License-Identifier: MIT
|
|
#
|
|
# Copyright (c) 2025, Oracle and/or its affiliates.
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
# to deal in the Software without restriction, including without limitation
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice (including the next
|
|
# paragraph) shall be included in all copies or substantial portions of the
|
|
# Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
# DEALINGS IN THE SOFTWARE.
|
|
#
|
|
|
|
project(
|
|
'xkill',
|
|
'c',
|
|
version: '1.0.7',
|
|
license: 'MIT-open-group',
|
|
license_files: 'COPYING',
|
|
meson_version: '>= 1.1.0',
|
|
)
|
|
|
|
package_string = ' '.join(meson.project_name(), meson.project_version())
|
|
conf = configuration_data()
|
|
conf.set_quoted('PACKAGE_STRING', package_string)
|
|
config_h = configure_file(output: 'config.h', configuration: conf)
|
|
add_project_arguments('-DHAVE_CONFIG_H', language: ['c'])
|
|
|
|
# Replacement for XORG_DEFAULT_OPTIONS
|
|
cc = meson.get_compiler('c')
|
|
if cc.has_argument('-fno-strict-aliasing')
|
|
add_project_arguments('-fno-strict-aliasing', language: 'c')
|
|
endif
|
|
|
|
# Checks for pkg-config packages
|
|
dep_libxmuu = dependency('xmuu', required: true)
|
|
dep_libx11 = dependency('x11', required: true)
|
|
dep_xproto = dependency('xproto', required: true, version: '>= 7.0.22')
|
|
deps = [dep_libxmuu, dep_libx11, dep_xproto]
|
|
|
|
executable(
|
|
'xkill',
|
|
[config_h, 'xkill.c'],
|
|
dependencies: deps,
|
|
install: true
|
|
)
|
|
|
|
# Man page
|
|
prog_sed = find_program('sed')
|
|
|
|
custom_target(
|
|
'xkill.man',
|
|
input: 'man/xkill.man',
|
|
output: 'xkill.1',
|
|
command: [
|
|
prog_sed,
|
|
'-e', 's/__xorgversion__/"@0@" "X Version 11"/'.format(package_string),
|
|
'-e', 's/__appmansuffix__/1/g',
|
|
'-e', 's/__libmansuffix__/3/g',
|
|
'-e', 's/__filemansuffix__/5/g',
|
|
'-e', 's/__miscmansuffix__/7/g',
|
|
'@INPUT@',
|
|
],
|
|
capture: true,
|
|
install: true,
|
|
install_dir: get_option('mandir') / 'man1',
|
|
)
|