Skip to content
Merged
Changes from all 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
29 changes: 23 additions & 6 deletions A/at_spi2_core/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using BinaryBuilder

name = "at_spi2_core"
version = v"2.34.0"
version = v"2.56.1"

# Collection of sources required to build at-spi2-core
sources = [
ArchiveSource("http://ftp.gnome.org/pub/gnome/sources/at-spi2-core/$(version.major).$(version.minor)/at-spi2-core-$(version).tar.xz",
"d629cdbd674e539f8912028512af583990938c7b49e25184c126b00121ef11c6"),
"fd177fecd8c95006ff0a355eafd7066fe110a2e17eb5eb5fe17ff70e49a4eace"),
]

# Bash recipe for building across all platforms
Expand All @@ -19,12 +19,22 @@ mkdir build && cd build
# Get a local gettext for msgfmt cross-building
apk add gettext

# We need `fixesproto @6`, but the latest release is `fixesproto @5`.
# (There is a `libXfixes @6`, but no respective `fixesproto @6` exists.)
# The X11 system is quite stable so this work-around should work.
# See e.g. <https://forums.dolphin-emu.org/Thread-compiling-on-ubuntu-20-04-fixesproto-6-0-error>.
mv $libdir/pkgconfig/fixesproto.pc $libdir/pkgconfig/fixesproto.pc.saved
sed 's/Version: 5.0/Version: 6.0/' $libdir/pkgconfig/fixesproto.pc.saved >$libdir/pkgconfig/fixesproto.pc

meson .. --cross-file="${MESON_TARGET_TOOLCHAIN}" \
-Dintrospection=no \
-Dx11=yes \
-Dintrospection=disabled \
-Dx11=enabled \
-Dsystemd_user_dir=no
ninja -j${nproc}
ninja install

# Undo change from above
mv $libdir/pkgconfig/fixesproto.pc.saved $libdir/pkgconfig/fixesproto.pc
"""

# These are the platforms we will build for by default, unless further
Expand All @@ -39,9 +49,16 @@ products = [
# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("Dbus_jll"),
Dependency("Glib_jll", v"2.59.0"; compat="2.59.0"),
Dependency("Glib_jll"; compat="2.84.0"),
Dependency("Xorg_libXtst_jll"),
BuildDependency("Xorg_fixesproto_jll"),
BuildDependency("Xorg_inputproto_jll"),
BuildDependency("Xorg_kbproto_jll"),
BuildDependency("Xorg_recordproto_jll"),
BuildDependency("Xorg_xextproto_jll"),
BuildDependency("Xorg_xproto_jll"),
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
julia_compat="1.6", preferred_gcc_version=v"5")