mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
build: Protect some more variables by ifdefs
This avoids empty directories being created on builds without X11, ALSA, etc.
This commit is contained in:
parent
74c934b1ad
commit
09d7baec64
1 changed files with 9 additions and 1 deletions
|
|
@ -27,10 +27,16 @@ pulseincludedir=$(includedir)/pulse
|
||||||
pulsecoreincludedir=$(includedir)/pulsecore
|
pulsecoreincludedir=$(includedir)/pulsecore
|
||||||
pulseconfdir=$(sysconfdir)/pulse
|
pulseconfdir=$(sysconfdir)/pulse
|
||||||
pulselibexecdir=$(libexecdir)/pulse
|
pulselibexecdir=$(libexecdir)/pulse
|
||||||
|
if HAVE_X11
|
||||||
xdgautostartdir=$(sysconfdir)/xdg/autostart
|
xdgautostartdir=$(sysconfdir)/xdg/autostart
|
||||||
|
endif
|
||||||
|
if HAVE_ALSA
|
||||||
alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets
|
alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets
|
||||||
alsapathsdir=$(datadir)/pulseaudio/alsa-mixer/paths
|
alsapathsdir=$(datadir)/pulseaudio/alsa-mixer/paths
|
||||||
|
endif
|
||||||
|
if HAVE_DBUS
|
||||||
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
|
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
|
||||||
|
endif
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# Defines #
|
# Defines #
|
||||||
|
|
@ -117,9 +123,9 @@ if HAVE_X11
|
||||||
xdgautostart_in_files = \
|
xdgautostart_in_files = \
|
||||||
daemon/pulseaudio.desktop.in \
|
daemon/pulseaudio.desktop.in \
|
||||||
daemon/pulseaudio-kde.desktop.in
|
daemon/pulseaudio-kde.desktop.in
|
||||||
endif
|
|
||||||
xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
|
xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
|
||||||
@INTLTOOL_DESKTOP_RULE@
|
@INTLTOOL_DESKTOP_RULE@
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
|
|
@ -1902,8 +1908,10 @@ else
|
||||||
SYMLINK_PROGRAM=ln -sf
|
SYMLINK_PROGRAM=ln -sf
|
||||||
endif
|
endif
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
|
if HAVE_BLUEZ
|
||||||
-chown root $(DESTDIR)$(pulselibexecdir)/proximity-helper
|
-chown root $(DESTDIR)$(pulselibexecdir)/proximity-helper
|
||||||
-chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
|
-chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
|
||||||
|
endif
|
||||||
$(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/parec$(EXEEXT)
|
$(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/parec$(EXEEXT)
|
||||||
$(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/pamon$(EXEEXT)
|
$(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/pamon$(EXEEXT)
|
||||||
$(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/paplay$(EXEEXT)
|
$(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/paplay$(EXEEXT)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue