-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.PL
35 lines (29 loc) · 1.07 KB
/
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
34
35
use strict;
use ExtUtils::MakeMaker qw(WriteMakefile);
use File::Spec::Functions;
use Getopt::Long;
my (@INC, @LIBPATH, @LIBS);
my $MYEXTLIB;
my $DEFINES = '-O2';
$DEFINES .= ' -Wall' unless $^O =~ /sun|solaris/i;
$DEFINES .= ' -Wno-unused-value -Wno-format-security' unless $^O =~ /Win32|sun|solaris/i;
unshift @INC, '-I. -I.. -Isrc -Iinclude';
my $inc_files = join(' ', glob 'include/*.h');
my $src_files = join(' ', glob 'src/*.c');
WriteMakefile(
NAME => 'MP3::Cut::Gapless',
VERSION_FROM => 'lib/MP3/Cut/Gapless.pm',
PREREQ_PM => {
'Audio::Cuefile::Parser' => 0,
'Digest::MD5' => 0,
'File::Path' => 0,
'File::Spec' => 0
},
ABSTRACT_FROM => 'lib/MP3/Cut/Gapless.pm',
AUTHOR => 'Andy Grundman <[email protected]>',
INC => join(' ', @INC),
LIBS => [ join(' ', @LIBPATH, @LIBS) ],
DEFINE => $DEFINES,
MYEXTLIB => $MYEXTLIB,
depend => { 'Gapless.c' => "$inc_files $src_files" },
);