wok-next annotate libffi/receipt @ rev 20461
Respect "install" phase (src -> install). Cook will fail if install dir empty (and it's by design).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Mar 04 04:56:40 2018 +0200 (2018-03-04) |
parents | 2d54d154d5ca |
children | f48456621a9d |
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@20406 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libffi.html" |
al@19607 | 11 |
rcx@3261 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20406 | 13 WGET_URL="https://sourceware.org/ftp/libffi/$TARBALL" |
pankso@12825 | 14 |
al@19763 | 15 SPLIT="libffi-dev" |
rcx@3261 | 16 |
al@20406 | 17 compile_rules() { |
al@19607 | 18 sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \ |
al@19607 | 19 -i include/Makefile.in |
al@19607 | 20 sed -e '/^includedir/ s/=.*$/=@includedir@/' \ |
al@19607 | 21 -e 's/^Cflags: -I${includedir}/Cflags:/' \ |
al@19607 | 22 -i libffi.pc.in |
al@19607 | 23 |
rcx@3261 | 24 ./configure \ |
al@20443 | 25 --libdir=/usr/lib \ |
al@19607 | 26 --disable-static \ |
al@20406 | 27 $CONFIGURE_ARGS && |
al@20443 | 28 # sed -i 's|^\(toolexeclibdir = \).*|\1/usr/lib|' Makefile \ |
al@20443 | 29 # $HOST_SYSTEM-gnu/Makefile && |
al@19607 | 30 make && make install |
rcx@3261 | 31 } |
rcx@3261 | 32 |
al@20406 | 33 genpkg_rules() { |
al@19763 | 34 case $PACKAGE in |
al@19763 | 35 libffi) copy @std;; |
al@20406 | 36 *-dev) copy @dev;; |
al@19763 | 37 esac |
rcx@3261 | 38 } |