2020-02-12 18:18:42 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2019-02-26 08:42:31 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit flag-o-matic multilib-minimal
|
|
|
|
|
|
|
|
DESCRIPTION="Open Fingerprint Architecture"
|
|
|
|
HOMEPAGE="https://code.google.com/p/musicip-libofa/"
|
|
|
|
SRC_URI="https://musicip-libofa.googlecode.com/files/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="|| ( APL-1.0 GPL-2 )"
|
|
|
|
SLOT="0"
|
2020-01-26 23:14:01 +03:00
|
|
|
KEYWORDS="~alpha amd64 ~arm hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
|
2019-02-26 08:42:31 +03:00
|
|
|
IUSE=""
|
|
|
|
|
2020-06-14 00:16:45 +03:00
|
|
|
BDEPEND="virtual/pkgconfig"
|
2019-02-26 08:42:31 +03:00
|
|
|
DEPEND=">=sci-libs/fftw-3.3.3-r2[${MULTILIB_USEDEP}]"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-gcc-4{,.3,.4,.7}.patch )
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# disable building non-installed examples
|
|
|
|
sed -i -e '/SUBDIRS/s:examples::' Makefile.{am,in} || die
|
|
|
|
|
|
|
|
is-flag -ffast-math && append-flags -fno-fast-math
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_configure() {
|
|
|
|
# disable dependencies that were used for the noinst_ example only
|
|
|
|
ECONF_SOURCE=${S} \
|
|
|
|
econf \
|
|
|
|
ac_cv_lib_expat_XML_ExpatVersion=yes \
|
|
|
|
ac_cv_lib_curl_curl_global_init=yes
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_install_all() {
|
|
|
|
einstalldocs
|
|
|
|
find "${D}" -name '*.la' -type f -delete || die
|
|
|
|
}
|