Annotation of /branches/magellan-next/core/fftw3/fftw3-3.3-r2.smage2
Parent Directory | Revision Log
Revision 9332 -
(hide annotations)
(download)
Sat Nov 26 13:25:19 2011 UTC (12 years, 10 months ago) by niro
File size: 1545 byte(s)
Sat Nov 26 13:25:19 2011 UTC (12 years, 10 months ago) by niro
File size: 1545 byte(s)
-fixed a typo
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 | 9330 | mv ${SRCDIR} ${SRCDIR}-${abi}-single || die |
33 | niro | 9328 | |
34 | niro | 9329 | oldmunpack ${SRCFILE} || die |
35 | niro | 9330 | mv ${SRCDIR} ${SRCDIR}-${abi}-double || die |
36 | niro | 9328 | 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 | 9331 | abi-${abi} oldmconfigure --enable-shared --enable-threads --enable-float || die |
46 | abi-${abi} oldmmake || die | ||
47 | niro | 9328 | |
48 | cd ${SRCDIR}-${abi}-double | ||
49 | niro | 9331 | abi-${abi} oldmconfigure --enable-shared --enable-threads || die |
50 | abi-${abi} 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 | 9331 | abi-${abi} oldmmake DESTDIR=${BINDIR} install || die |
61 | niro | 9328 | |
62 | cd ${SRCDIR}-${abi}-double | ||
63 | niro | 9331 | abi-${abi} 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 | niro | 9332 | mv ${SRCDIR}-${abi}-double ${SRCDIR}-${abi} || die |
68 | niro | 9328 | |
69 | niro | 9329 | oldminstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die |
70 | niro | 9328 | done |
71 | } |