build: change root_prefix to rootprefix
This commit is contained in:
parent
c0f8313164
commit
444e44eb9d
14
meson.build
14
meson.build
@ -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()
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user