-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalienfile
More file actions
30 lines (24 loc) · 749 Bytes
/
alienfile
File metadata and controls
30 lines (24 loc) · 749 Bytes
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
use alienfile;
use autodie;
use Alien::automake;
use Env qw(@PATH);
unshift @PATH, Alien::automake->bin_dir;
share {
requires 'Alien::m4' => '0.08';
start_url 'mpfr-4.2.2/';
plugin 'Fetch::LocalDir';
plugin 'Extract::Directory';
plugin 'Build::Autoconf' => ();
build [
'%{configure} --enable-shared --enable-static',
'%{make}',
'%{make} check',
'%{make} install',
];
plugin 'Gather::IsolateDynamic';
};
gather sub {
my $build = shift;
$build->runtime_prop->{$_} = "-I@{[ $build->runtime_prop->{prefix} ]}/include " for qw( cflags cflags_static );
$build->runtime_prop->{$_} = "-L@{[ $build->runtime_prop->{prefix} ]}/lib -lmpfr -lgmp " for qw( libs libs_static );
};