[Bug 269990] audio/libdiscid: Fix pkg-config regression after update to 0.6.3

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Mar 2023 09:12:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269990

            Bug ID: 269990
           Summary: audio/libdiscid: Fix pkg-config regression after
                    update to 0.6.3
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhale@FreeBSD.org
          Reporter: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(jhale@FreeBSD.org)
          Assignee: jhale@FreeBSD.org

Created attachment 240614
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240614&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.