Magellan Linux

Contents of /branches/magellan-next/core/fftw3/fftw3-3.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9330 - (show annotations) (download)
Sat Nov 26 13:16:16 2011 UTC (12 years, 5 months ago) by niro
File size: 1478 byte(s)
-fixed logic issue
1 # $Id$
2
3 PNAME="fftw3"
4 PVER="3.3"
5 PBUILD="r2"
6
7 PCATEGORIE="sci-libs"
8
9 DESCRIPTION="FTW is a C subroutine library for computing the discrete Fourier transform (DFT)."
10 HOMEPAGE="http://www.fftw.org/"
11
12 DEPEND=">= virtual/glibc"
13
14 SRCFILE="${PNAME/3/}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}"
16
17 sminclude multilib
18
19 SRC_URI=(
20 http://www.fftw.org/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd http://www.fftw.org/download.html | grep 'the latest stable' | sed 's/.*Version \([0-9].*\)\ is.*/\1/'"
25
26 src_prepare()
27 {
28 local abi
29 for abi in ${MULTILIB_ABIS}
30 do
31 oldmunpack ${SRCFILE} || die
32 mv ${SRCDIR} ${SRCDIR}-${abi}-single || die
33
34 oldmunpack ${SRCFILE} || die
35 mv ${SRCDIR} ${SRCDIR}-${abi}-double || die
36 done
37 }
38
39 src_compile()
40 {
41 local abi
42 for abi in ${MULTILIB_ABIS}
43 do
44 cd ${SRCDIR}-${abi}-single
45 oldmconfigure --enable-shared --enable-threads --enable-float || die
46 oldmmake || die
47
48 cd ${SRCDIR}-${abi}-double
49 oldmconfigure --enable-shared --enable-threads || die
50 oldmmake || die
51 done
52 }
53
54 src_install ()
55 {
56 local abi
57 for abi in ${MULTILIB_ABIS}
58 do
59 cd ${SRCDIR}-${abi}-single
60 oldmmake DESTDIR=${BINDIR} install || die
61
62 cd ${SRCDIR}-${abi}-double
63 oldmmake DESTDIR=${BINDIR} install || die
64
65 # there's a small bug in minstalldocs,
66 # so we move this dir back ${SRCDIR}
67 mv ${SRCDIR}-${abi}double ${SRCDIR}-${abi} || die
68
69 oldminstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die
70 done
71 }