Contents of /trunk/extras/fftw3/fftw3-3.3.8-r1.smage2
Parent Directory | Revision Log
Revision 31185 -
(show annotations)
(download)
Tue Jun 12 08:22:10 2018 UTC (6 years, 3 months ago) by niro
File size: 1779 byte(s)
Tue Jun 12 08:22:10 2018 UTC (6 years, 3 months ago) by niro
File size: 1779 byte(s)
auto added: ver bump to 3.3.8-r1
1 | # $Id$ |
2 | |
3 | PNAME="fftw3" |
4 | PVER="3.3.8" |
5 | PBUILD="r1" |
6 | |
7 | #PLEVEL="-pl2" |
8 | |
9 | PCAT="sci-libs" |
10 | |
11 | DESCRIPTION="FTW is a C subroutine library for computing the discrete Fourier transform (DFT)." |
12 | HOMEPAGE="http://www.fftw.org/" |
13 | |
14 | DEPEND=">= virtual/glibc" |
15 | |
16 | SRCFILE="${PNAME/3/}-${PVER}${PLEVEL}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}${PLEVEL}" |
18 | |
19 | sminclude multilib mbuild |
20 | |
21 | SRC_URI=( |
22 | http://www.fftw.org/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd http://www.fftw.org/download.html | grep 'the latest stable' | sed 's/.*Version \([0-9].*\)\ is.*/\1/'" |
27 | |
28 | src_prepare() |
29 | { |
30 | local abi |
31 | for abi in ${MULTILIB_ABIS} |
32 | do |
33 | oldmunpack ${SRCFILE} || die |
34 | mv ${SRCDIR} ${SRCDIR}-${abi}-single || die |
35 | |
36 | oldmunpack ${SRCFILE} || die |
37 | mv ${SRCDIR} ${SRCDIR}-${abi}-double || die |
38 | done |
39 | } |
40 | |
41 | src_compile() |
42 | { |
43 | local abi |
44 | for abi in ${MULTILIB_ABIS} |
45 | do |
46 | cd ${SRCDIR}-${abi}-single |
47 | abi-${abi} oldmconfigure --enable-shared --enable-threads --enable-float || die |
48 | abi-${abi} oldmmake || die |
49 | |
50 | cd ${SRCDIR}-${abi}-double |
51 | abi-${abi} oldmconfigure --enable-shared --enable-threads || die |
52 | abi-${abi} oldmmake || die |
53 | done |
54 | } |
55 | |
56 | src_check() |
57 | { |
58 | local abi |
59 | for abi in ${MULTILIB_ABIS} |
60 | do |
61 | cd ${SRCDIR}-${abi}-single |
62 | abi-${abi} oldmmake -k check || die |
63 | |
64 | cd ${SRCDIR}-${abi}-double |
65 | abi-${abi} oldmmake -k check || die |
66 | done |
67 | } |
68 | |
69 | src_install() |
70 | { |
71 | local abi |
72 | for abi in ${MULTILIB_ABIS} |
73 | do |
74 | cd ${SRCDIR}-${abi}-single |
75 | abi-${abi} oldmmake DESTDIR=${BINDIR} install || die |
76 | |
77 | cd ${SRCDIR}-${abi}-double |
78 | abi-${abi} oldmmake DESTDIR=${BINDIR} install || die |
79 | |
80 | # there's a small bug in minstalldocs, |
81 | # so we move this dir back ${SRCDIR} |
82 | mv ${SRCDIR}-${abi}-double ${SRCDIR}-${abi} || die |
83 | done |
84 | |
85 | minstalldocs AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog NEWS README TODO || die |
86 | } |