mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-04-09 08:21:21 -04:00
build-sys: Make pkgconfigdir and cmakedir configurable
This commit is contained in:
parent
94e479b261
commit
fe31b91ef7
4 changed files with 27 additions and 6 deletions
|
|
@ -80,7 +80,6 @@ dist_vapi_DATA = \
|
||||||
vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi \
|
vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi \
|
||||||
vala/libpulse-simple.deps vala/libpulse-simple.vapi
|
vala/libpulse-simple.deps vala/libpulse-simple.vapi
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
|
||||||
pkgconfig_DATA = libpulse.pc libpulse-simple.pc
|
pkgconfig_DATA = libpulse.pc libpulse-simple.pc
|
||||||
|
|
||||||
if HAVE_GLIB20
|
if HAVE_GLIB20
|
||||||
|
|
@ -88,7 +87,6 @@ pkgconfig_DATA += \
|
||||||
libpulse-mainloop-glib.pc
|
libpulse-mainloop-glib.pc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cmakedir = $(libdir)/cmake/PulseAudio
|
|
||||||
cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
|
cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
|
||||||
|
|
||||||
bashcompletiondir=@bashcompletiondir@
|
bashcompletiondir=@bashcompletiondir@
|
||||||
|
|
|
||||||
11
configure.ac
11
configure.ac
|
|
@ -98,6 +98,11 @@ AS_IF([test "x$M4" = "xno"], AC_MSG_ERROR([m4 missing]))
|
||||||
# pkg-config
|
# pkg-config
|
||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
AC_DEFINE_DIR([pkgconfigdir],[],["PKGConfig dir"])
|
||||||
|
AC_ARG_WITH(
|
||||||
|
[pkgconfigdir],
|
||||||
|
AS_HELP_STRING([--with-pkgconfigdir],[Directory where to install pkgconfig rules to (defaults to $(libdir)/pkgconfig)]),
|
||||||
|
[pkgconfigdir="$withval"], [pkgconfigdir="$libdir/pkgconfig"])
|
||||||
|
|
||||||
# gettext
|
# gettext
|
||||||
|
|
||||||
|
|
@ -1582,6 +1587,12 @@ AS_IF([test "x$HAVE_SYSTEMD_DAEMON" = "x1"],
|
||||||
])
|
])
|
||||||
|
|
||||||
# CMake related ProjectConfig files
|
# CMake related ProjectConfig files
|
||||||
|
AC_DEFINE_DIR([cmakedir],[],["CMake Template dir"])
|
||||||
|
AC_ARG_WITH(
|
||||||
|
[cmakedir],
|
||||||
|
AS_HELP_STRING([--with-cmakedir],[Directory where to install cmake templates to (defaults to $(libdir)/cmake)]),
|
||||||
|
[cmakedir="$withval/PulseAudio"], [cmakedir="$libdir/cmake/PulseAudio"])
|
||||||
|
|
||||||
PA_LIBDIR="$libdir"
|
PA_LIBDIR="$libdir"
|
||||||
AX_DEFINE_DIR(PA_LIBDIR, PA_LIBDIR, [PulseAudio library dir])
|
AX_DEFINE_DIR(PA_LIBDIR, PA_LIBDIR, [PulseAudio library dir])
|
||||||
PA_INCDIR="$includedir"
|
PA_INCDIR="$includedir"
|
||||||
|
|
|
||||||
14
meson.build
14
meson.build
|
|
@ -59,6 +59,10 @@ assert(prefix.startswith('/'), 'Prefix is not absolute: "@0@"'.format(prefix))
|
||||||
bindir = join_paths(prefix, get_option('bindir'))
|
bindir = join_paths(prefix, get_option('bindir'))
|
||||||
includedir = join_paths(prefix, get_option('includedir'))
|
includedir = join_paths(prefix, get_option('includedir'))
|
||||||
libdir = join_paths(prefix, get_option('libdir'))
|
libdir = join_paths(prefix, get_option('libdir'))
|
||||||
|
cmakedir = get_option('cmakedir')
|
||||||
|
if cmakedir == ''
|
||||||
|
cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
|
||||||
|
endif
|
||||||
libexecdir = join_paths(prefix, get_option('libexecdir'))
|
libexecdir = join_paths(prefix, get_option('libexecdir'))
|
||||||
mandir = join_paths(prefix, get_option('mandir'))
|
mandir = join_paths(prefix, get_option('mandir'))
|
||||||
datadir = join_paths(prefix, get_option('datadir'))
|
datadir = join_paths(prefix, get_option('datadir'))
|
||||||
|
|
@ -67,8 +71,10 @@ localstatedir = join_paths(prefix, get_option('localstatedir'))
|
||||||
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
||||||
privlibdir = join_paths(libdir, 'pulseaudio')
|
privlibdir = join_paths(libdir, 'pulseaudio')
|
||||||
alsadatadir = join_paths(datadir, 'pulseaudio', 'alsa-mixer')
|
alsadatadir = join_paths(datadir, 'pulseaudio', 'alsa-mixer')
|
||||||
|
pkgconfigdir = get_option('pkgconfig')
|
||||||
pkgconfigdir = join_paths(libdir, 'pkgconfig')
|
if pkgconfigdir == ''
|
||||||
|
pkgconfigdir = join_paths(libdir, 'pkgconfig')
|
||||||
|
endif
|
||||||
pulselibexecdir = join_paths(libexecdir, 'pulse')
|
pulselibexecdir = join_paths(libexecdir, 'pulse')
|
||||||
pulsesysconfdir = join_paths(sysconfdir, 'pulse')
|
pulsesysconfdir = join_paths(sysconfdir, 'pulse')
|
||||||
|
|
||||||
|
|
@ -741,8 +747,6 @@ endforeach
|
||||||
|
|
||||||
m4 = find_program('m4', required: true)
|
m4 = find_program('m4', required: true)
|
||||||
|
|
||||||
cmakedir = join_paths(libdir, 'cmake', 'PulseAudio')
|
|
||||||
|
|
||||||
cmake_template_file = configure_file(
|
cmake_template_file = configure_file(
|
||||||
input : 'PulseAudioConfig.cmake.in',
|
input : 'PulseAudioConfig.cmake.in',
|
||||||
output : 'PulseAudioConfig.cmake.tmp',
|
output : 'PulseAudioConfig.cmake.tmp',
|
||||||
|
|
@ -778,6 +782,8 @@ summary = [
|
||||||
'prefix: @0@'.format(prefix),
|
'prefix: @0@'.format(prefix),
|
||||||
'bindir: @0@'.format(bindir),
|
'bindir: @0@'.format(bindir),
|
||||||
'libdir: @0@'.format(libdir),
|
'libdir: @0@'.format(libdir),
|
||||||
|
'pkgconfigdir: @0@'.format(pkgconfigdir),
|
||||||
|
'cmakedir: @0@'.format(cmakedir),
|
||||||
'libexecdir: @0@'.format(libexecdir),
|
'libexecdir: @0@'.format(libexecdir),
|
||||||
'mandir: @0@'.format(mandir),
|
'mandir: @0@'.format(mandir),
|
||||||
'datadir: @0@'.format(datadir),
|
'datadir: @0@'.format(datadir),
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,12 @@ option('bashcompletiondir',
|
||||||
option('zshcompletiondir',
|
option('zshcompletiondir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for zsh completion scripts ["no" disables]')
|
description : 'Directory for zsh completion scripts ["no" disables]')
|
||||||
|
option('cmakedir',
|
||||||
|
type : 'string',
|
||||||
|
description : 'Directory for CMakeTemplates')
|
||||||
|
option('pkgconfig',
|
||||||
|
type : 'string',
|
||||||
|
description : 'Directory for Pkgconfig Files')
|
||||||
|
|
||||||
# Optional features
|
# Optional features
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue