Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7168 - (show annotations) (download)
Wed Sep 29 22:34:05 2010 UTC (13 years, 7 months ago) by niro
File size: 1376 byte(s)
auto added: ver bump to 3.2.2-r2
1 # $Id: fftw3-3.2.2-r1.smage2 3508 2009-10-22 22:34:33Z niro $
2
3 PNAME="fftw3"
4 PVER="3.2.2"
5 PBUILD="r2"
6
7 PCATEGORIE="sci-libs"
8 STATE="unstable"
9
10 DESCRIPTION="FTW is a C subroutine library for computing the discrete Fourier transform (DFT)."
11 HOMEPAGE="http://www.fftw.org/"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PNAME/3/}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}"
17
18 SRC_URI=(
19 http://www.fftw.org/${SRCFILE}
20 mirror://${PNAME}/${SRCFILE}
21 )
22
23 #UP2DATE="updatecmd ftp://ftp.fftw.org/pub/fftw/ | grep ${PNAME/3/}-3.[0-9] | lasttarball gz"
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 munpack ${SRCFILE} || die
29 mv ${SRCDIR} ${SRCDIR}-single || die
30
31 munpack ${SRCFILE} || die
32 mv ${SRCDIR} ${SRCDIR}-double || die
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}-single
38 mconfigure --enable-shared --enable-threads --enable-float || die
39 mmake || die
40
41 cd ${SRCDIR}-double
42 mconfigure --enable-shared --enable-threads || die
43 mmake || die
44 }
45
46 src_install ()
47 {
48 cd ${SRCDIR}-single
49 mmake DESTDIR=${BINDIR} install || die
50
51 cd ${SRCDIR}-double
52 mmake DESTDIR=${BINDIR} install || die
53
54 # there's a small bug in minstalldocs,
55 # so we move this dir back ${SRCDIR}
56 mv ${SRCDIR}-double ${SRCDIR} || die
57
58 minstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die
59 }