libffi: fix its stupid pkg-config file.
This commit is contained in:
parent
0991261353
commit
dae2756809
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libffi'
|
# Template file for 'libffi'
|
||||||
pkgname=libffi
|
pkgname=libffi
|
||||||
version=3.1
|
version=3.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--includedir=/usr/include --with-pic=yes"
|
configure_args="--includedir=/usr/include --with-pic=yes"
|
||||||
short_desc="Library supporting Foreign Function Interfaces"
|
short_desc="Library supporting Foreign Function Interfaces"
|
||||||
|
@ -20,6 +20,8 @@ post_install() {
|
||||||
# Fix includedir for pkg-config file.
|
# Fix includedir for pkg-config file.
|
||||||
sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \
|
sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \
|
||||||
${DESTDIR}/usr/lib/pkgconfig/libffi.pc
|
${DESTDIR}/usr/lib/pkgconfig/libffi.pc
|
||||||
|
# Fix libdir, it's a variable!
|
||||||
|
sed -i 's|\$(libdir)|\${libdir}|g' ${DESTDIR}/usr/lib/pkgconfig/libffi.pc
|
||||||
vinstall LICENSE 644 usr/share/licenses/libffi
|
vinstall LICENSE 644 usr/share/licenses/libffi
|
||||||
rm ${DESTDIR}/usr/lib64
|
rm ${DESTDIR}/usr/lib64
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue