alienfile

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
__ANON__
1.0
CRAP 1.0
↑ Summary blib/lib/Alien/libFLAC.pm »
1 1 ▶use alienfile;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 probe [ 'pkg-config --exists flac' ];
4  
5 1 ▶share {
Subroutine __ANON__: called CC=1 SCAR=0.0
6 1 start_url 'https://downloads.xiph.org/releases/flac/';
7 1 plugin 'Download' => (
8 filter => qr/^flac-.*\.tar\.xz$/,
9 version => qr/([0-9\.]+)/,
10 );
11 1 plugin 'Extract' => 'tar.xz';
12 1 plugin 'Build::Autoconf';
13 1 build [
14 '%{configure} --enable-shared --enable-static',
15 '%{make}',
16 '%{make} install',
17 ];
18 1 gather [
19 [ 'pkg-config --cflags flac', \'%{.runtime.cflags}' ],
20 [ 'pkg-config --libs flac', \'%{.runtime.libs}' ],
21 [ 'pkg-config --cflags --static flac', \'%{.runtime.cflags_static}' ],
22 [ 'pkg-config --libs --static flac', \'%{.runtime.libs_static}' ],
23 ];
24 1 plugin 'Gather::IsolateDynamic';
25 1 };
26  
27 1 ▶sys {
Subroutine __ANON__: called CC=1 SCAR=0.0
28 # the system static libs often aren't compiled with fPIC, so just link dynamically
29 1 gather [
30 [ 'pkg-config --cflags flac', \'%{.runtime.cflags}' ],
31 [ 'pkg-config --libs flac', \'%{.runtime.libs}' ],
32 ];
33 1 };
↑ Summary blib/lib/Alien/libFLAC.pm »