Magellan Linux

Annotation of /smage/branches/alx07x-stable/extras/fftw3/fftw3-3.3.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9622 - (hide annotations) (download)
Mon Jul 31 08:17:18 2017 UTC (6 years, 9 months ago) by niro
Original Path: smage/trunk/extras/fftw3/fftw3-3.3.6-r1.smage2
File size: 1576 byte(s)
auto added: ver bump to 3.3.6-r1
1 niro 9622 # $Id$
2    
3     PNAME="fftw3"
4     PVER="3.3.6"
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     ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*"
18     sminclude multilib alx-split
19    
20     SRC_URI=(
21     http://www.fftw.org/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd http://www.fftw.org/download.html | grep 'the latest stable' | sed 's/.*Version \([0-9].*\)\ is.*/\1/'"
26    
27     src_prepare()
28     {
29     local abi
30     for abi in ${MULTILIB_ABIS}
31     do
32     oldmunpack ${SRCFILE} || die
33     mv ${SRCDIR} ${SRCDIR}-${abi}-single || die
34    
35     oldmunpack ${SRCFILE} || die
36     mv ${SRCDIR} ${SRCDIR}-${abi}-double || die
37     done
38     }
39    
40     src_compile()
41     {
42     local abi
43     for abi in ${MULTILIB_ABIS}
44     do
45     cd ${SRCDIR}-${abi}-single
46     abi-${abi} oldmconfigure --enable-shared --enable-threads --enable-float || die
47     abi-${abi} oldmmake || die
48    
49     cd ${SRCDIR}-${abi}-double
50     abi-${abi} oldmconfigure --enable-shared --enable-threads || die
51     abi-${abi} oldmmake || die
52     done
53     }
54    
55     src_check()
56     {
57     local abi
58     for abi in ${MULTILIB_ABIS}
59     do
60     cd ${SRCDIR}-${abi}-single
61     abi-${abi} oldmmake -k check || die
62    
63     cd ${SRCDIR}-${abi}-double
64     abi-${abi} oldmmake -k check || die
65     done
66     }
67    
68     alx_generic_src_install()
69     {
70     local abi
71     for abi in ${MULTILIB_ABIS}
72     do
73     cd ${SRCDIR}-${abi}-single
74     abi-${abi} oldmmake DESTDIR=${BINDIR} install || die
75    
76     cd ${SRCDIR}-${abi}-double
77     abi-${abi} oldmmake DESTDIR=${BINDIR} install || die
78     done
79     }