Annotation of /trunk/core/fftw3/fftw3-3.2.1-r1.smage2
Parent Directory | Revision Log
Revision 1606 -
(hide annotations)
(download)
Tue May 12 15:53:34 2009 UTC (15 years, 1 month ago) by niro
File size: 1321 byte(s)
Tue May 12 15:53:34 2009 UTC (15 years, 1 month ago) by niro
File size: 1321 byte(s)
auto added: ver bump to 3.2.1-r1
1 | niro | 1606 | # $Id$ |
2 | |||
3 | PNAME="fftw3" | ||
4 | PVER="3.2.1" | ||
5 | PBUILD="r1" | ||
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |