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
25 changes: 13 additions & 12 deletions P/Pango/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using BinaryBuilder

name = "Pango"
version = v"1.57.0"
version = v"1.57.1"

# Collection of sources required to build Pango: https://download.gnome.org/sources/pango/
sources = [
ArchiveSource("http://ftp.gnome.org/pub/GNOME/sources/pango/$(version.major).$(version.minor)/pango-$(version).tar.xz",
"890640c841dae77d3ae3d8fe8953784b930fa241b17423e6120c7bfdf8b891e7"),
"e65d6d117080dc3aeeb7d8b4b3b518f7383aa2e6cfce23117c623cd624764c2f"),
]

# Bash recipe for building across all platforms
Expand All @@ -26,22 +26,23 @@ fi
# If we want libpangoft2 on Windows we need to explicitly enable fontconfig and freetype
# See <https://gitlab.gnome.org/GNOME/pango/-/blob/main/README.win32.md>.

# We need to update pip
python3 -m pip install --upgrade pip setuptools wheel
pip3 install gi-docgen
# We need a newer meson
python3 -m pip install --upgrade meson

mkdir build && cd build
meson --cross-file="${MESON_TARGET_TOOLCHAIN}" \
# Fix target toolchain (required by meson 1.11)
if [[ ${target} == *darwin* ]]; then
sed -i "/\[host_machine\]/,/^$/ s/system = 'darwin'/system = 'darwin'\nsubsystem = 'macos'/" "$MESON_TARGET_TOOLCHAIN"
fi

meson setup build \
--cross-file="${MESON_TARGET_TOOLCHAIN}" \
-Dintrospection=disabled \
-Dfontconfig=enabled \
-Dfreetype=enabled \
..
ninja -j${nproc}
ninja install
-Dfreetype=enabled
ninja -C build -j${nproc}
ninja -C build install

install_license ../COPYING
install_license COPYING
"""

# These are the platforms we will build for by default, unless further
Expand Down