| 1 | 1 | ▶ | use alienfile; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | |||||||||||
| 3 | 1 | plugin 'Probe::Vcpkg' => ( | |||||||||
| 4 | name => 'hunspell', | ||||||||||
| 5 | ffi_name => 'libhunspell', | ||||||||||
| 6 | include => 'hunspell', | ||||||||||
| 7 | ); | ||||||||||
| 8 | 1 | plugin 'PkgConfig' => ( | |||||||||
| 9 | pkg_name => 'hunspell', | ||||||||||
| 10 | ); | ||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | share { | ||||||||
|
Subroutine
__ANON__: called CC=4 SCAR=14.1
| |||||||||||
| 13 | |||||||||||
| 14 | 1 | requires 'Alien::Build' => '0.75'; | |||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | plugin 'Prefer::BadVersion' => ['1.7.0'] if $^O eq 'MSWin32'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | |||||||||||
| 18 | 1 | ▶ | my $version = $^O eq 'MSWin32' ? '1.6.2.1' : '1.7.0.1'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | |||||||||||
| 20 | 1 | plugin 'Download' => ( | |||||||||
| 21 | # trying to autoreconf + patch + whatnot hunspell has jus become too much | ||||||||||
| 22 | # trouble, so we're using a prepatched copy that already has been autoreconf'd | ||||||||||
| 23 | url => "https://github.com/PerlAlien/hunspell/archive/alien-$version.tar.gz", | ||||||||||
| 24 | version => qr/^([0-9\.]+)\\.[0-9]+.tar\.gz$/, | ||||||||||
| 25 | ); | ||||||||||
| 26 | |||||||||||
| 27 | 1 | plugin 'Extract' => 'tar.gz'; | |||||||||
| 28 | 1 | plugin 'Build::Autoconf' => ( | |||||||||
| 29 | ffi => 1, | ||||||||||
| 30 | ); | ||||||||||
| 31 | |||||||||||
| 32 | 1 | my @acflags; | |||||||||
| 33 | 1 | ▶ | unshift @acflags, '--disable-nls' if $^O =~ /^(?:MSWin32|darwin|freebsd)/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | |||||||||||
| 35 | 1 | build [ | |||||||||
| 36 | "%{configure} --disable-shared --enable-static @acflags", | ||||||||||
| 37 | '%{make}', | ||||||||||
| 38 | '%{make} install', | ||||||||||
| 39 | ]; | ||||||||||
| 40 | |||||||||||
| 41 | 1 | ▶ | ffi { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 42 | 1 | build [ | |||||||||
| 43 | "%{configure} --disable-static --enable-shared --libdir=%{.install.autoconf_prefix}/dynamic @acflags", | ||||||||||
| 44 | '%{make}', | ||||||||||
| 45 | '%{make} install', | ||||||||||
| 46 | ]; | ||||||||||
| 47 | 1 | }; | |||||||||
| 48 | 1 | }; | |||||||||