aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-PerlPoint-Converters
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2004-06-14 20:19:49 +0800
committermat <mat@FreeBSD.org>2004-06-14 20:19:49 +0800
commita55786ac8af9485f732025dae84b59997177a04e (patch)
tree3b012195a943a14b0a5dcd21198006af199427db /textproc/p5-PerlPoint-Converters
parentc3da92f6107d91ef6d9d74d7c57a37690af768cc (diff)
downloadfreebsd-ports-gnome-a55786ac8af9485f732025dae84b59997177a04e.tar.gz
freebsd-ports-gnome-a55786ac8af9485f732025dae84b59997177a04e.tar.zst
freebsd-ports-gnome-a55786ac8af9485f732025dae84b59997177a04e.zip
Fix build for perl < 5.8
Reported by: pointyhat via kris
Diffstat (limited to 'textproc/p5-PerlPoint-Converters')
-rw-r--r--textproc/p5-PerlPoint-Converters/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/textproc/p5-PerlPoint-Converters/Makefile b/textproc/p5-PerlPoint-Converters/Makefile
index 730215ac18a8..fee27a29bfa1 100644
--- a/textproc/p5-PerlPoint-Converters/Makefile
+++ b/textproc/p5-PerlPoint-Converters/Makefile
@@ -30,7 +30,7 @@ MAN3= Bundle::PerlPoint.3 \
.if !defined(NOPORTDOCS)
post-patch:
- @cd ${WRKSRC}; ${MV} pp2html_styles images doc ; ${LN} -s doc/pp2html_styles ; ${LN} -s doc/images
+ @cd ${WRKSRC}; ${CP} -R pp2html_styles images doc
@${PERL} -pi -e 's!../(images|pp2html_styles)!$$1!g' ${WRKSRC}/doc/*.cfg
post-build:
@@ -41,4 +41,10 @@ post-install:
@cd ${WRKSRC}/doc; ${FIND} . | ${CPIO} -padm ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>