aboutsummaryrefslogtreecommitdiff
path: root/japanese/another-htmllint
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/another-htmllint')
-rw-r--r--japanese/another-htmllint/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/japanese/another-htmllint/Makefile b/japanese/another-htmllint/Makefile
index 5c73272a915c..0f75570113a5 100644
--- a/japanese/another-htmllint/Makefile
+++ b/japanese/another-htmllint/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Another HTML-lint (all messages are written in Japanese)
RUN_DEPENDS= ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
- ${SITE_PERL}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode
+ ${JCODE}:${PORTSDIR}/japanese/p5-Jcode
USE_ZIP= YES
WRKSRC= ${WRKDIR}
@@ -50,4 +50,12 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500801
+JCODE= ${SITE_PERL}/${PERL_ARCH}/Jcode.pm
+.else
+JCODE= ${SITE_PERL}/Jcode.pm
+.endif
+
+.include <bsd.port.post.mk>