mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-15 19:20:10 -07:00
libffi: make header fixes less yucky
This commit is contained in:
parent
dd6d4be199
commit
475ddd8fba
@ -2,15 +2,16 @@
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--includedir=/usr/include \
|
||||
--with-pic
|
||||
|
||||
make
|
||||
make DESTDIR="$1" install
|
||||
|
||||
# Fix location for headers.
|
||||
mkdir -p "$1/usr/include"
|
||||
mv "$1/usr/lib/libffi-3.2.1/include/"*.h "$1/usr/include"
|
||||
rmdir "$1/usr/lib/libffi-3.2.1/include"
|
||||
mv "$1/usr/lib/libffi-3.2.1/include/" "$1/usr"
|
||||
rmdir "$1/usr/lib/libffi-3.2.1"
|
||||
|
||||
# Fix location inside pkgconfig file.
|
||||
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
|
||||
"$1/usr/lib/pkgconfig/libffi.pc"
|
||||
|
Loading…
Reference in New Issue
Block a user