1DOLLY 82TOOLCHAIN gtk-build3REQUIRES HOST runtime@04REQUIRES HOST display@05REQUIRES HOST input@06REQUIRES HOST http@07REQUIRES HOST dso@08REQUIRES HOST sockets@09REQUIRES HOST threads@01011# GTK 4 and the libraries under it, each from its upstream release by its own12# build, over the libpng, FreeType, expat, libjpeg-turbo, libtiff, pixman,13# libepoxy and Mesa packages: Meson for FriBidi, HarfBuzz, fontconfig (whose14# build runs the gperf package), cairo, graphene, gdk-pixbuf, pango and GTK15# (its X11 backend alone, over x11-build's X libraries). Mesa's EGL and KHR16# headers serve GTK's EGL code; its libraries, a17# program that draws with OpenGL itself (Ghostty). Static libraries in18# /usr/lib, as a GTK program links them; GLib's pkg-config file has cc19# cast-emulate every GObject program, those these builds run among them.20FROM /demos/x11/Dollyfile-x11-build 36d336b3007df32264e38238c807ca96aa03d73016dca9ce6ac466b13781554421INSTALL /demos/tools/Dollyfile-meson e388b70e271dd313d88f9ef1de369f9dde67e1598f77f56bb15fb89eaebb447f22INSTALL /demos/tools/Dollyfile-pkgconf 7aa2fb7ca6d1e11fc4a062fa683ca4a6980bcc85f06fbedee1d11b3fe99f901123INSTALL /demos/tools/Dollyfile-gperf 5f6f28ed3bc8931e93466707128dc10a05e21862ae13c364b78863c9e3c7264124INSTALL /demos/tools/Dollyfile-libpng 1819c51ce77b670220ddd0297212c2ce3c7575fda5712173cc65642656f194ac25INSTALL /demos/tools/Dollyfile-freetype 0a09133179a4a88a258e34af41b7e89c650fdba41a7c12e0c8d3d1c125f9a02626INSTALL /demos/tools/Dollyfile-expat bf3ca3446b50262dfd379d7c41b8fe564f8220cb7b18adc7e1c99ea60d91c24b27INSTALL /demos/tools/Dollyfile-libjpeg-turbo 537d4ec44d628942007432cc593d2dbe7e2afcbef65d0d4f94b4dd6dc06eb69428INSTALL /demos/tools/Dollyfile-libtiff 4a75a029e6d17819b84a7c43811d8857bb35d0cbfbffa5eaec272e6e981f600129INSTALL /demos/x11/Dollyfile-pixman 0c37cd3b60703ad1769540ef0e214f07e5a7dfb02b84753d559d80503542b7d530INSTALL /demos/ghostty-gtk/Dollyfile-mesa a3623975c6cfb95523781016ac9897ec17dfbb0f6d0912aa8c2b5de9518fffed31INSTALL /demos/gtk/Dollyfile-libepoxy 5c087f2bd604db2a3dcb18d769da989513dd75bd9de0bfbe18d2945c7a1d8f8a32INSTALL /demos/tools/Dollyfile-tar e0a8f1a090eebe83540c35637645fec640423215f101a735f63eb6d877b2a28633INSTALL /demos/tools/Dollyfile-binaryen c2aed2b9b7b56e03f139b58f6c295403d5ccab0d072d8f7bbcbe6bb0c9a8217b34INSTALL /demos/gtk/Dollyfile-glib 6642465f71061a7dab7882c239fa6f73eb878c570c4123a660578a4f727eea0f3536REQUIRES HEADER glib37REQUIRES HEADER zlib38REQUIRES LIB    gobject-2.039REQUIRES LIB    z40REQUIRES TOOL   ar41REQUIRES TOOL   c++42REQUIRES TOOL   cc43REQUIRES TOOL   cp44REQUIRES TOOL   glib-compile-resources45REQUIRES TOOL   gperf46REQUIRES TOOL   make47REQUIRES TOOL   meson48REQUIRES TOOL   mkdir49REQUIRES TOOL   mv50REQUIRES TOOL   patch51REQUIRES TOOL   pkg-config52REQUIRES TOOL   python353REQUIRES TOOL   sed54REQUIRES TOOL   tar55REQUIRES TOOL   wasm-opt56REQUIRES TOOL   xz5758SOURCE /dist/static/gtk/fribidi-1.0.17.tar.xz 6949dcde27d41cebad1fd741fcafc36d55a1020d2d872d4a6eb3914caabbada2 /tmp/gtk/fribidi.tar.xz59SOURCE /dist/static/gtk/harfbuzz-14.6.0.tar.xz d07a007327277708a2a73ae437887cdbaf282937f6d03ca5467723e9099af586 /tmp/gtk/harfbuzz.tar.xz60SOURCE /dist/static/gtk/fontconfig-2.18.3.tar.xz 4f7b554a38cdf78c033f666c8871f3749e14a094f65a07f630c91ed0b43d35e3 /tmp/gtk/fontconfig.tar.xz61SOURCE /dist/static/gtk/fontconfig-dolly.patch af0db174251c4d6b1be7800c7c802dac3f52ec1e01e542596f39d392204eb100 /tmp/gtk/fontconfig-dolly.patch62SOURCE /dist/static/gtk/cairo-1.18.6.tar.xz 1c767308174337a74694da0f3ec069c271452163a1ef4540964c50c301f157d4 /tmp/gtk/cairo.tar.xz63SOURCE /dist/static/gtk/graphene-1.10.8.tar.xz a37bb0e78a419dcbeaa9c7027bcff52f5ec2367c25ec859da31dfde2928f279a /tmp/gtk/graphene.tar.xz64SOURCE /dist/static/gtk/gdk-pixbuf-2.44.8.tar.xz 919f529512961a12e81cd4b4b466a48c3933469e7f9a310c6513cd4fb252ba3c /tmp/gtk/gdk-pixbuf.tar.xz65SOURCE /dist/static/gtk/pango-1.58.2.tar.xz 342385b6ca3b7c73455d7c80a13b7dbe4489e00bc3bd4c5bd6ed4dce421e374a /tmp/gtk/pango.tar.xz66SOURCE /dist/static/gtk/gtk-4.24.1.tar.xz e98abe720e16129c8c0f50761dee0a2e9ae2478055e31018f6cf977fcf6513e9 /tmp/gtk/gtk.tar.xz67SOURCE /dist/static/gtk/gtk-dolly.patch 7fbb4f8428b26569454e2958144447a294c29c15545362c69c178e7baec1d71b /tmp/gtk/gtk-dolly.patch68SLOP CWD /tmp/gtk for archive in *.tar.xz; do xz -dc $archive | tar -xf -; done69SLOP patch -p1 -d /tmp/gtk/fontconfig-2.18.3 -i /tmp/gtk/fontconfig-dolly.patch70SLOP patch -p1 -d /tmp/gtk/gtk-4.24.1 -i /tmp/gtk/gtk-dolly.patch7172# The fonts and their shaping, over the FreeType package: FriBidi (whose table generators hold73# more static data than cc's 16 MiB of initial memory), HarfBuzz and fontconfig.74SLOP CWD /tmp/gtk meson setup build-fribidi fribidi-1.0.17 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Ddocs=false -Dtests=false -Dbin=false \75  -Dc_link_args=-Wl,--initial-memory=6710886476SLOP meson compile -C /tmp/gtk/build-fribidi && meson install --no-rebuild -C /tmp/gtk/build-fribidi77SLOP CWD /tmp/gtk meson setup build-harfbuzz harfbuzz-14.6.0 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Dtests=disabled -Ddocs=disabled \78  -Dintrospection=disabled -Dcairo=disabled -Dicu=disabled -Dglib=enabled -Dgobject=enabled \79  -Dutilities=disabled -Dbenchmark=disabled -Dfreetype=enabled80SLOP meson compile -C /tmp/gtk/build-harfbuzz && meson install --no-rebuild -C /tmp/gtk/build-harfbuzz81SLOP CWD /tmp/gtk meson setup build-fontconfig fontconfig-2.18.3 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Dtests=disabled -Ddoc=disabled \82  -Dtools=disabled -Dcache-build=disabled -Dnls=disabled -Dxml-backend=expat83SLOP meson compile -C /tmp/gtk/build-fontconfig && meson install --no-rebuild -C /tmp/gtk/build-fontconfig8485# Its drawing over the pixman package: cairo over Xlib (MIT-SHM is asked of86# the server and Dolly's has none) and graphene.87SLOP CWD /tmp/gtk meson setup build-cairo cairo-1.18.6 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Ddwrite=disabled -Dfontconfig=enabled \88  -Dfreetype=enabled -Dpng=enabled -Dquartz=disabled -Dtee=disabled -Dxcb=disabled -Dxlib=enabled \89  -Dzlib=enabled -Dtests=disabled -Dlzo=disabled -Dglib=enabled -Dspectre=disabled -Dsymbol-lookup=disabled90SLOP meson compile -C /tmp/gtk/build-cairo && meson install --no-rebuild -C /tmp/gtk/build-cairo9192SLOP CWD /tmp/gtk meson setup build-graphene graphene-1.10.8 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Dintrospection=disabled -Dtests=false \93  -Dinstalled_tests=false -Dgobject_types=true -Dsse2=false -Darm_neon=false -Dgcc_vector=false94SLOP meson compile -C /tmp/gtk/build-graphene && meson install --no-rebuild -C /tmp/gtk/build-graphene9596# gdk-pixbuf with its PNG and JPEG loaders built in (no glycin, which is Rust's97# processes, and no MIME sniffing database), pango, and GTK with its X1198# backend alone; GTK's library is built static (gtk-dolly.patch).99SLOP CWD /tmp/gtk meson setup build-pixbuf gdk-pixbuf-2.44.8 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Dpng=enabled -Djpeg=enabled \100  -Dtiff=disabled -Dgif=disabled -Dglycin=disabled -Dothers=disabled -Dbuiltin_loaders=png,jpeg \101  -Dintrospection=disabled -Dman=false -Dtests=false -Dinstalled_tests=false -Dthumbnailer=disabled \102  -Dgtk_doc=false -Dgio_sniffing=false103SLOP meson compile -C /tmp/gtk/build-pixbuf && meson install --no-rebuild -C /tmp/gtk/build-pixbuf104SLOP CWD /tmp/gtk meson setup build-pango pango-1.58.2 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Dintrospection=disabled \105  -Dbuild-testsuite=false -Dbuild-examples=false -Dfontconfig=enabled -Dfreetype=enabled -Dcairo=enabled \106  -Dlibthai=disabled -Dxft=disabled -Ddocumentation=false -Dman-pages=false -Dsysprof=disabled107SLOP meson compile -C /tmp/gtk/build-pango && meson install --no-rebuild -C /tmp/gtk/build-pango108SLOP CWD /tmp/gtk meson setup build-gtk gtk-4.24.1 --wrap-mode=nodownload --prefix=/usr --libdir=lib --buildtype=release -Ddefault_library=static -Dx11-backend=true -Dwayland-backend=false \109  -Dbroadway-backend=false -Dwin32-backend=false -Dmacos-backend=false -Dandroid-backend=false \110  -Dmedia-gstreamer=disabled -Dprint-cpdb=disabled -Dprint-cups=disabled -Dvulkan=disabled \111  -Dcloudproviders=disabled -Dsysprof=disabled -Dtracker=disabled -Dcolord=disabled -Df16c=disabled \112  -Daccesskit=disabled -Dintrospection=disabled -Ddocumentation=false -Dscreenshots=false \113  -Dman-pages=false -Dbuild-demos=false -Dbuild-testsuite=false -Dbuild-examples=false -Dbuild-tests=false114SLOP meson compile -C /tmp/gtk/build-gtk && meson install --no-rebuild -C /tmp/gtk/build-gtk115116# A GTK program links, cast-emulated; a window needs an X server to open on.117FILE /tmp/gtk/check.c118    #include <gtk/gtk.h>119    int main(void) { return gtk_get_major_version() == 4 ? 0 : 1; }120SLOP cc -O1 -pthread /tmp/gtk/check.c -o /tmp/gtk/check $(pkg-config --cflags --libs gtk4) && /tmp/gtk/check121122SLOP CWD /tmp/gtk for source in fribidi-1.0.17:COPYING harfbuzz-14.6.0:COPYING \123  fontconfig-2.18.3:COPYING cairo-1.18.6:COPYING-MPL-1.1 graphene-1.10.8:LICENSE.txt \124  gdk-pixbuf-2.44.8:COPYING pango-1.58.2:COPYING gtk-4.24.1:COPYING; do \125  name=${source%%-[0-9]*}; mkdir -p /usr/share/licenses/$name && cp ${source%%:*}/${source#*:} /usr/share/licenses/$name/; done126FOLDER /usr/lib/pkgconfig127FOLDER /usr/include128FOLDER /usr/lib129FOLDER /usr/share/licenses130# GTK's settings schemas, as its install writes and compiles them.131FOLDER /usr/share/glib-2.0/schemas132ENTRY /bin/foreground -i /bin/slop133