git: 2ecdbbb8d071 - main - devel/libbfd: update to 2.40

From: Joerg Wunsch <joerg_at_FreeBSD.org>
Date: Thu, 09 Mar 2023 19:55:21 UTC
The branch main has been updated by joerg:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2ecdbbb8d071d6c761e507e0fadd8d7fcd6ad0bc

commit 2ecdbbb8d071d6c761e507e0fadd8d7fcd6ad0bc
Author:     Joerg Wunsch <joerg@FreeBSD.org>
AuthorDate: 2023-03-09 19:53:46 +0000
Commit:     Joerg Wunsch <joerg@FreeBSD.org>
CommitDate: 2023-03-09 19:55:17 +0000

    devel/libbfd: update to 2.40
    
    PR:             269885
    Submitted by:   cy
---
 devel/libbfd/Makefile  | 11 +++++++++--
 devel/libbfd/distinfo  |  6 +++---
 devel/libbfd/pkg-plist |  3 +--
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/devel/libbfd/Makefile b/devel/libbfd/Makefile
index 61c98e5d46b7..09071a2b19df 100644
--- a/devel/libbfd/Makefile
+++ b/devel/libbfd/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libbfd
-PORTVERSION=	2.33.1
+PORTVERSION=	2.40
 CATEGORIES=	devel
 MASTER_SITES=	SOURCEWARE/binutils/releases
 DISTNAME=	binutils-${PORTVERSION}
@@ -17,7 +17,7 @@ CONFLICTS=	mingw-binutils binutils
 
 WRKSRC=		${WRKDIR}/binutils-${PORTVERSION}/bfd
 
-USES=		libtool tar:xz
+USES=		gmake libtool tar:xz
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-install-libbfd \
 		--disable-nls \
@@ -36,5 +36,12 @@ pre-configure:
 			${CONFIGURE_ARGS} --build=${CONFIGURE_TARGET} && \
 		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
 			${MAKE_ARGS})
+	(cd ${WRKSRC}/../libsframe && \
+		${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" CPP="${CPP}" \
+			CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
+			LIBS="${LIBS}" ${CONFIGURE_ENV} ./configure \
+			${CONFIGURE_ARGS} --build=${CONFIGURE_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+			${MAKE_ARGS})
 
 .include <bsd.port.mk>
diff --git a/devel/libbfd/distinfo b/devel/libbfd/distinfo
index 26bb6cf5fda4..d8a57d71c8c4 100644
--- a/devel/libbfd/distinfo
+++ b/devel/libbfd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1575361927
-SHA256 (binutils-2.33.1.tar.xz) = ab66fc2d1c3ec0359b8e08843c9f33b63e8707efdff5e4cc5c200eae24722cbf
-SIZE (binutils-2.33.1.tar.xz) = 21490848
+TIMESTAMP = 1677616773
+SHA256 (binutils-2.40.tar.xz) = 0f8a4c272d7f17f369ded10a4aca28b8e304828e95526da482b0ccc4dfc9d8e1
+SIZE (binutils-2.40.tar.xz) = 25241484
diff --git a/devel/libbfd/pkg-plist b/devel/libbfd/pkg-plist
index ed8ba61a5ad3..d413d85a2044 100644
--- a/devel/libbfd/pkg-plist
+++ b/devel/libbfd/pkg-plist
@@ -1,10 +1,9 @@
 include/ansidecl.h
 include/bfd.h
 include/bfdlink.h
-include/bfd_stdint.h
 include/diagnostics.h
 include/plugin-api.h
 include/symcat.h
-lib/libbfd-2.33.1.so
+lib/libbfd-2.40.so
 lib/libbfd.a
 lib/libbfd.so