Xpra-org / gtk-osx-build

Build setup to help building the Mac OS X port of GTK+
http://gtk-osx.sourceforge.net/
0 stars 2 forks source link

libavif path #23

Open totaam opened 2 years ago

totaam commented 2 years ago

libavif was added in 5e8c13503f86127f008ede1218a84987ce49b411.

Problem is that the dylib id is wrong and requires tweaking after installing:

install_name_tool -id "$JHBUILD_PREFIX/lib/libavif.dylib" \
                                  "$JHBUILD_PREFIX/lib/libavif.dylib"

(somewhat similar to #19)

totaam commented 1 year ago

libavif was updated to version 0.11.1 in 67e9966791d7bc82777f5f1a57612c1984458d14

Still a problem.

totaam commented 7 months ago

Current version is 1.0.3

Based on:

I tried setting DCMAKE_INSTALL_NAME_DIR but that made no difference and cmake said:

CMake Warning:
  Manually-specified variables were not used by the project:

    DCMAKE_INSTALL_NAME_DIR

The next solution to try seems completely overkill: For libavif, since no one wrote a meson port for the WrapDB, it is "probably" possible to use meson's cmake module to configure libavif and parse the cmake debug tracing API, retrieve build definitions, and convert it to a meson AST then build it with meson. In case you're wondering, yes, that is exactly as hacky as it sounds. I would rather add a patch to run ninja followed by our install_name_tool workaround... a single line.