# New ports collection makefile for:	p5-WebService-Dropbox
# Date created:		2011-11-25
# Whom:			Lung-Pin Chang <changlp@cs.nctu.edu.tw>
#
# $FreeBSD: branches/RELEASE_8_4_0/net/p5-WebService-Dropbox/Makefile 303347 2012-08-29 19:00:21Z culot $
#

PORTNAME=	WebService-Dropbox
PORTVERSION=	1.09
CATEGORIES=	net perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:ASKADNA
PKGNAMEPREFIX=	p5-

MAINTAINER=	changlp@cs.nctu.edu.tw
COMMENT=	Perl interface to Dropbox API

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
		p5-Net-OAuth>=0.27:${PORTSDIR}/net/p5-Net-OAuth \
		p5-String-Random>=0.22:${PORTSDIR}/devel/p5-String-Random
RUN_DEPENDS:=	${BUILD_DEPENDS}

OPTIONS_DEFINE=	LWP
LWP_DESC=	Use LWP instead of Furl

PERL_CONFIGURE=	yes

MAN3=		WebService::Dropbox.3

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLWP}
BUILD_DEPENDS+=	p5-LWP-Protocol-https>=6.02:${PORTSDIR}/www/p5-LWP-Protocol-https \
		p5-libwww>=6.02:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS+=	p5-LWP-Protocol-https>=6.02:${PORTSDIR}/www/p5-LWP-Protocol-https \
		p5-libwww>=6.02:${PORTSDIR}/www/p5-libwww
.else
BUILD_DEPENDS+=	p5-Furl>=0.38:${PORTSDIR}/www/p5-Furl
RUN_DEPENDS+=	p5-Furl>=0.38:${PORTSDIR}/www/p5-Furl
.endif

.include <bsd.port.mk>
