1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils flag-o-matic toolchain-funcs
8 MY_PV="libffcall-${PV}"
10 DESCRIPTION="foreign function call libraries"
11 HOMEPAGE="https://www.gnu.org/software/libffcall/"
12 SRC_URI="mirror://gnu/libffcall/${MY_PV}.tar.gz"
14 # "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
15 # or in derivate works of GNUstep, the included parts of ffcall are
16 # under GNU LGPL." -ffcall author
19 KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
28 epatch "${FILESDIR}"/${PN}-make-jN.patch
30 # The build system is a strange mix of autogenerated
31 # files and manual tweaks on top. Uses $CFLAGS / $LDFLAGS randomly.
32 # We are adding them consistently here and a bit over the top:
35 for mfi in {,*/,*/*/,}Makefile.in
37 elog "Patching '${mfi}'"
38 # usually uses only assembler here, but -march=
39 # and -Wa, are a must to pass here.
40 sed -e 's/$(CC) /&$(CFLAGS) /g' \
51 --datadir="${EPREFIX}"/usr/share/doc/${PF} \