mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
x86 targets. This should eliminate any text relocations, in particular for the i386 build, making it possible to build the port with lld without having to use -z notext. Obtained from: https://github.com/libffi/libffi/pull/174 Approved by: zeising (maintainer) PR: 214864 MFH: 2017Q4
37 lines
816 B
Makefile
37 lines
816 B
Makefile
# Created by: Horance Chou <horance@freedom.ie.cycu.edu.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libffi
|
|
PORTVERSION= 3.2.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SOURCEWARE/${PORTNAME}
|
|
|
|
MAINTAINER= zeising@FreeBSD.org
|
|
COMMENT= Foreign Function Interface
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
TEST_DEPENDS= runtest:misc/dejagnu
|
|
|
|
USES= libtool pathfix
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALL_TARGET= install-strip
|
|
INFO= libffi
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
TEST_TARGET= check
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| -Wno-psabi||g' \
|
|
${WRKSRC}/testsuite/lib/libffi.exp
|
|
|
|
post-install:
|
|
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffi.h \
|
|
${STAGEDIR}${PREFIX}/include/
|
|
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h \
|
|
${STAGEDIR}${PREFIX}/include/
|
|
|
|
.include <bsd.port.mk>
|