-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
33 lines (27 loc) · 816 Bytes
/
Makefile.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
use ExtUtils::MakeMaker;
use 5.008;
if ((join ":", stat "urlader.c") eq (join ":", stat "Urlader.c")) {
print <<EOF;
***
*** Non-POSIX filesystem detected, moved urlader.c to urlader-orig.c
***
EOF
rename "urlader.c", "urlader-orig.c";
}
$LIBS = $^O eq "MSWin32" ? "-lshell32 -lshlwapi" : "";
WriteMakefile(
dist => {
PREOP => 'pod2text Urlader.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
COMPRESS => 'gzip -9v',
SUFFIX => '.gz',
},
depend => { "Urlader.c" => "urlib.h urlib.c liblzf/lzf_d.c liblzf/lzf_c_best.c" },
NAME => "Urlader",
VERSION_FROM => "Urlader.pm",
EXE_FILES => ["bin/urlader-util"],
LIBS => [$LIBS],
PREREQ_PM => {
common::sense => 0,
Win32::Exe => 0.17,
},
);