tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.91k stars 329 forks source link

macports GTK4 #362

Open efa opened 2 years ago

efa commented 2 years ago

macports support GTK4, but I saw that osxcross-macports do not:

$ osxcross-macports search gtk4
no matching packages found for gtk4

In the future is it planned to support GTK4?

mite-user commented 1 year ago

Both osxcross-macports search gtk4 and osxcross-macports install gtk4 worked for me.

https://github.com/tpoechtrager/osxcross/blob/50e86ebca7d14372febd0af8cd098705049161b9/tools/osxcross-macports#L457-L495

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.

efa commented 11 months ago
$ 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
efa commented 11 months ago

I have 'py311-setuptools' line in: $osxcross/target/macports/cache/INDEXCACHE

efa commented 11 months ago

seems work with: $ omp fake-install py311-setuptools