]> iEval git - audio-opusfile.git/blame - Makefile.PL
Add Audio::Opusfile::Head
[audio-opusfile.git] / Makefile.PL
CommitLineData
a3f1cbda
MG
1use 5.014000;
2use Devel::CheckLib;
3use ExtUtils::MakeMaker;
4
5check_lib_or_exit
6 lib => 'opusfile';
7
8WriteMakefile(
9 NAME => 'Audio::Opusfile',
10 VERSION_FROM => 'lib/Audio/Opusfile.pm',
11 ABSTRACT_FROM => 'lib/Audio/Opusfile.pm',
12 AUTHOR => 'Marius Gavrilescu <marius@ieval.ro>',
13 MIN_PERL_VERSION => '5.14.0',
14 LICENSE => 'perl',
15 SIGN => 1,
16 CONFIGURE_REQUIRES => {
17 qw/Devel::CheckLib 0
18 ExtUtils::MakeMaker 0/,
19 },
20 PREREQ_PM => {},
21 LIBS => ['-lopusfile'],
77f5c7e4 22 INC => '-I/usr/include/opus -I/usr/local/include/opus',
a3f1cbda
MG
23 META_ADD => {
24 dynamic_config => 1,
25 resources => {
26 repository => 'https://git.ieval.ro/?p=audio-opusfile.git',
27 },
28 }
29);
30
31if (eval {require ExtUtils::Constant; 1}) {
32 # If you edit these definitions to change the constants used by this module,
33 # you will need to use the generated const-c.inc and const-xs.inc
34 # files to replace their "fallback" counterparts before distributing your
35 # changes.
36 my @names = (qw(OPUS_CHANNEL_COUNT_MAX OP_ABSOLUTE_GAIN OP_DEC_FORMAT_FLOAT
37 OP_DEC_FORMAT_SHORT OP_DEC_USE_DEFAULT OP_EBADHEADER
38 OP_EBADLINK OP_EBADPACKET OP_EBADTIMESTAMP OP_EFAULT OP_EIMPL
39 OP_EINVAL OP_ENOSEEK OP_ENOTAUDIO OP_ENOTFORMAT OP_EOF
40 OP_EREAD OP_EVERSION OP_FALSE OP_GET_SERVER_INFO_REQUEST
41 OP_HEADER_GAIN OP_HOLE OP_HTTP_PROXY_HOST_REQUEST
42 OP_HTTP_PROXY_PASS_REQUEST OP_HTTP_PROXY_PORT_REQUEST
43 OP_HTTP_PROXY_USER_REQUEST OP_PIC_FORMAT_GIF
44 OP_PIC_FORMAT_JPEG OP_PIC_FORMAT_PNG OP_PIC_FORMAT_UNKNOWN
45 OP_PIC_FORMAT_URL OP_SSL_SKIP_CERTIFICATE_CHECK_REQUEST
46 OP_TRACK_GAIN));
47 ExtUtils::Constant::WriteConstants(
48 NAME => 'Audio::Opusfile',
49 NAMES => \@names,
50 DEFAULT_TYPE => 'IV',
51 C_FILE => 'const-c.inc',
52 XS_FILE => 'const-xs.inc',
53 );
54
55}
56else {
57 use File::Copy;
58 use File::Spec;
59 foreach my $file ('const-c.inc', 'const-xs.inc') {
60 my $fallback = File::Spec->catfile('fallback', $file);
61 copy ($fallback, $file) or die "Can't copy $fallback to $file: $!";
62 }
63}
This page took 0.028091 seconds and 4 git commands to generate.