File: Makefile.PL

package info (click to toggle)
libnet-sip-perl 0.838-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,132 kB
  • sloc: perl: 11,988; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (3)
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
use ExtUtils::MakeMaker;
use 5.010;
$^O =~m{Win32}i and die "OS unsupported";
if (eval 'use Socket 1.95; 1' 
    and ! eval 'Socket::inet_pton(Socket::AF_INET(),"0.0.0.0")') {
    warn "Socket::inet_pton failed on your system: $@";
    exit(0);
}

WriteMakefile(
    NAME => 'Net::SIP',
    VERSION_FROM => 'lib/Net/SIP.pm',
    PREREQ_PM => {
	# 'Net::DNS' => 0.56, # optional
	# 'IO::Socket::SSL' => 1.956,  # optional
	'Socket' => 1.95,
    },
    LICENSE => 'perl',
    $ExtUtils::MakeMaker::VERSION >= 6.46 ? (
        'META_MERGE' => {
            resources => {
                license     => 'http://dev.perl.org/licenses/',
                repository  => 'https://github.com/noxxi/p5-net-sip',
                homepage    => 'https://github.com/noxxi/p5-net-sip',
                bugtracker  => 'https://github.com/noxxi/p5-net-sip/issues',
            },
        },
    ):(),
);