PortMidi / portmidi

portmidi is a cross-platform MIDI input/output library
Other
118 stars 33 forks source link

Improve pkg-config file generation #43

Closed kmilos closed 1 year ago

kmilos commented 1 year ago

It would be good to improve the CMake generated .pc file for relocatability - namely, it should use ${prefix} etc. variables and relative paths whenever possible, but still support absolute paths when so required.

See e.g. libjxl and libtiff

rbdannenberg commented 1 year ago

My recommendation is to build portmidi from sources and link to it statically. A .pc file, whatever that is, is not necessary. However, I recognized that there are many development styles and preferences, and I'm open to supporting them by including contributions to CMake files, even when I can't test them, have no specs, cannot recreate every environment these are meant for, or anticipate actual needs. Feel free to contribute changes, or maybe someone else will respond to this. I'll leave the issue up for awhile, but will probably "close as not planned" at some point in the future if there's no other action. Thanks for pointing out the issue.