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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Jan 14 10:05:22 2013 UTC (7 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
sci-libs/djbfft: Drop old, fixes #423877

(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2008 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.ebuild,v 1.10 2008/04/06 17:45:23 hollow Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs multilib
6
7 DESCRIPTION="extremely fast library for floating-point convolution"
8 HOMEPAGE="http://cr.yp.to/djbfft.html"
9 SRC_URI="http://cr.yp.to/djbfft/${P}.tar.gz"
10
11 LICENSE="public-domain"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm ~hppa ppc ppc64 sh sparc x86 ~x86-fbsd"
14 IUSE=""
15
16 # the "check" target of the Makefile (version 0.76 at least) only checks if
17 # all files were installed with correct permissions. Can't check that at
18 # this point of the installation.
19 RESTRICT="test"
20
21 src_unpack() {
22 MY_PV="${PV:0:1}.${PV:2:1}.${PV:3:1}" # a.bc -> a.b.c
23 MY_D="${D}usr"
24
25 # mask out everything, which is not suggested by the author (RTFM)!
26 ALLOWED_FLAGS="-fstack-protector -march -mcpu -pipe -mpreferred-stack-boundary -ffast-math"
27 strip-flags
28
29 MY_CFLAGS="${CFLAGS} -O1 -fomit-frame-pointer"
30 use x86 && MY_CFLAGS="${MY_CFLAGS} -malign-double"
31
32 LIBPERMS="0755"
33 LIBDJBFFT="libdjbfft.so.${MY_PV}"
34
35 unpack ${A}
36 cd "${S}"
37 epatch "${FILESDIR}/${P}-gcc3.patch"
38 epatch "${FILESDIR}/${P}-shared.patch"
39
40 sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c
41 echo "$(tc-getCC) $MY_CFLAGS -fPIC -DPIC" > "conf-cc"
42 echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld"
43 echo "${MY_D}" > "conf-home"
44 einfo "conf-cc: $(<conf-cc)"
45 }
46
47 src_compile() {
48 emake LIBDJBFFT="$LIBDJBFFT" LIBPERMS="$LIBPERMS" || die "emake failed"
49 }
50
51 src_install() {
52 make LIBDJBFFT="$LIBDJBFFT" setup check || die "install failed"
53 dosym "${LIBDJBFFT}" /usr/$(get_libdir)/libdjbfft.so
54 dosym "${LIBDJBFFT}" /usr/$(get_libdir)/libdjbfft.so.${MY_PV%%.*}
55 dodoc CHANGES README TODO VERSION
56 }

  ViewVC Help
Powered by ViewVC 1.1.20