Created attachment 240614 [details] Fix pkg-config regression After the update to 0.6.3 pkg-config returns: # pkg-config --cflags libdiscid -I # pkg-config --libs libdiscid -L -ldiscid instead of: # pkg-config --cflags libdiscid -I/usr/local/include # pkg-config --libs libdiscid -L/usr/local/lib -ldiscid As you can see in https://github.com/metabrainz/libdiscid/compare/v0.6.2...v0.6.3 The following lines were removed in CMakeLists.txt: SET(prefix ${CMAKE_INSTALL_PREFIX}) SET(exec_prefix ${EXEC_INSTALL_PREFIX}) SET(includedir ${INCLUDE_INSTALL_DIR}) SET(libdir ${LIB_INSTALL_DIR}) This should probably be reported upstream but meanwhile the attached patch fixes the port.
(In reply to Emanuel Haupt from comment #0) > This should probably be reported upstream yes, please do.
(In reply to Mina Galić from comment #1) Upstream: https://github.com/metabrainz/libdiscid/pull/62
Created attachment 240616 [details] Fix pkg-config regression (revised) Revised patch. It's sufficient to restore includedir and libdir.
Thanks for the report! It might be better to just change the pc file template to use the already defined variables instead of creating new ones. I’ll look at it when I get home from work.
(In reply to Jason E. Hale from comment #4) Thanks Jason. The PR just got merged upstream.
(In reply to Emanuel Haupt from comment #5) Ok, thanks! I'll just have the port download the patch from Github, then.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd8fe029daaa9a4dd13715c88be35bc6da78dd3e commit dd8fe029daaa9a4dd13715c88be35bc6da78dd3e Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2023-03-06 18:24:43 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2023-03-06 18:31:59 +0000 audio/libdiscid: Fix empty variables in pc file https://github.com/metabrainz/libdiscid/pull/62 PR: 269990 Reported by: ehaupt audio/libdiscid/Makefile | 4 ++++ audio/libdiscid/distinfo | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-)