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"
|
|
|
|
TERMUX_PKG_VERSION=3.2.1
|
|
|
|
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/libffi/libffi-${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="lib/libffi-${TERMUX_PKG_VERSION}/include"
|
2016-01-04 12:22:38 +01:00
|
|
|
|
|
|
|
termux_step_post_make_install () {
|
|
|
|
if [ $TERMUX_ARCH_BITS = "64" ]; then
|
|
|
|
# Avoid libffi being placed in lib64 for 64-bit builds:
|
|
|
|
mv $TERMUX_PREFIX/lib64/libffi* $TERMUX_PREFIX/lib/
|
2016-01-04 17:03:12 +01:00
|
|
|
|
|
|
|
perl -p -i -e 's|lib/../lib64|lib|' $TERMUX_PREFIX/lib/pkgconfig/libffi.pc
|
|
|
|
perl -p -i -e 's|lib/../lib64|lib|' $TERMUX_PREFIX/lib/libffi.la
|
2016-01-04 12:22:38 +01:00
|
|
|
fi
|
|
|
|
}
|