73 lines
2.5 KiB
Bash
73 lines
2.5 KiB
Bash
# Template file for 'pulseaudio'
|
|
pkgname=pulseaudio
|
|
version=13.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
|
|
--enable-jack --disable-lirc --disable-hal-compat --disable-gconf --enable-orc
|
|
--with-database=tdb --with-udev-rules-dir=/usr/lib/udev/rules.d --disable-esound
|
|
--disable-gtk3 --enable-bluez5 --disable-bluez5-ofono-headset --disable-systemd-login
|
|
--disable-systemd-daemon --disable-systemd-journal --enable-webrtc-aec
|
|
--with-bash-completion-dir=/usr/share/bash-completion/completions
|
|
--enable-bluez5-native-headset"
|
|
hostmakedepends="automake gettext libtool orc-devel perl-XML-Parser pkg-config"
|
|
makedepends="$(vopt_if avahi avahi-libs-devel) eudev-libudev-devel fftw-devel jack-devel
|
|
libSM-devel libXtst-devel libasyncns-devel libbluetooth-devel
|
|
libcap-devel libcap-progs libglib-devel libltdl-devel libressl-devel
|
|
libsndfile-devel libsoxr-devel orc-devel sbc-devel speex-devel tdb-devel
|
|
webrtc-audio-processing-devel xcb-util-devel"
|
|
depends="rtkit"
|
|
conf_files="/etc/pulse/*"
|
|
short_desc="Featureful, general-purpose sound server"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://www.freedesktop.org/wiki/Software/PulseAudio"
|
|
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=961b23ca1acfd28f2bc87414c27bb40e12436efcf2158d29721b1e89f3f28057
|
|
python_version=2 #unverified
|
|
system_groups="pulse-access"
|
|
system_accounts="pulse"
|
|
pulse_groups="audio"
|
|
pulse_homedir="/var/empty"
|
|
|
|
build_options="avahi"
|
|
build_options_default="avahi"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" glib"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# Disable neon optimizations for the arm* architectures
|
|
arm*) configure_args+=" --disable-neon-opt" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
|
|
vsv pulseaudio
|
|
}
|
|
|
|
libpulseaudio_package() {
|
|
shlib_provides="libpulsecore-${version}.so libpulsecommon-${version}.so"
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpulse.so.*"
|
|
vmove "usr/lib/libpulse-simple.so.*"
|
|
vmove "usr/lib/libpulse-mainloop-glib.so.*"
|
|
vmove usr/lib/pulseaudio
|
|
}
|
|
}
|
|
|
|
pulseaudio-devel_package() {
|
|
depends="libasyncns-devel dbus-devel libXtst-devel libpulseaudio>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/libpulse.so
|
|
vmove usr/lib/libpulse-simple.so
|
|
vmove usr/lib/libpulse-mainloop-glib.so
|
|
vmove usr/share/vala
|
|
}
|
|
}
|