Debian Codegraph @

Makefile.PL

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 use strict;
2 use warnings;
3 use ExtUtils::MakeMaker;
4 use Config;
5 use PDL::Core::Dev;
6
7 ##############################
8 # Try to use Alien::FFTW3 - but if it's not present
9 # fall back to pkg-config. This is so that
10 # a Debian package won't have to include Alien::FFTW3.
11 my $cflags;
12 my $libs;
13
14 $cflags = '';
•15 $libs = '-lfftw3f -lfftw3';
16
17 my @package = (qw(fftw3.pd FFTW3 PDL::FFTW3), undef, 1);
18 my %descriptor = pdlpp_stdargs(\@package);
19
20 $descriptor{VERSION_FROM} = 'fftw3.pd';
21
22 # I support single and double precision FFTW calls, so both fftw and fftw3f
23 push @{$descriptor{LIBS} }, $libs;
24
25 $descriptor{INC} = '' unless defined $descriptor{INC};
26 $descriptor{INC} .= " $cflags";
27
28 $descriptor{PREREQ_PM} = {
29 'PDL' => '2.097', # fixed type-selecting
30 };
31 $descriptor{CONFIGURE_REQUIRES} = {
32 'PDL' => '2.097',
33 'IPC::Run' =>0,
34 # 'Alien::FFTW3' =>0,
35 };
36 $descriptor{BUILD_REQUIRES} = {'PDL::PP'=>0};
37 $descriptor{TEST_REQUIRES} = {'Test::More'=>'0.88'};
38 $descriptor{AUTHOR} = "Dima Kogan <dima\@secretsauce.net>, Craig DeForest <deforest\@boulder.swri.edu>";
39 $descriptor{ABSTRACT} = "PDL interface to the Fastest Fourier Transform in the West";
40 $descriptor{LICENSE} = "perl";
41 $descriptor{MIN_PERL_VERSION} = "5.016";
42
43 $descriptor{META_MERGE} = {
44 "meta-spec" => { version => 2 },
45 resources => {
46 bugtracker => { web => 'https://github.com/PDLPorters/pdl-fftw3/issues' },
47 repository => {
48 web => 'https://github.com/PDLPorters/pdl-fftw3',
49 url => 'git://github.com/PDLPorters/pdl-fftw3.git',
50 type => 'git',
51 },
52 x_IRC => 'irc://irc.perl.org/#pdl',
53 },
54 prereqs => {
55 develop => {
56 requires => {
57 'CPAN::Changes' => 0,
58 },
59 },
60 test => {
61 requires => {
62 'Test::More' => '0.98',
63 },
64 },
65 },
66 };
67
68 WriteMakefile( %descriptor );
69
70 sub MY::postamble { pdlpp_postamble(\@package) }