Annotation of /branches/R11-stable/extras/fftw3/fftw3-3.3.3-r1.smage2
Parent Directory | Revision Log
Revision 15115 -
(hide annotations)
(download)
Wed Jan 2 10:44:06 2013 UTC (11 years, 8 months ago) by niro
File size: 1738 byte(s)
Wed Jan 2 10:44:06 2013 UTC (11 years, 8 months ago) by niro
File size: 1738 byte(s)
-release branches/R11-stable
1 | niro | 14182 | # $Id$ |
2 | |||
3 | PNAME="fftw3" | ||
4 | PVER="3.3.3" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="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 | oldmunpack ${SRCFILE} || die | ||
32 | mv ${SRCDIR} ${SRCDIR}-${abi}-single || die | ||
33 | |||
34 | oldmunpack ${SRCFILE} || die | ||
35 | mv ${SRCDIR} ${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 | abi-${abi} oldmconfigure --enable-shared --enable-threads --enable-float || die | ||
46 | abi-${abi} oldmmake || die | ||
47 | |||
48 | cd ${SRCDIR}-${abi}-double | ||
49 | abi-${abi} oldmconfigure --enable-shared --enable-threads || die | ||
50 | abi-${abi} oldmmake || die | ||
51 | done | ||
52 | } | ||
53 | |||
54 | src_check() | ||
55 | { | ||
56 | local abi | ||
57 | for abi in ${MULTILIB_ABIS} | ||
58 | do | ||
59 | cd ${SRCDIR}-${abi}-single | ||
60 | abi-${abi} oldmmake -k check || die | ||
61 | |||
62 | cd ${SRCDIR}-${abi}-double | ||
63 | abi-${abi} oldmmake -k check || die | ||
64 | done | ||
65 | } | ||
66 | |||
67 | src_install() | ||
68 | { | ||
69 | local abi | ||
70 | for abi in ${MULTILIB_ABIS} | ||
71 | do | ||
72 | cd ${SRCDIR}-${abi}-single | ||
73 | abi-${abi} oldmmake DESTDIR=${BINDIR} install || die | ||
74 | |||
75 | cd ${SRCDIR}-${abi}-double | ||
76 | abi-${abi} oldmmake DESTDIR=${BINDIR} install || die | ||
77 | |||
78 | # there's a small bug in minstalldocs, | ||
79 | # so we move this dir back ${SRCDIR} | ||
80 | mv ${SRCDIR}-${abi}-double ${SRCDIR}-${abi} || die | ||
81 | done | ||
82 | |||
83 | minstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die | ||
84 | } |