aboutsummaryrefslogtreecommitdiffstats
path: root/www/fswiki/Makefile
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2005-07-26 23:44:15 +0800
committerkuriyama <kuriyama@FreeBSD.org>2005-07-26 23:44:15 +0800
commit3277db2040421082463be5f5e1a68ba2dd4170bf (patch)
tree670903ab1fdbae5cff29c6075603847591b127df /www/fswiki/Makefile
parent3dfdc339dea9ccf275a4dee1269cb0c211534b27 (diff)
downloadfreebsd-ports-gnome-3277db2040421082463be5f5e1a68ba2dd4170bf.tar.gz
freebsd-ports-gnome-3277db2040421082463be5f5e1a68ba2dd4170bf.tar.zst
freebsd-ports-gnome-3277db2040421082463be5f5e1a68ba2dd4170bf.zip
Unbreak conditionalized Jcode.pm path.
Reported by: pointyhat via kris
Diffstat (limited to 'www/fswiki/Makefile')
-rw-r--r--www/fswiki/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/www/fswiki/Makefile b/www/fswiki/Makefile
index 104f94b5f904..4fd348a6adb8 100644
--- a/www/fswiki/Makefile
+++ b/www/fswiki/Makefile
@@ -15,7 +15,7 @@ DISTNAME= wiki${PORTVERSION:S|.|_|g}
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= FreeStyle Wiki (perl based wiki clone)
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode \
+RUN_DEPENDS= ${JCODE}:${PORTSDIR}/japanese/p5-Jcode \
${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template
USE_ZIP= yes
@@ -39,4 +39,12 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/wiki.cgi ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/setup.sh ${DATADIR}
-.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>