The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.
I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.
Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.
List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
upstream's CMake feature detection expects the gtk3 package to supply
not only `cflags` but also `cflags_other`. i think the latter was
intended to be optional, so patch it out since our gtk doesn't supply it.
<1501ad367d/cmake/FindGTK3.cmake (L14-L15)>
the `LIBRE*` and `USE_*` make flags were removed during the cmake
transition in v2.11.0: <https://github.com/baresip/baresip/pull/2354/files>
upstream now detects features on a best-effort basis, with pkg-config.