wok-next view libffi/receipt @ rev 21068

Rebuild Perl modules
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 11 23:38:35 2018 +0200 (2018-12-11)
parents f48456621a9d
children e19ff076dc63
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 SPLIT="$PACKAGE-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 &&
31 make install
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 libffi) copy @std;;
37 *-dev) copy @dev;;
38 esac
39 }