-
Notifications
You must be signed in to change notification settings - Fork 1
/
alienfile
46 lines (35 loc) · 1014 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
45
46
#! perl
use strict;
use warnings;
use alienfile;
use Path::Tiny;
plugin PkgConfig => 'xpa';
probe [ 'pkg-config --exists xpa' ];
share {
start_url 'https://github.com/ericmandel/xpa/releases/latest';
plugin Download => (
filter => qr/(?:\d+\.\d+\.\d+).tar.gz$/,
version => qr/(\d+\.\d+\.\d+).tar.gz$/,
);
plugin Extract => 'tar.gz';
patch sub {
my ( $build ) = @_;
# Makefile.in uses INSTALL_ROOT instead of DESTDIR
path( 'Makefile.in' )->edit_lines(
sub {
s/^INSTALL_ROOT\s*=\s*$//;
s/INSTALL_ROOT/DESTDIR/g;
} );
};
plugin 'Build::Autoconf';
build [
'%{configure}',
'%{make} CFLAGS=-fPIC',
'%{make} install',
];
};
gather [
[ 'pkg-config --modversion libcxcregion', \'%{.runtime.version}' ],
[ 'pkg-config --cflags libcxcregion', \'%{.runtime.cflags}' ],
[ 'pkg-config --libs libcxcregion', \'%{.runtime.libs}' ],
];