[Bug 256912] emulators/yuzu-qt5: build fails when pkgconf is present

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Jun 2021 19:56:23 +0000

            Bug ID: 256912
           Summary: emulators/yuzu-qt5: build fails when pkgconf is
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich_at_FreeBSD.org
          Reporter: jkim_at_FreeBSD.org
             Flags: maintainer-feedback?(jbeich_at_FreeBSD.org)
          Assignee: jbeich_at_FreeBSD.org

Created attachment 226141
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226141&action=edit
Do not use pkgconf to find libusb for FreeBSD

CMake fails to find libusb when pkgconf exists.


-- Found PkgConfig: /usr/local/bin/pkg-config (found version "1.7.4") 
CMake Warning at CMakeLists.txt:440 (message):
  libusb not found, falling back to externals


CMake Error at externals/libusb/CMakeLists.txt:109 (add_library):
  Cannot find source file:


  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
  .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc

CMake Error at externals/libusb/CMakeLists.txt:109 (add_library):
  No SOURCES given to target: usb


The attached patch let us bypass the pkgconf test and successfully find the
libusb from the base.


-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.13
-- Found libusb-1.0: /usr/include, /usr/lib/libusb.so


You are receiving this mail because:
You are the assignee for the bug.
Received on Wed Jun 30 2021 - 19:56:23 UTC

Original text of this message