/[gentoo-x86]/sci-libs/djbfft/djbfft-0.76-r1.ebuild
Gentoo

Contents of /sci-libs/djbfft/djbfft-0.76-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Jan 5 12:48:23 2015 UTC (5 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
sci-libs/djbfft: Drop old

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/djbfft-0.76-r1.ebuild,v 1.9 2012/12/27 08:15:03 armin76 Exp $
4
5 EAPI=4
6 inherit eutils flag-o-matic toolchain-funcs multilib
7
8 DESCRIPTION="Extremely fast library for floating-point convolution"
9 HOMEPAGE="http://cr.yp.to/djbfft.html"
10 SRC_URI="http://cr.yp.to/djbfft/${P}.tar.gz"
11
12 LICENSE="public-domain"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm ~hppa ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
15 IUSE=""
16
17 src_prepare() {
18 SOVER="${PV:0:1}.${PV:2:1}.${PV:3:1}" # a.bc -> a.b.c
19 # mask out everything, which is not suggested by the author (RTFM)!
20 ALLOWED_FLAGS="-fstack-protector -march -mcpu -pipe -mpreferred-stack-boundary -ffast-math"
21 strip-flags
22
23 use x86 && append-cflags -malign-double
24
25 SONAME="libdjbfft.so.${SOVER}"
26
27 epatch \
28 "${FILESDIR}"/${P}-gcc3.patch \
29 "${FILESDIR}"/${P}-shared.patch \
30 "${FILESDIR}"/${P}-headers.patch
31
32 sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c || die
33 echo "$(tc-getCC) ${CFLAGS} -fPIC" > "conf-cc"
34 echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld"
35 echo "${ED}usr" > "conf-home"
36 einfo "conf-cc: $(<conf-cc)"
37 }
38
39 src_compile() {
40 emake \
41 LIBDJBFFT=${SONAME} \
42 LIBPERMS=0755 \
43 ${SONAME}
44 echo "the compile function was:"
45 cat ./compile
46 echo "the conf-ld function was:"
47 cat ./conf-ld
48 }
49
50 src_test() {
51 local t
52 for t in accuracy accuracy2 speed; do
53 emake ${t}
54 einfo "Testing ${t}"
55 LD_LIBRARY_PATH=. ./${t} > ${t}.out || die "test ${t} failed"
56 done
57 }
58
59 src_install() {
60 emake LIBDJBFFT=${SONAME} install
61 ./install || die "install failed"
62 dosym ${SONAME} /usr/$(get_libdir)/libdjbfft.so
63 dosym ${SONAME} /usr/$(get_libdir)/libdjbfft.so.${SOVER%%.*}
64 dodoc CHANGES README TODO VERSION
65 }

  ViewVC Help
Powered by ViewVC 1.1.20