diff options
Diffstat (limited to 'converters/p5-Unicode-MapUTF8')
-rw-r--r-- | converters/p5-Unicode-MapUTF8/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/converters/p5-Unicode-MapUTF8/Makefile b/converters/p5-Unicode-MapUTF8/Makefile index 8e9b08199a85..fe4b4d35a363 100644 --- a/converters/p5-Unicode-MapUTF8/Makefile +++ b/converters/p5-Unicode-MapUTF8/Makefile @@ -17,7 +17,7 @@ COMMENT= Perl class that implements conversion between arbitrary charsets BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Unicode/Map.pm:${PORTSDIR}/converters/p5-Unicode-Map \ ${SITE_PERL}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String \ ${SITE_PERL}/${PERL_ARCH}/Unicode/Map8.pm:${PORTSDIR}/converters/p5-Unicode-Map8 \ - ${SITE_PERL}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode + ${JCODE}:${PORTSDIR}/japanese/p5-Jcode RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -25,4 +25,12 @@ PERL_CONFIGURE= yes MAN3= Unicode::MapUTF8.3 MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.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> |