Index: Portfile
===================================================================
--- Portfile	(revision 47914)
+++ Portfile	(working copy)
@@ -5,7 +5,7 @@
 
 name            perl5.8
 version         5.8.9
-revision        2
+revision        3
 categories      lang
 platforms       darwin freebsd linux
 maintainers     ricci openmaintainer
@@ -27,6 +27,8 @@
     sha1    19843b5a7585cf35d96c07dbcd419bbdd5813617 \
     rmd160  680004238d626ec985075e1b4519b7f0b34f57e5
 
+patchfiles  patch-perl.c.diff
+
 post-patch {
     reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Configure
     # Ensure that the ld value set in configure.args is used
@@ -44,9 +46,16 @@
     -D cppflags="\${CPPFLAGS}" \
     -D ldflags="\${LDFLAGS}" \
     -D vendorprefix='${prefix}' \
+    -D man1ext='1pm' \
     -D man3ext='3pm' \
     -D cc=\${CC} \
-    -D ld=\${CC}
+    -D ld=\${CC} \
+    -D man1dir='${prefix}/share/man/man1p' \
+    -D man3dir='${prefix}/share/man/man3p' \
+    -D siteman1dir='${prefix}/share/man/man1' \
+    -D siteman3dir='${prefix}/share/man/man3' \
+    -D vendorman1dir='${prefix}/share/man/man1' \
+    -D vendorman3dir='${prefix}/share/man/man3' 
 
 # Allow perl to find p5-* port installed by the last version
 if { [variant_isset threads] } {

