File: Makefile.PL

package info (click to toggle)
libb-hooks-op-annotation-perl 0.44-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 268 kB
  • ctags: 762
  • sloc: ansic: 181; perl: 11; makefile: 2
file content (64 lines) | stat: -rw-r--r-- 1,824 bytes parent folder | download | duplicates (2)
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
61
62
63
64
use 5.008000;

use strict;
use warnings;

use Config;
use ExtUtils::Depends;
use ExtUtils::MakeMaker;

our $OPTIMIZE;

if ($Config{gccversion}) {
    $OPTIMIZE = '-O3 -Wall -W';
    $OPTIMIZE .= ' -g -Wdeclaration-after-statement' if (-d 'dev');
} elsif ($Config{osname} eq 'MSWin32') {
    $OPTIMIZE = '-O2 -W4';
} else {
    $OPTIMIZE = $Config{optimize};
}

my $package = ExtUtils::Depends->new('B::Hooks::OP::Annotation');

$package->install('hook_op_annotation.h');
$package->add_xs('Annotation.xs');
$package->add_pm('lib/B/Hooks/OP/Annotation.pm' => '$(INST_LIB)/B/Hooks/OP/Annotation.pm');
$package->save_config('Files.pm');

our %MAKEFILE_VARS = $package->get_makefile_vars();

my $clean = $MAKEFILE_VARS{clean};

$clean->{FILES} .= ' Files.pm' if ($clean);

WriteMakefile(
    NAME          => 'B::Hooks::OP::Annotation',
    VERSION_FROM  => 'lib/B/Hooks/OP/Annotation.pm',
    PREREQ_PM     => { 'ExtUtils::Depends' => '0.304' },
    ABSTRACT_FROM => 'lib/B/Hooks/OP/Annotation.pm',
    AUTHOR        => 'chocolateboy <chocolate@cpan.org>',
    LIBS          => [''],
    DEFINE        => '',
    INC           => '-I.',
    FUNCLIST => [
        qw(
          op_annotate
          op_annotation_new
          op_annotation_get
          op_annotation_delete
          op_annotation_group_new
          op_annotation_group_free
        )
    ],
    DL_FUNCS => { 'B::Hooks::OP::Annotation' => [] },
    OPTIMIZE => $OPTIMIZE,
    (eval($ExtUtils::MakeMaker::VERSION) >= 6.31 ? (LICENSE => 'perl') : ()),
    (eval($ExtUtils::MakeMaker::VERSION) >= 6.46 ?
        (META_MERGE => {
            configure_requires => { 'ExtUtils::Depends' => '0.304' },
            resources          => { repository => 'http://github.com/chocolateboy/B-Hooks-OP-Annotation' },
        }) :
        ()
    ),
    %MAKEFILE_VARS
);