Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9328 - (hide annotations) (download)
Sat Nov 26 13:14:51 2011 UTC (12 years, 6 months ago) by niro
File size: 1501 byte(s)
-rev bump, multilib rebuild
1 niro 9328 # $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     old_munpack ${SRCFILE} || die
32     mv ${SRCDIR}-${abi} ${SRCDIR}-${abi}-single || die
33    
34     old_munpack ${SRCFILE} || die
35     mv ${SRCDIR}-${abi} ${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     old_mconfigure --enable-shared --enable-threads --enable-float || die
46     old_mmake || die
47    
48     cd ${SRCDIR}-${abi}-double
49     old_mconfigure --enable-shared --enable-threads || die
50     old_mmake || 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     old_mmake DESTDIR=${BINDIR} install || die
61    
62     cd ${SRCDIR}-${abi}-double
63     old_mmake 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     old_minstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die
70     done
71     }