3 use ExtUtils::MakeMaker;
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',
16 CONFIGURE_REQUIRES => {
18 ExtUtils::MakeMaker 0/,
21 LIBS => ['-lopusfile'],
22 INC => '-I/usr/include/opus -I/usr/local/include/opus',
26 repository => 'https://git.ieval.ro/?p=audio-opusfile.git',
31 if (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
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
47 ExtUtils::Constant::WriteConstants(
48 NAME => 'Audio::Opusfile',
51 C_FILE => 'const-c.inc',
52 XS_FILE => 'const-xs.inc',
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: $!";