Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8723 - (hide annotations) (download)
Thu Jul 28 00:36:05 2011 UTC (12 years, 11 months ago) by niro
File size: 1302 byte(s)
auto added: ver bump to 3.3-r1
1 niro 8723 # $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     SRC_URI=(
18     http://www.fftw.org/${SRCFILE}
19     mirror://${PNAME}/${SRCFILE}
20     )
21    
22     #UP2DATE="updatecmd ftp://ftp.fftw.org/pub/fftw/ | grep ${PNAME/3/}-3.[0-9] | lasttarball gz"
23     UP2DATE="updatecmd http://www.fftw.org/download.html | grep 'the latest stable' | sed 's/.*Version \([0-9].*\)\ is.*/\1/'"
24    
25     src_prepare()
26     {
27     munpack ${SRCFILE} || die
28     mv ${SRCDIR} ${SRCDIR}-single || die
29    
30     munpack ${SRCFILE} || die
31     mv ${SRCDIR} ${SRCDIR}-double || die
32     }
33    
34     src_compile()
35     {
36     cd ${SRCDIR}-single
37     mconfigure --enable-shared --enable-threads --enable-float || die
38     mmake || die
39    
40     cd ${SRCDIR}-double
41     mconfigure --enable-shared --enable-threads || die
42     mmake || die
43     }
44    
45     src_install ()
46     {
47     cd ${SRCDIR}-single
48     mmake DESTDIR=${BINDIR} install || die
49    
50     cd ${SRCDIR}-double
51     mmake DESTDIR=${BINDIR} install || die
52    
53     # there's a small bug in minstalldocs,
54     # so we move this dir back ${SRCDIR}
55     mv ${SRCDIR}-double ${SRCDIR} || die
56    
57     minstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die
58     }