-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalienfile
44 lines (32 loc) · 964 Bytes
/
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
use alienfile;
plugin 'PkgConfig' => 'dontpanic';
plugin 'Probe::CommandLine' => (
command => 'dontpanic',
secondary => 1,
);
share {
start_url 'https://alienfile.org/dontpanic/';
digest SHA256 => 'd6f7603c0bf0d3994631bdeab59d38fa7ce5eccf53be04047dd1e83b312a7b5a';
plugin Download => (
version => qr/([0-9\.]+)\.tar\.gz$/,
);
plugin Extract => 'tar.gz';
plugin 'Build::Autoconf';
test [ '%{make} check' ];
ffi {
build [
# TODO: under windows, dll is installed in bin. setting --bindir doesn't seem to work for the .dll
# only the .exe.
'%{configure} --enable-shared --disable-static --libdir=%{.install.autoconf_prefix}/dynamic',
'%{make}',
'%{make} install',
];
test [ '%{make} check' ];
};
};
meta->after_hook(
$_ => sub {
my($build) = @_;
$build->runtime_prop->{legacy}->{inline_auto_include} = ['libdontpanic.h'];
},
) for qw( gather_share gather_system );