osxcross icon indicating copy to clipboard operation
osxcross copied to clipboard

macports GTK4

Open efa opened this issue 1 year ago • 4 comments

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?

efa avatar Sep 30 '22 21:09 efa

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.

mite-user avatar Dec 03 '22 03:12 mite-user

$ 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 avatar Nov 28 '23 20:11 efa

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

efa avatar Nov 28 '23 21:11 efa

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

efa avatar Nov 28 '23 22:11 efa