2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://sourceware.org/libffi/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Library providing a portable, high level programming interface to various calling conventions"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-07-14 06:31:26 +02:00
|
|
|
TERMUX_PKG_VERSION=3.4.2
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/libffi/libffi/releases/download/v${TERMUX_PKG_VERSION}/libffi-${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libffi-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libffi-dev"
|
2016-05-17 02:28:21 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-multi-os-directory"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="lib/libffi-${TERMUX_PKG_VERSION}/include"
|
2018-09-20 00:26:38 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2018-09-20 00:26:38 +02:00
|
|
|
if [ $TERMUX_ARCH = arm ]; then
|
|
|
|
CFLAGS+=" -fno-integrated-as"
|
|
|
|
fi
|
|
|
|
}
|
2019-10-25 03:52:01 +02:00
|
|
|
termux_step_post_configure() {
|
|
|
|
# work around since mmap can't be written and marked executable in android anymore from userspace
|
|
|
|
echo "#define FFI_MMAP_EXEC_WRIT 1" >> fficonfig.h
|
|
|
|
}
|