/[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 - (hide annotations) (download)
Mon Jan 14 10:05:22 2013 UTC (7 years, 1 month 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 hollow 1.10 # Copyright 1999-2008 Gentoo Foundation
2 ribosome 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.11 # $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/djbfft-0.76.ebuild,v 1.10 2008/04/06 17:45:23 hollow Exp $
4 ribosome 1.1
5 blubb 1.8 inherit eutils flag-o-matic toolchain-funcs multilib
6 ribosome 1.1
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 hollow 1.10 LICENSE="public-domain"
12 ribosome 1.1 SLOT="0"
13 flameeyes 1.7 KEYWORDS="alpha amd64 arm ~hppa ppc ppc64 sh sparc x86 ~x86-fbsd"
14 genstef 1.9 IUSE=""
15 ribosome 1.1
16 vapier 1.6 # 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 phosphan 1.3
21 ribosome 1.1 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 genstef 1.9 MY_CFLAGS="${CFLAGS} -O1 -fomit-frame-pointer"
30     use x86 && MY_CFLAGS="${MY_CFLAGS} -malign-double"
31 ribosome 1.1
32 genstef 1.9 LIBPERMS="0755"
33     LIBDJBFFT="libdjbfft.so.${MY_PV}"
34 ribosome 1.1
35 genstef 1.9 unpack ${A}
36 ribosome 1.1 cd "${S}"
37     epatch "${FILESDIR}/${P}-gcc3.patch"
38     epatch "${FILESDIR}/${P}-shared.patch"
39 genstef 1.9
40 blubb 1.8 sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c
41 genstef 1.9 echo "$(tc-getCC) $MY_CFLAGS -fPIC -DPIC" > "conf-cc"
42     echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld"
43 ribosome 1.1 echo "${MY_D}" > "conf-home"
44     einfo "conf-cc: $(<conf-cc)"
45     }
46    
47     src_compile() {
48 genstef 1.9 emake LIBDJBFFT="$LIBDJBFFT" LIBPERMS="$LIBPERMS" || die "emake failed"
49 ribosome 1.1 }
50    
51     src_install() {
52 genstef 1.9 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 ribosome 1.1 dodoc CHANGES README TODO VERSION
56     }

  ViewVC Help
Powered by ViewVC 1.1.20