-
Notifications
You must be signed in to change notification settings - Fork 3
/
Build.PL
65 lines (61 loc) · 2.23 KB
/
Build.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
57
58
59
60
61
62
63
64
65
use strict;
use warnings;
use lib "inc";
use My::Builder;
#### Stadard Module::Build stuff
my $build = My::Builder->new(
module_name => 'Alien::Box2D',
all_from => 'lib/Alien/Box2D.pm',
dist_author => 'FROGGS <[email protected]>',
license => 'perl',
requires => {
'File::Spec' => '0',
'File::ShareDir' => '0',
},
build_requires => { #need to have for running: ./Build (install|test)
'File::Spec' => '0',
'File::ShareDir' => '0',
'File::Path' => '0',
'File::Copy' => '0',
'File::Fetch' => '0',
'File::Find' => '0',
'Digest::SHA' => '0',
'Archive::Extract' => '0',
'Archive::Zip' => '0',
'Module::Build' => '0.36',
'Text::Patch' => '0',
'ExtUtils::CppGuess' => '0',
'ExtUtils::Liblist' => '0',
},
configure_requires => { #need to have for running: perl Build.PL
'File::Spec' => '0',
'File::ShareDir' => '0',
'File::Path' => '0',
'File::Copy' => '0',
'File::Fetch' => '0',
'File::Find' => '0',
'Digest::SHA' => '0',
'Archive::Extract' => '0',
'Module::Build' => '0.36',
'Text::Patch' => '0',
},
meta_merge => {
resources => {
bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Alien-Box2D',
repository => 'http://github.com/PerlGameDev/Alien-Box2D'
}
},
create_readme => 1,
share_dir => 'sharedir',
# sharedir is used for storing compiled/prebuilt binaries of Box2D lib
# avoid using 'share' name as M::B does not handle well paths like /xx/yy/share/zz/ww/share/xx
);
$build->create_build_script();
#### clean build_done stamp; force rebuild when running 'Build'
$build->clean_build_done_marker;
#### check what options we have for our platform
$build->notes('build_params', { dirname => 'Box2D_v2.1.2/Box2D/Box2D',
url => 'http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/box2d/Box2D_v2.1.2.zip',
sha1sum => 'b1f09f38fc130ae6c17e1767747a3a82bf8e517f',
patches => [ 'patches/mingw-minmax.diff' ],
} );