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