1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 inherit eutils flag-o-matic
6 DESCRIPTION="foreign function call libraries"
7 HOMEPAGE="https://www.haible.de/bruno/packages-ffcall.html"
8 SRC_URI="ftp://ftp.santafe.edu/pub/gnu/${P}.tar.gz"
10 # "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
11 # or in derivate works of GNUstep, the included parts of ffcall are
12 # under GNU LGPL." -ffcall author
13 LICENSE="|| ( GPL-2 LGPL-2 )"
15 KEYWORDS="alpha amd64 ~hppa ppc sparc x86 ~x86-fbsd"
22 # Because CHOST is set to (for example)
23 # alphaev67-unknown-linux-gnu, CPU gets set to alphaev67 which
24 # doesn't work in the Makefile (29 Jan 2004 agriffis)
26 [[ "${ARCH}" == "alpha" ]] && cpu_setting='CPU=alpha'
30 econf || die "./configure failed"
31 make ${cpu_setting} || die
36 dohtml avcall/avcall.html \
37 callback/callback.html \
38 callback/trampoline_r/trampoline_r.html \
39 trampoline/trampoline.html \
41 doman avcall/avcall.3 \
43 callback/trampoline_r/trampoline_r.3 \
44 trampoline/trampoline.3 \
46 dolib.a avcall/.libs/libavcall.a \
47 avcall/.libs/libavcall.la \
49 callback/.libs/libcallback.a \
50 callback/.libs/libcallback.la \
51 trampoline/libtrampoline.a
53 doins avcall/avcall.h \
55 trampoline/trampoline.h \
56 callback/trampoline_r/trampoline_r.h \