Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2026 00:13:05 +0000
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Cc:        Muhammad Moinur Rahman <bofh@FreeBSD.org>
Subject:   git: 45fe46c53399 - 2026Q2 - devel/libserialport: ensure we link with libusb
Message-ID:  <69eeaa11.1ec26.551f350@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch 2026Q2 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45fe46c53399676410b12d43f3dca1af3f0c8651

commit 45fe46c53399676410b12d43f3dca1af3f0c8651
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-04-24 18:24:07 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-04-27 00:11:58 +0000

    devel/libserialport: ensure we link with libusb
    
    Event:          Wiesbaden Hackathon 202604
    MFH:            2026Q2
    PR:             294710
    Reported by:    fuz
    
    (cherry picked from commit e4fc790207da8e90cc3e4135d9fc3fe8f9b406ac)
---
 devel/libserialport/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/devel/libserialport/Makefile b/devel/libserialport/Makefile
index 20e75a9931a8..3dec5ddd97d7 100644
--- a/devel/libserialport/Makefile
+++ b/devel/libserialport/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libserialport
 DISTVERSION=	0.1.2
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://sigrok.org/download/source/libserialport/
 
@@ -13,8 +14,15 @@ USES=		libtool pathfix pkgconfig
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV+=	LIBS="-lusb"
 
 MAKE_JOBS_UNSAFE=	yes
 INSTALL_TARGET=	install-strip
 
+post-install:
+	${REINPLACE_CMD} \
+		-e 's|Requires.private: libusb-2.0|Requires.private:|' \
+		-e 's|Libs.private: $$|Libs.private: -lusb|' \
+		${STAGEDIR}${PREFIX}/libdata/pkgconfig/libserialport.pc
+
 .include <bsd.port.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eeaa11.1ec26.551f350>