Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
use strict;

use warnings;
use ExtUtils::MakeMaker 6.46 qw(WriteMakefile);
use File::Spec::Functions;
use Getopt::Long;

my (@CCFLAGS, @INC, @LIBS);

push @INC, '-Iinclude', '-Isrc';
if( $^O eq 'MSWin32' ) {
push @LIBS, '-Lwin32/ -lzlib';
push @LIBS, '-Lwin32/ -lzlib';
}
else {
push @CCFLAGS, '-Wdeclaration-after-statement';
push @LIBS, '-lz';
push @CCFLAGS, '-Wdeclaration-after-statement';
push @LIBS, '-lz';
}

my $inc_files = join(' ', glob 'include/*.h');
Expand Down Expand Up @@ -40,5 +38,28 @@ WriteMakefile(
'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',
},
},
},
);