2012-11-21 11:12:43 -06:00
|
|
|
# Description: Portable Foreign Function Interface Library
|
2022-09-27 11:27:09 +02:00
|
|
|
# URL: https://sourceware.org/libffi/
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2017-07-09 14:01:59 +10:00
|
|
|
# Depends on: libffi
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=libffi-32
|
2024-02-23 19:08:05 +01:00
|
|
|
version=3.4.6
|
2024-02-15 23:08:35 +01:00
|
|
|
release=1
|
2022-03-02 18:34:10 +01:00
|
|
|
source=(https://github.com/libffi/libffi/releases/download/v$version/libffi-$version.tar.gz)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2017-07-09 14:01:59 +10:00
|
|
|
cd ${name%-*}-$version
|
|
|
|
|
2023-05-01 22:33:26 +10:00
|
|
|
# ffi.h is target-dependent
|
2014-11-15 13:50:50 +11:00
|
|
|
./configure \
|
2023-05-01 22:33:26 +10:00
|
|
|
--build=i686-pc-linux-gnu \
|
|
|
|
--includedir=/usr/lib32/libffi/include \
|
2014-11-15 13:50:50 +11:00
|
|
|
--prefix=/usr \
|
2017-07-09 14:01:59 +10:00
|
|
|
--libdir=/usr/lib32
|
2014-11-15 13:50:50 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2023-05-01 22:33:26 +10:00
|
|
|
rm -r $PKG/usr/{share/man,share}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|