forked from andygrundman/Audio-Scan
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile.PL
More file actions
76 lines (72 loc) · 2.89 KB
/
Copy pathMakefile.PL
File metadata and controls
76 lines (72 loc) · 2.89 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
use strict;
use warnings;
use ExtUtils::MakeMaker::CPANfile;
my (@CCFLAGS, @INC, @LIBS);
push @INC, '-Iinclude', '-Isrc';
if( $^O eq 'MSWin32' ) {
push @LIBS, '-Lwin32/ -lzlib';
}
else {
push @CCFLAGS, '-Wdeclaration-after-statement';
push @LIBS, '-lz';
}
my $inc_files = join(' ', glob 'include/*.h');
my $src_files = join(' ', glob 'src/*.c');
WriteMakefile(
NAME => 'Audio::Scan',
VERSION_FROM => 'lib/Audio/Scan.pm',
ABSTRACT_FROM => 'lib/Audio/Scan.pm',
AUTHOR => 'Andy Grundman <andy@hybridized.org>',
CCFLAGS => "$Config::Config{ccflags} " . join(' ', @CCFLAGS),
INC => join(' ', @INC),
LIBS => [ join(' ', @LIBS) ],
depend => { 'Scan.c' => "$inc_files $src_files" },
LICENSE => 'gpl_2',
META_MERGE => {
# Workaround for
# https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/issues/208
license => [
'bsd', # include/mpc.h src/ape.c include/pstdint.h
'freebsd', # include/pinttypes.h
'mit', # include/ape.h src/ape.c
'open_source', # buffer.c (SPDX id: SSH-OpenSSH)
'zlib', # include/md5.h src/md5.c
],
'meta-spec' => {
version => 2,
url => 'https://metacpan.org/pod/CPAN::Meta::Spec',
},
resources => {
homepage => 'https://github.com/LMS-Community/Audio-Scan/',
license => [
'https://raw.githubusercontent.com/LMS-Community/Audio-Scan/refs/heads/master/COPYING',
'https://raw.githubusercontent.com/LMS-Community/Audio-Scan/refs/heads/master/COPYING.ape',
'https://raw.githubusercontent.com/LMS-Community/Audio-Scan/refs/heads/master/COPYING.buffer',
'https://raw.githubusercontent.com/LMS-Community/Audio-Scan/refs/heads/master/COPYING.mpc',
'https://raw.githubusercontent.com/LMS-Community/Audio-Scan/refs/heads/master/COPYING.pinttypes',
'https://raw.githubusercontent.com/LMS-Community/Audio-Scan/refs/heads/master/COPYING.pstdint',
],
bugtracker => {
web => 'https://github.com/LMS-Community/Audio-Scan/issues',
},
repository => {
url => 'https://github.com/LMS-Community/Audio-Scan.git',
web => 'https://github.com/LMS-Community/Audio-Scan/',
type => 'git',
},
},
},
dist => {
PREOP => q(\
set -o errexit; \
pod2gfm --force $(VERSION_FROM) README.md; \
git status --porcelain README.md \
| ( \
if grep -F .; then \
echo 'Uncommitted generated files (listed above)'; \
exit 1; \
fi; \
); \
),
},
);