summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-11-24 01:07:10 +0000
committerSam James <sam@gentoo.org>2022-11-24 01:07:21 +0000
commit322575cdd79e7e200c74066f30c02a90ce2b8dd0 (patch)
treedbbb46b941e3dff2d1623ff93b7e8b0a1f56b550 /media-libs/libofa
parentsci-mathematics/pari: add 2.15.1, drop 2.15.0 (diff)
downloadgentoo-322575cdd79e7e200c74066f30c02a90ce2b8dd0.tar.gz
gentoo-322575cdd79e7e200c74066f30c02a90ce2b8dd0.tar.bz2
gentoo-322575cdd79e7e200c74066f30c02a90ce2b8dd0.zip
media-libs/libofa: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libofa')
-rw-r--r--media-libs/libofa/libofa-0.9.3-r3.ebuild (renamed from media-libs/libofa/libofa-0.9.3-r2.ebuild)18
1 files changed, 12 insertions, 6 deletions
diff --git a/media-libs/libofa/libofa-0.9.3-r2.ebuild b/media-libs/libofa/libofa-0.9.3-r3.ebuild
index d561bd01c9f0..f991500d7892 100644
--- a/media-libs/libofa/libofa-0.9.3-r2.ebuild
+++ b/media-libs/libofa/libofa-0.9.3-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-inherit flag-o-matic multilib-minimal
+inherit autotools flag-o-matic multilib-minimal
DESCRIPTION="Open Fingerprint Architecture"
HOMEPAGE="https://code.google.com/p/musicip-libofa/"
@@ -12,7 +12,6 @@ SRC_URI="https://musicip-libofa.googlecode.com/files/${P}.tar.gz"
LICENSE="|| ( APL-1.0 GPL-2 )"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
-IUSE=""
BDEPEND="virtual/pkgconfig"
DEPEND=">=sci-libs/fftw-3.3.3-r2[${MULTILIB_USEDEP}]"
@@ -26,13 +25,20 @@ src_prepare() {
# disable building non-installed examples
sed -i -e '/SUBDIRS/s:examples::' Makefile.{am,in} || die
+ # Force regeneration for Clang 16
+ rm aclocal.m4 || die
+ eautoreconf
+}
+
+src_configure() {
is-flag -ffast-math && append-flags -fno-fast-math
+
+ multilib-minimal_src_configure
}
multilib_src_configure() {
# disable dependencies that were used for the noinst_ example only
- ECONF_SOURCE=${S} \
- econf \
+ ECONF_SOURCE="${S}" econf \
ac_cv_lib_expat_XML_ExpatVersion=yes \
ac_cv_lib_curl_curl_global_init=yes \
--disable-static