Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9329 - (hide annotations) (download)
Sat Nov 26 13:15:37 2011 UTC (12 years, 5 months ago) by niro
File size: 1492 byte(s)
-fixed typos
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 niro 9329 oldmunpack ${SRCFILE} || die
32 niro 9328 mv ${SRCDIR}-${abi} ${SRCDIR}-${abi}-single || die
33    
34 niro 9329 oldmunpack ${SRCFILE} || die
35 niro 9328 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 niro 9329 oldmconfigure --enable-shared --enable-threads --enable-float || die
46     oldmmake || die
47 niro 9328
48     cd ${SRCDIR}-${abi}-double
49 niro 9329 oldmconfigure --enable-shared --enable-threads || die
50     oldmmake || die
51 niro 9328 done
52     }
53    
54     src_install ()
55     {
56     local abi
57     for abi in ${MULTILIB_ABIS}
58     do
59     cd ${SRCDIR}-${abi}-single
60 niro 9329 oldmmake DESTDIR=${BINDIR} install || die
61 niro 9328
62     cd ${SRCDIR}-${abi}-double
63 niro 9329 oldmmake DESTDIR=${BINDIR} install || die
64 niro 9328
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 niro 9329 oldminstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die
70 niro 9328 done
71     }