termux-packages/packages/libffi/build.sh

22 lines
893 B
Bash
Raw Normal View History

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"
2019-12-01 17:59:22 +01:00
TERMUX_PKG_VERSION=3.3
2020-07-07 18:24:02 +02:00
TERMUX_PKG_REVISION=1
2015-06-13 01:03:31 +02:00
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/libffi/libffi-${TERMUX_PKG_VERSION}.tar.gz
2019-12-01 17:59:22 +01:00
TERMUX_PKG_SHA256=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
TERMUX_PKG_BREAKS="libffi-dev"
TERMUX_PKG_REPLACES="libffi-dev"
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
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
}