-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
66 lines (62 loc) · 1.79 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
66
use strict;
use warnings;
use 5.008001;
use Alien::Base::ModuleBuild;
use Alien::CMake;
my $builder = Alien::Base::ModuleBuild->new(
module_name => 'Alien::SFML',
dist_abstract => 'Build and install SFML 2.0 (RC)',
license => 'perl',
configure_requires => {
'Alien::Base::ModuleBuild' => 0,
'Alien::CMake' => 0,
'Module::Build' => 0.38,
},
requires => {
'perl' => '5.8.1',
'Alien::Base' => 0,
},
dist_author => 'Jake Bott <[email protected]>',
alien_name => 'sfml-audio sfml-network sfml-graphics sfml-window sfml-system',
alien_repository => {
protocol => 'local',
pattern => qr/SFML-sources\.tgz/,
},
alien_build_commands => [
'pwd',
Alien::CMake->config('prefix')
. '/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=%s CMakeLists.txt',
'make',
],
alien_install_commands => ['make install'],
extra_compiler_flags => Alien::CMake->config('cflags'),
extra_linker_flags => Alien::CMake->config('libs'),
alien_provides_libs => '-lsfml-audio -lsfml-network -lsfml-graphics -lsfml-window -lsfml-system',
meta_merge => {
'meta-spec' => {
version => '2',
url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
},
resources => {
bugtracker => {
web => 'http://github.com/jakeanq/perl-alien-sfml/issues',
mailto => '[email protected]',
},
repository => {
url => 'git://github.com/jakeanq/perl-alien-sfml.git',
web => 'http://github.com/jakeanq/perl-alien-sfml',
type => 'git',
},
},
},);
$builder->create_build_script;
=head1 COPYRIGHT
############################
# Copyright 2013 Jake Bott #
#=>----------------------<=#
# All Rights Reserved. #
# Part of Alien::SFML. #
#=>----------------------<=#
# See the LICENCE file #
############################
=cut