Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding BlueZ to [PulseAudio] #3033

Merged
merged 27 commits into from
Sep 7, 2021
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions P/PulseAudio/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,27 @@ sources = [
# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
apk add gettext
apk add glib
apk add orc-compiler
apk add perl-xml-parser
apk add bash-completion
apk add bash-completion gettext glib orc-compiler perl-xml-parser
# make sure meson can find everything
sed -i -e "s~c_args = .*~c_args = ['-I${includedir}', '-L${libdir}']~" ${MESON_TARGET_TOOLCHAIN}
# I guess pulseaudio doesn't set install_rpath correctly?
find pulseaudio-* -type f | xargs sed -i "s~install_rpath : privlibdir~install_rpath : '\$ORIGIN/pulseaudio'~"
# For some reason, librt fails to get linked correctly, so add a flag
sed -i -e "s~c_link_args = .*~c_link_args = ['-lrt']~" ${MESON_TARGET_TOOLCHAIN}
# I guess pulseaudio doesn't set install_rpath correctly?
find pulseaudio-* -type f | xargs sed -i "s~install_rpath : privlibdir~install_rpath : '\$ORIGIN/pulseaudio'~"
cd pulseaudio-*
# Disable ffast-math; I repented
# Disable ffast-math. I repented.
sed -i -e "s/link_args : \['-ffast-math'],//" src/daemon/meson.build
# pulseaudio seems to check for iconv_open but use libiconv_open?
sed -i -e "s/cc.has_function('iconv_open')/cc.has_function('libiconv_open')/" meson.build
# Force meson to use some libraries
if [[ "${target}" == powerpc64le-* ]]; then sed -i -e "s~'sys/capability.h',~~" meson.build; fi
# sys/capability.h doesn't seem to be workig on PowerPC
if [[ "${target}" == powerpc64le-* ]]; then
sed -i -e "s~'sys/capability.h',~~" meson.build;
fi
mkdir build
cd build
# I can't figure out how to build tdb, see https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/887
# BlueZ is in progress, see https://github.com/JuliaPackaging/Yggdrasil/pull/2582
meson .. -Ddatabase="gdbm" -Dbluez5="false" --cross-file=${MESON_TARGET_TOOLCHAIN}
# optional dependencies I can't build but might be useful
# Avahi Jack LIRC tdb WebRTC
meson .. -Ddatabase="gdbm" --cross-file=${MESON_TARGET_TOOLCHAIN}
ninja
ninja install
"""
Expand All @@ -59,13 +57,12 @@ products = [
# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="alsa_jll", uuid="45378030-f8ea-5b20-a7c7-1a9d95efb90e"))
Dependency(PackageSpec(name="BlueZ_jll", uuid="471b5b61-da80-5748-8755-67d5084d21f2"))
Dependency(PackageSpec(name="Check_jll", uuid="491db154-c145-5abe-9c32-446728d60cce"))
Dependency(PackageSpec(name="Dbus_jll", uuid="ee1fde0b-3d02-5ea6-8484-8dfef6360eab"))
Dependency(PackageSpec(name="eudev_jll", uuid="35ca27e7-8b34-5b7f-bca9-bdc33f59eb06"))
Dependency(PackageSpec(name="FFTW_jll", uuid="f5851436-0d7a-5f13-b9de-f02708fd171a"))
Dependency(PackageSpec(name="Gdbm_jll", uuid="54ca2031-c8dd-5cab-9ed4-295edde1660f"))
# TOOD: verify Gettext is actually needed at runtime
Dependency(PackageSpec(name="Gettext_jll", uuid="78b55507-aeef-58d4-861c-77aaff3498b1"), v"0.20.1"; compat="=0.20.1")
Dependency(PackageSpec(name="Glib_jll", uuid="7746bdde-850d-59dc-9ae8-88ece973131d"), v"2.59.0"; compat="2.59.0")
bramtayl marked this conversation as resolved.
Show resolved Hide resolved
Dependency(PackageSpec(name="GStreamer_jll", uuid="aaaaf01e-2457-52c6-9fe8-886f7267d736"))
Dependency(PackageSpec(name="libsndfile_jll", uuid="5bf562c0-5a39-5b4f-b979-f64ac885830c"))
Expand Down