build: change root_prefix to rootprefix

This commit is contained in:
William Hubbs 2021-09-06 14:30:30 -05:00
parent c0f8313164
commit 444e44eb9d
5 changed files with 15 additions and 15 deletions

View File

@ -66,15 +66,15 @@ else
pkg_prefix = option_pkg_prefix
endif
root_prefix = get_option('root_prefix')
if root_prefix == ''
root_prefix = '/'
rootprefix = get_option('rootprefix')
if rootprefix == ''
rootprefix = '/'
endif
bindir = root_prefix / get_option('bindir')
libdir = root_prefix / get_option('libdir')
libexecdir = root_prefix / get_option('libexecdir')
bindir = rootprefix / get_option('bindir')
libdir = rootprefix / get_option('libdir')
libexecdir = rootprefix / get_option('libexecdir')
rc_libexecdir = libexecdir / 'rc'
sbindir = root_prefix / get_option('sbindir')
sbindir = rootprefix / get_option('sbindir')
selinux_dep = dependency('libselinux', required : get_option('selinux'))
if selinux_dep.found()

View File

@ -16,8 +16,8 @@ option('pkg_prefix', type : 'string',
description : 'default location where packages are installed')
option('pkgconfig', type : 'boolean',
description : 'build PKGConfig files')
option('root_prefix', type : 'string',
description : 'default path of root directory')
option('rootprefix', type : 'string',
description : 'override the root prefix')
option('selinux', type : 'feature', value : 'auto',
description : 'enable SELinux support')
option('shell', type : 'string', value : '/bin/sh',

View File

@ -1,8 +1,8 @@
pkgconfig_dir = get_option('libdir') / 'pkgconfig'
pkgconfig_conf_data = configuration_data()
if root_prefix != '/'
pkgconfig_conf_data.set('PREFIX', root_prefix)
if rootprefix != '/'
pkgconfig_conf_data.set('PREFIX', rootprefix)
else
pkgconfig_conf_data.set('PREFIX', '')
endif

View File

@ -1,8 +1,8 @@
sh_conf_data = configuration_data()
if root_prefix == '/'
if rootprefix == '/'
sh_conf_data.set('PREFIX', '')
else
sh_conf_data.set('PREFIX', root_prefix)
sh_conf_data.set('PREFIX', rootprefix)
endif
sh_conf_data.set('BINDIR', bindir)
sh_conf_data.set('LIBEXECDIR', rc_libexecdir)

View File

@ -1,8 +1,8 @@
rc_h_conf_data = configuration_data()
if root_prefix == '/'
if rootprefix == '/'
rc_h_conf_data.set('PREFIX', '')
else
rc_h_conf_data.set('PREFIX', root_prefix)
rc_h_conf_data.set('PREFIX', rootprefix)
endif
rc_h_conf_data.set('LIB', libname)
rc_h_conf_data.set('LIBEXECDIR', rc_libexecdir)