wok-next view libffi/receipt @ rev 20049

Up transfig (3.2.6a)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 23 12:45:07 2017 +0200 (2017-10-23)
parents 35a20e111081
children 2d54d154d5ca
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="ftp://sourceware.org/pub/$PACKAGE/$TARBALL"
15 SPLIT="libffi-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
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 --disable-static \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 libffi) copy @std;;
37 *-dev) copy @dev;;
38 esac
39 }