diff options
author | sobomax <sobomax@FreeBSD.org> | 2003-02-21 00:33:26 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2003-02-21 00:33:26 +0800 |
commit | 1e607f868b5505e10fabe70f19c1c6e491e4d1a0 (patch) | |
tree | 5a6539846b1be0d7960d421883f382b1984b610b /www | |
parent | 548c9ae86f72ebe1570fffefb0f5b4dd3f3c0ab1 (diff) | |
download | freebsd-ports-gnome-1e607f868b5505e10fabe70f19c1c6e491e4d1a0.tar.gz freebsd-ports-gnome-1e607f868b5505e10fabe70f19c1c6e491e4d1a0.tar.zst freebsd-ports-gnome-1e607f868b5505e10fabe70f19c1c6e491e4d1a0.zip |
Conditionalise several dependencies on PERL_LEVEL to make those ports more
friendly for perl-5.8.0, which has those dependencies included into the
base distribution.
Sponsired by: Porta Software Ltd
Diffstat (limited to 'www')
-rw-r--r-- | www/p5-Apache-Session/Makefile | 11 | ||||
-rw-r--r-- | www/p5-libwww/Makefile | 23 |
2 files changed, 22 insertions, 12 deletions
diff --git a/www/p5-Apache-Session/Makefile b/www/p5-Apache-Session/Makefile index 5d0024c859de..04a0e7d8bab8 100644 --- a/www/p5-Apache-Session/Makefile +++ b/www/p5-Apache-Session/Makefile @@ -15,8 +15,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= frank@exit.com -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/mod_perl.pm:${CPORTSDIR}/apache13-modssl-modperl RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -48,4 +47,10 @@ MAN3= Apache::Session.3 \ Apache::Session::Store::Sybase.3 \ Apache::Session::Sybase.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +.endif + +.include <bsd.port.post.mk> diff --git a/www/p5-libwww/Makefile b/www/p5-libwww/Makefile index 9757a8382aaa..1db243909806 100644 --- a/www/p5-libwww/Makefile +++ b/www/p5-libwww/Makefile @@ -15,15 +15,9 @@ DISTNAME= libwww-perl-${PORTVERSION} MAINTAINER= petef@FreeBSD.org -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI.pm:${PORTSDIR}/net/p5-URI \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI.pm:${PORTSDIR}/net/p5-URI \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser -RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI.pm:${PORTSDIR}/net/p5-URI \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ +RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI.pm:${PORTSDIR}/net/p5-URI \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser PERL_CONFIGURE= yes @@ -41,8 +35,19 @@ MAN3= Bundle::LWP.3 File::Listing.3 HTML::Form.3 HTTP::Cookies.3 \ MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 +RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 +.endif + post-patch: @${PERL} -pi -e "s,/usr/lib/sendmail,/usr/sbin/sendmail," \ ${WRKSRC}/lib/LWP/Protocol/mailto.pm -.include <bsd.port.mk> +.include <bsd.port.post.mk> |