git: c3d2880091d0 - main - devel/libffcall: fix build on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sun, 28 Sep 2025 09:30:53 UTC
The branch main has been updated by fuz:

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

commit c3d2880091d08b6860fe9a4431acb17f43391123
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-21 09:32:45 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-28 09:29:32 +0000

    devel/libffcall: fix build on armv7
    
    The port gets confused when compiling for ARM with no eabi to be found
    in the target string.  Add a FreeBSD special case to keep it happy.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2025Q3
---
 devel/libffcall/Makefile                 |  4 +---
 devel/libffcall/files/patch-configure.ac | 11 +++++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/devel/libffcall/Makefile b/devel/libffcall/Makefile
index d11b67c036cb..380eb5e89026 100644
--- a/devel/libffcall/Makefile
+++ b/devel/libffcall/Makefile
@@ -10,9 +10,7 @@ WWW=		https://www.gnu.org/software/libffcall/
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_armv7=	no rule to make target 'avcall-armhf-old.lo', needed by 'avcall.lo'
-
-USES=		gmake libtool
+USES=		autoreconf gmake libtool
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
diff --git a/devel/libffcall/files/patch-configure.ac b/devel/libffcall/files/patch-configure.ac
new file mode 100644
index 000000000000..53f6ce11b752
--- /dev/null
+++ b/devel/libffcall/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- configure.ac.orig	2025-09-21 09:30:04 UTC
++++ configure.ac
+@@ -108,7 +108,7 @@ if test ${HOST_CPU_C_ABI} = arm -o ${HOST_CPU_C_ABI} =
+   dnl comes with clang 10 (which doesn't grok old "divided" syntax) and with
+   dnl an old GNU as (which doesn't grok the '.fpu vfpv3-d16' pseudo-op).
+   case "$host_os" in
+-    *eabi*) HOST_CPU_C_ABI="${HOST_CPU_C_ABI}-eabi" ;;
++    *eabi*|*freebsd*) HOST_CPU_C_ABI="${HOST_CPU_C_ABI}-eabi" ;;
+     *)      HOST_CPU_C_ABI="${HOST_CPU_C_ABI}-old" ;;
+   esac
+ fi