]> sigrok.org Git - libserialport.git/commitdiff
FreeBSD: Add missing libusb-2.0 to pkg-config file.
authorUwe Hermann <redacted>
Wed, 13 Sep 2017 13:04:35 +0000 (15:04 +0200)
committerUwe Hermann <redacted>
Wed, 13 Sep 2017 13:04:56 +0000 (15:04 +0200)
This fixes bug #1033.

configure.ac
libserialport.pc.in

index 8dded7142e087f003c4593dc5a6a552b6f7d9b46..19ab3aa30e64d9610ef3db048b70e28b41ac75d6 100644 (file)
@@ -95,6 +95,9 @@ AM_CONDITIONAL([FREEBSD], [test -z "${host_os##freebsd*}"])
 AM_COND_IF([WIN32], [SP_LIBS='-lsetupapi'], [SP_LIBS=])
 AC_SUBST([SP_LIBS])
 
+AM_COND_IF([FREEBSD], [SP_PKGLIBS='libusb-2.0'], [SP_PKGLIBS=])
+AC_SUBST([SP_PKGLIBS])
+
 AM_COND_IF([MACOSX], [AC_CHECK_HEADER([IOKit/IOKitLib.h], [],
        [AC_MSG_ERROR([IOKit/IOKitLib.h not found])])])
 
index 1db208bdae76503d261a068de7fa9f5b69c03a99..d945b2a15459febff2ab37d6cb38632cad09c14d 100644 (file)
@@ -6,7 +6,7 @@ includedir=@includedir@
 Name: libserialport
 Description: Cross-platform serial port access library.
 URL: http://sigrok.org/wiki/Libserialport
-Requires.private:
+Requires.private: @SP_PKGLIBS@
 Version: @SP_PACKAGE_VERSION@
 Libs: -L${libdir} -lserialport
 Libs.private: @SP_LIBS@