strukturag/libde265

Broken pc file in autotools build

Closed this issue · 5 comments

Commit 388b614 produces a broken pc file in the autotools build, the variables are cmake specific and are not properly replaced.

We encountered the same issue while updating libde265 in nixpkgs (NixOS/nixpkgs#213046). The pc file is broken when building with the autotools or with cmake. We ended up reverting 388b614 for the time being and continue to use the autotools build.

Furthermore, this should be handled in a much better way for CMake anyway in order to support both relative and absolute paths in CMake variables. See https://github.com/strukturag/libheif/blob/54b16a7c151a78ee1a6600f0473ce0888129b5d7/CMakeLists.txt#L103-L114 for an approach that works for both Autotools and CMake, is relocatable, and supports NixOS absolute paths. @pkrause1980

I have reverted 388b614 and copied over the same approach as used in libheif to fill-in the variables from CMake. Works again for me. Could you please check whether it also works for you?

@farindk Can you please include the extra 2 lines from the MSYS2 patch please? There's no reason to substitute those.