2019-07-23 07:15:56 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2019-10-08 02:14:08 -06:00
|
|
|
--includedir=/usr/include \
|
2019-07-23 07:15:56 -06:00
|
|
|
--with-pic
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
|
|
|
|
# Fix location for headers.
|
2019-10-08 02:14:08 -06:00
|
|
|
mv "$1/usr/lib/libffi-3.2.1/include/" "$1/usr"
|
|
|
|
rmdir "$1/usr/lib/libffi-3.2.1"
|
2019-07-23 07:15:56 -06:00
|
|
|
|
2019-10-08 02:14:08 -06:00
|
|
|
# Fix location inside pkgconfig file.
|
2019-07-23 07:15:56 -06:00
|
|
|
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
|
|
|
|
"$1/usr/lib/pkgconfig/libffi.pc"
|