Port build system to Meson
I was trying to use Debian’s [CMake build system patch](https://salsa.debian.org/debian/libresample/-/blob/6478f2d9b52ff55ff9c42e2e46394bf164c18169/debian/patches/1001_shlib-cmake.patch) but ran into issues because its `.pc` file doesn’t actually include the linker flags required to link the resulting library.
I messed around with it for a bit, but generating correct `.pc` files from CMake is actually way too hard. So instead I just rewrote the build system in Meson, which is much simpler and takes care of all the details for us.
I don’t really expect this to be merged given the project has been inactive for over a decade, but I wanted to put it up here if any downstreams are interested in it.
@jonassmedegaard This may interest you, either to adopt directly in Debian or at least as a notification that the resulting `.pc` files from your current patch are broken; it lacks the flags for linking, and passes ones that don’t make sense like `-ffile-prefix-map=/build/libresample-Yb23pu/libresample-0.1.3=.`. (It also seems like the `libresample.so` in the current package is a broken symbolic link to `libresample.so.1`, but maybe that’s just some Debian thing I don’t fully understand.)
合并状态:未合并 关闭于 2024-08-23 8 条评论