@@ -4,6 +4,8 @@ using BinaryBuilder, Pkg
4
4
5
5
name = " gdk_pixbuf"
6
6
version = v " 2.42.12"
7
+ # We bumped the version because we updated the dependencies to build for riscv64
8
+ ygg_version = v " 2.42.13"
7
9
8
10
# Collection of sources required to build gdk-pixbuf
9
11
sources = [
@@ -16,16 +18,17 @@ script = raw"""
16
18
cd $WORKSPACE/srcdir/gdk-pixbuf-*
17
19
mkdir build && cd build
18
20
19
- FLAGS=()
20
- if [[ "${target}" == x86_64-linux-gnu ]]; then
21
- FLAGS+=(-Dintrospection=enabled)
22
- fi
21
+ # Correct pkgconfig entries for host build dependencies, i.e. for
22
+ # scripts that need to run at build time. These pkgconfig entries
23
+ # would otherwise point to non-existing files, making meson fail.
24
+ sed -i 's+glib_genmarshal=${bindir}+'"glib_genmarshal=${host_bindir}"'+' ${host_libdir}/pkgconfig/glib-2.0.pc
25
+ sed -i 's+gobject_query=${bindir}+'"gobject_query=${host_bindir}"'+' ${host_libdir}/pkgconfig/glib-2.0.pc
26
+ sed -i 's+glib_mkenums=${bindir}+'"glib_mkenums=${host_bindir}"'+' ${host_libdir}/pkgconfig/glib-2.0.pc
23
27
24
28
meson .. \
25
29
-Dman=false \
26
30
-Dinstalled_tests=false \
27
31
-Dgio_sniffing=false \
28
- "${FLAGS[@]}" \
29
32
--cross-file="${MESON_TARGET_TOOLCHAIN}"
30
33
ninja -j${nproc}
31
34
ninja install
@@ -48,25 +51,21 @@ products = [
48
51
# Some dependencies are needed only on Linux and FreeBSD
49
52
linux_freebsd = filter (p-> Sys. islinux (p)|| Sys. isfreebsd (p), platforms)
50
53
51
- # gobject_introspection is needed only on x86_64-linux-gnu
52
- introspect_platform = filter (p -> Sys. islinux (p) && libc (p) == " glibc" && arch (p) == " x86_64" , platforms)
53
-
54
54
# Dependencies that must be installed before this package can be built
55
55
dependencies = [
56
56
# Need a host gettext for msgfmt
57
57
HostBuildDependency (" Gettext_jll" ),
58
58
# Need a host glib for glib-compile-resources
59
- HostBuildDependency (PackageSpec (; name= " Glib_jll" , version= v " 2.80.5 " )),
60
- Dependency (" Glib_jll" ; compat= " 2.80.5 " ),
61
- Dependency (" JpegTurbo_jll" ),
62
- Dependency (" libpng_jll" ),
63
- Dependency (" Libtiff_jll" ; compat= " 4.5 .1" ),
59
+ HostBuildDependency (PackageSpec (; name= " Glib_jll" , version= v " 2.84.0 " )),
60
+ Dependency (" Glib_jll" ; compat= " 2.84.0 " ),
61
+ Dependency (" JpegTurbo_jll" ; compat = " 3.1.1 " ),
62
+ Dependency (" libpng_jll" ; compat = " 1.6.47 " ),
63
+ Dependency (" Libtiff_jll" ; compat= " 4.7 .1" ),
64
64
Dependency (" Xorg_libX11_jll" ; platforms= linux_freebsd),
65
65
BuildDependency (" Xorg_xproto_jll" ; platforms= linux_freebsd),
66
66
BuildDependency (" Xorg_kbproto_jll" ; platforms= linux_freebsd),
67
- BuildDependency (" gobject_introspection_jll" ; platforms= introspect_platform)
68
67
]
69
68
70
69
# Build the tarballs.
71
- build_tarballs (ARGS , name, version , sources, script, platforms, products, dependencies;
70
+ build_tarballs (ARGS , name, ygg_version , sources, script, platforms, products, dependencies;
72
71
clang_use_lld= false , julia_compat= " 1.6" , preferred_gcc_version= v " 6" )
0 commit comments