forked from pool/perl-Text-Hunspell
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
![]() |
Index: Text-Hunspell-2.02/Makefile.PL
|
||
|
===================================================================
|
||
|
--- Text-Hunspell-2.02.orig/Makefile.PL 2010-10-24 13:23:11.000000000 +0200
|
||
|
+++ Text-Hunspell-2.02/Makefile.PL 2011-04-01 20:04:27.688784790 +0200
|
||
|
@@ -11,8 +11,8 @@ use Devel::CheckLib;
|
||
|
my $dlext = $Config{dlext} || 'so';
|
||
|
my $candidate_lib;
|
||
|
for (split " " => $Config{libpth}) {
|
||
|
- my $lib_path = "$_/libhunspell.$dlext";
|
||
|
- #warn "Checking $lib_path\n";
|
||
|
+ my $lib_path = glob("$_/libhunspell*.$dlext");
|
||
|
+ warn "Checking $lib_path\n";
|
||
|
if (-e $lib_path) {
|
||
|
$candidate_lib++;
|
||
|
warn "Found '$lib_path'. Good.\n";
|
||
|
@@ -33,7 +33,7 @@ if (0 == $candidate_lib) {
|
||
|
}
|
||
|
|
||
|
check_lib_or_exit(
|
||
|
- lib => 'hunspell',
|
||
|
+ lib => 'hunspell-1.3',
|
||
|
header => 'hunspell/hunspell.h',
|
||
|
);
|
||
|
|
||
|
@@ -44,7 +44,7 @@ my $CC = $ENV{"CXX"} || 'g++';
|
||
|
WriteMakefile(
|
||
|
NAME => 'Text::Hunspell',
|
||
|
VERSION_FROM => 'Hunspell.pm',
|
||
|
- LIBS => ['-lhunspell'],
|
||
|
+ LIBS => ['-lhunspell-1.3'],
|
||
|
CC => $CC,
|
||
|
LD => '$(CC)',
|
||
|
PREREQ_PM => {}, # e.g., Module::Name => 1.1
|