Bug 194752 - libusb-0.1.pc should be libusb.pc for compatibility
Summary: libusb-0.1.pc should be libusb.pc for compatibility
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-02 05:37 UTC by Daniel O'Connor
Modified: 2024-06-06 14:55 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel O'Connor 2014-11-02 05:37:02 UTC
On Ubuntu and Macports/OSX libusb 0.1 installs a pc file called libusb.pc. On FreeBSD it's libusb-0.1.pc which seems gratuitously different.

While I appreciate libusb.pc should have the version it seems like a gratuitous difference.

Perhaps libusb.pc could be a link to libusb-0.1.pc?
Comment 1 Ed Maste freebsd_committer freebsd_triage 2024-06-06 14:23:34 UTC
In fact we have:

lib/libusb/libusb-0.1.pc.in
lib/libusb/libusb-1.0.pc.in
lib/libusb/libusb-2.0.pc.in

These are identical except for the reported versions (0.1.0, 1.0.13, 2.0.0) and are handled identically via lib/libusb/Makefile:

PCFILES=        libusb-0.1.pc libusb-1.0.pc libusb-2.0.pc
.for pcfile in ${PCFILES}
${pcfile}: ${pcfile}.in
        sed -e 's,@libdir@,${LIBDIR},g ; s,@sharedlibdir@,${SHLIBDIR},g ; \
                s,@includedir@,${INCLUDEDIR},g ;' ${.ALLSRC} > ${.TARGET}
.endfor