[Midnightbsd-cvs] mports: Makefile: fix depends
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 11 18:20:50 EDT 2008
Log Message:
-----------
fix depends
Modified Files:
--------------
mports/www/p5-libwww:
Makefile (r1.4 -> r1.5)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/www/p5-libwww/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -L www/p5-libwww/Makefile -L www/p5-libwww/Makefile -u -r1.4 -r1.5
--- www/p5-libwww/Makefile
+++ www/p5-libwww/Makefile
@@ -19,9 +19,6 @@
LICENSE= perl
BUILD_DEPENDS= ${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
- ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
- ${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
- ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \
${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser
RUN_DEPENDS= ${BUILD_DEPENDS}
@@ -47,5 +44,17 @@
${WRKSRC}/lib/LWP/Protocol/mailto.pm
@${PERL} -pi -e 's!(?=prompt\()!1 || !g' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
+ ${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
+ ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
+ ${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
+ ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+.endif
+
+.include <bsd.port.post.mk>
More information about the Midnightbsd-cvs
mailing list