Debian Codegraph @

debian/patches/fftw-config.patch

raw symbols SCIP
1 Description: hardcode FFTW3 build config because is known values
2 Author: Ed J <[email protected]>
3 Forwarded: not-needed
4
5 --- a/Makefile.PL
6 +++ b/Makefile.PL
7 @@ -11,36 +11,8 @@ use PDL::Core::Dev;
8 my $cflags;
9 my $libs;
10
11 -if( eval "require Alien::FFTW3" ) {
12 - ## Ensure at least version 3.3; die if we can't get it.
13 - Alien::FFTW3->VERSION(3.3);
14 - my $p = Alien::FFTW3->precision;
15 - unless($p->{'d'} and $p->{'f'}) {
16 - die "PDL::FFTW3 - needs both double-precision and single-precision fftw3 libraries\n\t(libfftw3 and libfftw3f). Alien::FFTW3 found only ".(join(",",keys %$p))."\n";
17 - }
18 - $cflags = Alien::FFTW3->cflags;
19 - $libs = Alien::FFTW3->libs;
20 -} else {
21 - print "Alien::FFTW3 not found. Using pkg-config instead...\n";
22 -
23 - require IPC::Run;
24 $cflags = '';
25 - $libs = '';
26 - my $err = '';
27 - IPC::Run::run( ['pkg-config',
28 - '--cflags',
29 - 'fftw3f >= 3.3', 'fftw3 >= 3.3'],
30 - \undef,
31 - \$cflags, \$err ) or die "Couldn't get the fftw flags: '$err'";
32 -
33 - IPC::Run::run( ['pkg-config',
34 - '--libs',
35 - 'fftw3f >= 3.3', 'fftw3 >= 3.3'],
36 - \undef,
37 - \$libs, \$err ) or die "Couldn't get the fftw libs: '$err'";
38 -
39 - chomp($cflags, $libs);
40 -}
41 + $libs = '-lfftw3f -lfftw3';
42
43 my @package = (qw(fftw3.pd FFTW3 PDL::FFTW3), undef, 1);
44 my %descriptor = pdlpp_stdargs(\@package);