wok-next view libffi/receipt @ rev 21139

lftp: use openssl instead of gnutls
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 24 05:20:16 2019 +0200 (2019-01-24)
parents d5aab818505e
children 33293021c26d
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="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://sourceware.org/libffi/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/libffi.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://sourceware.org/ftp/libffi/$TARBALL"
15 COOKOPTS="force-arch" # different .h, .pc
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
21 -i include/Makefile.in
22 sed -e '/^includedir/ s/=.*$/=@includedir@/' \
23 -e 's/^Cflags: -I${includedir}/Cflags:/' \
24 -i libffi.pc.in
26 ./configure \
27 --libdir=/usr/lib \
28 --disable-static \
29 $CONFIGURE_ARGS &&
30 # sed -i 's|^\(toolexeclibdir = \).*|\1/usr/lib|' Makefile \
31 # $HOST_SYSTEM-gnu/Makefile &&
32 make &&
33 make install
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 libffi) copy @std;;
39 *-dev) copy @dev;;
40 esac
41 }