File: Makefile.PL

package info (click to toggle)
libtext-hunspell-perl 2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,032 kB
  • sloc: perl: 99; makefile: 8
file content (30 lines) | stat: -rwxr-xr-x 1,026 bytes parent folder | download
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
# Only EU::MM 6.52+ understands CONFIGURE_REQUIRES
use ExtUtils::MakeMaker 6.52;
use ExtUtils::PkgConfig;
use Config;

my $CC = $ENV{'CXX'} || 'c++';

my $shlib_location = ExtUtils::PkgConfig->libs_only_l('hunspell');
my $header_location = ExtUtils::PkgConfig->cflags_only_I('hunspell');

    WriteMakefile(
        NAME          => 'Text::Hunspell',
        VERSION_FROM  => 'Hunspell.pm',
        CCFLAGS       => "$Config{ccflags} $header_location",
        LIBS          => [$shlib_location],
        CC            => $CC,
        LD            => '$(CC)',
        CONFIGURE_REQUIRES => {
            'ExtUtils::MakeMaker' => '6.52',
            'ExtUtils::PkgConfig' => 0,
        },
        XSOPT         => '-C++',
        TYPEMAPS      => ['perlobject.map', 'typemap'],
        META_MERGE    => {
            resources => {
                repository => 'https://github.com/cosimo/perl5-text-hunspell',
            },
            keywords  => [ qw(hunspell spelling spell-checker text-processing) ],
        },
    );