wok-next view libffi/receipt @ rev 20406

Continue: json-c, json-glib, keyutils, libarchive, libassuan, libatasmart, libatomic_ops, libblockdev, libbytesize, libcroco, libdaemon, libesmtp, libffi, libgcrypt, libgpg-error, libgsf, libgudev, libgusb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 08 02:55:48 2017 +0200 (2017-12-08)
parents 8cad5edc1a45
children 0e7893ac206d
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"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://sourceware.org/ftp/libffi/$TARBALL"
16 SPLIT="libffi-dev"
18 compile_rules() {
19 sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
20 -i include/Makefile.in
21 sed -e '/^includedir/ s/=.*$/=@includedir@/' \
22 -e 's/^Cflags: -I${includedir}/Cflags:/' \
23 -i libffi.pc.in
25 ./configure \
26 --disable-static \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 libffi) copy @std;;
34 *-dev) copy @dev;;
35 esac
36 }