Open efa opened 2 years ago
Both osxcross-macports search gtk4
and osxcross-macports install gtk4
worked for me.
osxcross-macports search <pattern>
downloads the $MIRROR
page (e.g. https://packages.macports.org/),
gets the values of all href
attributes (i.e. URL, which is expected to be just a package name),
saves those to $CACHE/INDEXCACHE
(which should be osxcross/target/macports/cache/INDEXCACHE
by default),
then searches that $CACHE/INDEXCACHE
with the specified pattern.
Try visiting the mirror page with your browser and see if you can ctrl + f
the package.
Similarly osxcross-macports install ...
just downloads the compiled binaries from the mirror. So if macports doesn't provide the binaries for some reason, there is no easy way to obtain or compile them with osxcross.
There is also osxcross-macports fake-install ...
which allows you to ignore a missing dependency when installing a package. Although this trick isn't needed to install gtk4
.
$ sudo omp install gtk4
searching package gtk4 ...
getting gtk4-4.12.3_0+x11.darwin_18.x86_64.tbz2 ...
verifying file integrity of gtk4-4.12.3_0+x11.darwin_18.x86_64.tbz2 ...
installing gtk4 ...
searching package fribidi ...
getting fribidi-1.0.13_0.darwin_18.x86_64.tbz2 ...
verifying file integrity of fribidi-1.0.13_0.darwin_18.x86_64.tbz2 ...
installing fribidi ...
searching package gdk-pixbuf2 ...
getting gdk-pixbuf2-2.42.10_1.darwin_18.x86_64.tbz2 ...
verifying file integrity of gdk-pixbuf2-2.42.10_1.darwin_18.x86_64.tbz2 ...
installing gdk-pixbuf2 ...
searching package gobject-introspection ...
getting gobject-introspection-1.78.1_0.darwin_18.x86_64.tbz2 ...
verifying file integrity of gobject-introspection-1.78.1_0.darwin_18.x86_64.tbz2 ...
installing gobject-introspection ...
searching package py311-mako ...
getting py311-mako-1.2.4_0.darwin_18.noarch.tbz2 ...
verifying file integrity of py311-mako-1.2.4_0.darwin_18.noarch.tbz2 ...
installing py311-mako ...
searching package py311-setuptools ...
no suitable version found for darwin_18
trying py311 instead ...
searching package py311 ...
no package found
failed to install py311, try with '-v'
use 'omp fake-install <pkgname>' to fake install non-existing packages
I have 'py311-setuptools' line in: $osxcross/target/macports/cache/INDEXCACHE
seems work with: $ omp fake-install py311-setuptools
macports support GTK4, but I saw that osxcross-macports do not:
In the future is it planned to support GTK4?