Contents of /trunk/extras/fftw/fftw-2.1.5-r7.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2145 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2145 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/fftw/fftw-2.1.5-r7.smage2,v 1.1 2008/05/31 17:48:24 niro Exp $ |
2 | |
3 | PNAME="fftw" |
4 | PVER="2.1.5" |
5 | PBUILD="r7" |
6 | |
7 | PCATEGORIE="sci-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="FTW is a C subroutine library for computing the discrete Fourier transform (DFT)." |
11 | HOMEPAGE="http://www.fftw.org/" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | http://www.fftw.org/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | # --enable-i386-hacks requires -fomit-frame-pointer to work properly |
26 | export CFLAGS="${CFLAGS} -fomit-frame-pointer" |
27 | export CXXFLAGS="${CFLAGS}" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | mv ${SRCDIR} ${SRCDIR}-single || die |
33 | |
34 | munpack ${SRCFILE} || die |
35 | mv ${SRCDIR} ${SRCDIR}-double || die |
36 | } |
37 | |
38 | src_compile() |
39 | { |
40 | local myconf |
41 | [[ ${ARCH} = i*86 ]] && myconf="--enable-i386-hacks" |
42 | |
43 | cd ${SRCDIR}-single |
44 | mconfigure \ |
45 | --enable-shared \ |
46 | --enable-threads \ |
47 | --enable-type-prefix \ |
48 | --enable-vec-recurse \ |
49 | --enable-float \ |
50 | ${myconf} \ |
51 | || die |
52 | |
53 | mmake || die |
54 | |
55 | cd ${SRCDIR}-double |
56 | mconfigure \ |
57 | --enable-shared \ |
58 | --enable-threads \ |
59 | --enable-type-prefix \ |
60 | --enable-vec-recurse \ |
61 | ${myconf} \ |
62 | || die |
63 | |
64 | mmake || die |
65 | } |
66 | |
67 | src_install () |
68 | { |
69 | cd ${SRCDIR}-single |
70 | mmake DESTDIR=${BINDIR} install || die |
71 | |
72 | cd ${SRCDIR}-double |
73 | mmake DESTDIR=${BINDIR} install || die |
74 | |
75 | # there's a small bug in minstalldocs, |
76 | # so we move this dir back ${SRCDIR} |
77 | mv ${SRCDIR}-double ${SRCDIR} || die |
78 | |
79 | minstalldocs AUTHORS COPYING COPYRIGHT ChangeLog NEWS README TODO || die |
80 | |
81 | # creating some neccessary symlinks |
82 | # includes |
83 | mlink dfftw.h /usr/include/fftw.h || die |
84 | mlink drfftw.h /usr/include/rfftw.h || die |
85 | mlink dfftw_threads.h /usr/include/fftw_threads.h || die |
86 | mlink drfftw_threads.h /usr/include/rfftw_threads.h || die |
87 | |
88 | # libs |
89 | mlink libdfftw.so /usr/$(mlibdir)/libfftw.so || die |
90 | mlink libdrfftw.so /usr/$(mlibdir)/librfftw.so || die |
91 | mlink libdfftw_threads.so /usr/$(mlibdir)/libfftw_threads.so || die |
92 | mlink libdrfftw_threads.so /usr/$(mlibdir)/librfftw_threads.so || die |
93 | |
94 | # missing include |
95 | minstallfile fortran/fftw_f77.i /usr/include || die |
96 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |