tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: LOCALBASE searched before macOS framework with CMake on Darwin



On Sun, Apr 28, 2024 at 09:51:56PM +0200, triaxx%NetBSD.org@localhost wrote:
> The problem here is that success or failure of the build process of
> games/openttd on Darwin depends on the installation of graphics/MesaLib
> while games/openttd doesn't include graphics/MesaLib/buildlink3.mk.
> 
> I think there is a problem with the CMake logic which should not look at
> LOCALBASE build in BUILDLINK_DIR to find dependency but (i) I am not sure
> and (ii) I have no idea how it could be fixed.

It's a long standing problem with cmake that many scripts to find
libraries will bypass pkg-config. The best way is to build in a sandbox...

> If graphics/MesaLib should not be installed on macOS, maybe could we add
> NOT_FOR_PLATFORM= Darwin in graphics/MesaLib/Makefile. But I see Darwin
> dedicated test for install step in this file...

It is useful when running X11 apps on Darwin, which is admittedly
a niche use case.


Home | Main Index | Thread Index | Old Index