-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalienfile
46 lines (39 loc) · 1.08 KB
/
alienfile
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
use alienfile;
plugin PkgConfig => 'zix-0';
eval {
require Alien::Meson;
Alien::Meson->_apply_destdir_prefix_hack;
};
share {
requires 'Alien::Build::Plugin::Download::GitLab';
requires 'Alien::Meson' => '0.06';
requires 'Alien::Ninja';
# https://gitlab.com/drobilla/zix
plugin 'Download::GitLab' => (
gitlab_user => 'drobilla',
gitlab_project => 'zix',
);
plugin Extract => 'tar.gz';
meta->prop->{destdir} = 1;
my $build_dir = '_build';
build [
map {
my $linkage = $_; (
sub {
my $build = shift;
Alien::Build::CommandSequence->new([
Alien::Meson->exe, 'setup',
"-Ddefault_library=$linkage",
'--prefix=%{.install.prefix}',
'--libdir=lib',
'--buildtype=release',
'-Ddocs=disabled', # no docs
"${build_dir}_$linkage",
])->execute($build);
},
[ '%{ninja}', qw(-C), "${build_dir}_$linkage", "test" ],
[ '%{ninja}', qw(-C), "${build_dir}_$linkage", 'install' ],
) } qw(shared static)
];
plugin 'Gather::IsolateDynamic';
}