wok-next annotate 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
rev   line source
al@19763 1 # SliTaz package receipt v2.
rcx@3261 2
rcx@3261 3 PACKAGE="libffi"
al@19607 4 VERSION="3.2.1"
rcx@3261 5 CATEGORY="development"
al@19763 6 SHORT_DESC="A portable foreign function interface library"
rcx@3261 7 MAINTAINER="rcx@zoominternet.net"
pascal@15473 8 LICENSE="MIT"
al@19607 9 WEB_SITE="https://sourceware.org/libffi/"
al@19607 10 HOST_ARCH="i486 arm"
al@19607 11
rcx@3261 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3261 13 WGET_URL="ftp://sourceware.org/pub/$PACKAGE/$TARBALL"
pankso@12825 14
al@19763 15 SPLIT="libffi-dev"
rcx@3261 16
rcx@3261 17 # Rules to configure and make the package.
rcx@3261 18 compile_rules()
rcx@3261 19 {
al@19607 20 sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
al@19607 21 -i include/Makefile.in
al@19607 22 sed -e '/^includedir/ s/=.*$/=@includedir@/' \
al@19607 23 -e 's/^Cflags: -I${includedir}/Cflags:/' \
al@19607 24 -i libffi.pc.in
al@19607 25
rcx@3261 26 ./configure \
al@19607 27 --disable-static \
rcx@3261 28 $CONFIGURE_ARGS &&
al@19607 29 make && make install
rcx@3261 30 }
rcx@3261 31
rcx@3261 32 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3261 33 genpkg_rules()
rcx@3261 34 {
al@19763 35 case $PACKAGE in
al@19763 36 libffi) copy @std;;
al@19763 37 *-dev) copy @dev;;
al@19763 38 esac
rcx@3261 39 }