--- perl/Makefile.PL.orig	Sun Oct 21 23:32:15 2012
+++ perl/Makefile.PL	Fri Nov 23 23:48:58 2012
@@ -12,6 +12,7 @@ Getopt::Long::Configure qw/ pass_through /;
 
 my $localedir = '';
 GetOptions("localedir=s" => \$localedir);
+use Config;
 
 sub MY::postamble {
 	return <<'MAKE_FRAG';
@@ -58,5 +59,6 @@ WriteMakefile(
 	PM		=> \%pm,
 	PM_FILTER	=> qq[\$(PERL) -pe "s<\\Q++LOCALEDIR++\\E><$localedir>"],
 	MAKEFILE	=> 'perl.mak',
-	INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'
+	INSTALLARCHLIB	=> $Config{installsitearch},
+	INSTALLSITEMAN3DIR => '$(SITEPREFIX)/man/man3p'
 );
