wok-next view libffi/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 2d54d154d5ca |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libffi"
4 VERSION="3.2.1"
5 CATEGORY="development"
6 SHORT_DESC="A portable foreign function interface library"
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="MIT"
9 WEB_SITE="https://sourceware.org/libffi/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libffi.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://sourceware.org/ftp/libffi/$TARBALL"
15 SPLIT="libffi-dev"
17 compile_rules() {
18 sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
19 -i include/Makefile.in
20 sed -e '/^includedir/ s/=.*$/=@includedir@/' \
21 -e 's/^Cflags: -I${includedir}/Cflags:/' \
22 -i libffi.pc.in
24 ./configure \
25 --libdir=/usr/lib \
26 --disable-static \
27 $CONFIGURE_ARGS &&
28 # sed -i 's|^\(toolexeclibdir = \).*|\1/usr/lib|' Makefile \
29 # $HOST_SYSTEM-gnu/Makefile &&
30 make && make install
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 libffi) copy @std;;
36 *-dev) copy @dev;;
37 esac
38 }