-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
64 lines (61 loc) · 1.85 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
use strict;
use warnings;
use Alien::Base::ModuleBuild;
$Alien::Base::ModuleBuild::Verbose = 1;
$Alien::Base::ModuleBuild::Force = 1;
my $build = Alien::Base::ModuleBuild->new(
module_name => 'Alien::Keystone',
license => 'mit',
dist_author => 'Vikas N. Kumar <[email protected]>',
dist_abstract => 'Alien module for Keystone Engine from www.keystone-engine.org',
create_readme => 1,
configure_requires => {
'Module::Build' => 0,
'Alien::Base::ModuleBuild' => '0.029',
},
build_requires => {
'Alien::Base::ModuleBuild' => '0.029',
'Module::Build' => 0,
'Test::More' => 0,
},
requires => {
'Alien::Base' => '0.029',
},
alien_name => 'keystone',
alien_repository => {
protocol => 'http',
host => 'github.com',
location => '/keystone-engine/keystone/archive/',
exact_filename => 'master.tar.gz',
exact_version => '1.0',
c_compiler_required => 1,
},
alien_msys => 1,
alien_bin_requires => {
'Alien::CMake' => 0,
},
alien_build_commands => [
'cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBS_ONLY=1 ' .
'-DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="all" '.
'-DCMAKE_INSTALL_PREFIX="%s" -G"Unix Makefiles"',
'make clean',
'make all',
],
alien_install_commands => [
'make install PREFIX=%s',
],
meta_merge => {
resources => {
repository => 'https://github.com/selectiveintellect/p5-alien-keystone',
bugtracker => 'https://github.com/selectiveintellect/p5-alien-keystone/issues',
},
},
);
$build->create_build_script;
$build->dispatch('distmeta');
$build->dispatch('manifest');
$build->dispatch('build');
__END__
#### COPYRIGHT: Selective Intellect LLC.
#### AUTHOR: Vikas N Kumar
#### DATE: 13 September 2016