-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.PL
57 lines (51 loc) · 1.46 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
use strict;
use warnings;
use ExtUtils::MakeMaker;
use PDL::Core::Dev;
use Prima::Config;
use Config;
my @package = qw(prima.pd Prima PDL::Drawing::Prima);
sub MY::postamble { pdlpp_postamble(\@package) }
my %hash = pdlpp_stdargs(\@package);
$hash{INC} .= join ' ', '', map qq{-I"$_"}, @{$Prima::Config::Config{incpaths}};
$hash{PM}{$_} = "\$(INST_LIBDIR)/Prima/$_" for glob 'pod/*.png';
# Link to Prima's dynamic library if there are any linker settings.
# (Big shout out to Dmitry, Rob, and Chris for helping me solve this!!)
$hash{LIBS}[0] .= qq{ "$Prima::Config::Config{libs}"} # for "place with space"
if $Prima::Config::Config{libs};
WriteMakefile(
%hash,
LICENSE => 'perl',
MIN_PERL_VERSION => '5.012', # Prima is minimum 5.12
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
PDL => '2.037',
Prima => '1.74',
},
PREREQ_PM => {
PDL => '2.037',
Prima => '1.57',
},
TEST_REQUIRES => {
'Test::More' => '0.88',
},
META_MERGE => {
"meta-spec" => { version => 2 },
dynamic_config => 0,
resources => {
x_IRC => 'irc://irc.perl.org/#pdl',
repository => {
type => 'git',
url => '[email protected]:dk/PDL-Drawing-Prima.git',
web => 'https://github.com/dk/PDL-Drawing-Prima',
},
bugtracker => {
web => 'https://github.com/PDLPorters/PDL-Drawing-Prima/issues',
},
},
no_index => {
file => ['README.md'],
directory => [qw(examples t)],
},
},
);