1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/devel/libffi/Makefile
Niclas Zeising 1a3e10283d devel/libffi: Fix build on i386 without objdump
FreeBSD 13 does not have any objdump in the default installation, which
causes issues with libffi on i386 with the recent update to llvm 11.
Add a patch originally from upstream, to use readelf instead of objdump.

The patch is for configure.ac originally.  I've applied it and rerun
autoreconf and committed the result, instead of adding a dependency on
autoreconf.

Fix devel/libffi321 in the same way.  While here, fix the fuzz on a few
other patches, which made it much easier to sort out the configure patch.

Thanks to dim@ for helping me figure out the issue.

MFH:		2020Q3
2020-08-20 11:34:28 +00:00

38 lines
932 B
Makefile

# Created by: Horance Chou <horance@freedom.ie.cycu.edu.tw>
# $FreeBSD$
PORTNAME= libffi
PORTVERSION= 3.3
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SOURCEWARE/${PORTNAME}
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
PATCHFILES+= 01a75ed76ea7e57f1b7a5c183e2b1e890e6aa0fd.diff:-p1
# This patch is for configure.ac.
# A local patch against configure has been created in files/patch-configure.
#PATCHFILES+= 8c50837f0b58ba5b2bcb1b424a2a4bfa01559fb2.diff:-p1
MAINTAINER= zeising@FreeBSD.org
COMMENT= Foreign Function Interface
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= runtest:misc/dejagnu
USES= compiler:c11 libtool pathfix
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-multi-os-directory
INSTALL_TARGET= install-strip
INFO= libffi
TEST_TARGET= check
post-patch:
@${REINPLACE_CMD} -e 's| -Wno-psabi||g' \
${WRKSRC}/testsuite/lib/libffi.exp
.include <bsd.port.mk>