-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
60 lines (53 loc) · 1.79 KB
/
Build.PL
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
use 5.006;
use strict;
use warnings;
use Alien::Base::ModuleBuild;
use Cwd;
use Config;
my $perlbin = $Config{perlpath};
#my $pkg_generator = getcwd . "/inc/" . "pkg-config-generate.pl";
my $builder = Alien::Base::ModuleBuild->new(
module_name => 'Alien::AntTweakBar',
license => 'perl',
dist_author => q{basiliscos <dmol@gmx.com>},
dist_version_from => 'lib/Alien/AntTweakBar.pm',
configure_requires => {
'Alien::Base' => 0,
'Module::Build' => 0.38,
},
requires => {
'perl' => 5.006,
'Alien::Base' => 0,
},
test_requires => {
'Test::More' => 0,
},
add_to_cleanup => [ 'Alien-AntTweakBar-*' ],
alien_name => 'libanttweakbar',
# alien_repository => {
# protocol => 'http',
# host => 'downloads.sourceforge.net',
# location => '/project/anttweakbar/',
# exact_filename => 'AntTweakBar_116.zip',
# },
## For development, to save the download time,
## download the package once and put it in an 'inc' directory.
alien_repository => {
protocol => 'local',
location => 'inc',
exact_filename => 'AntTweakBar_116.zip',
exact_version => '1.16',
},
alien_build_commands => [
# $perlbin." $pkg_generator %p/libanttweakbar.pc %s $version",
"patch -p1 < ../../inc/makefile-so-linking.patch",
'make -C "%p/src"',
],
alien_install_commands => [
'install -D %p/lib/libanttweakbar.so %s/lib/libanttweakbar.so',
'install -D %p/include/AntTweakBar.h %s/include/AntTweakBar.h',
# 'install -D %p/libanttweakbar.pc %s/lib/pkgconfig/libanttweakbar.pc',
$perlbin.' -e "use Alien::AntTweakBar; print Alien::AntTweakBar::VERSION"',
],
);
$builder->create_build_script;