summaryrefslogtreecommitdiffstats
path: root/net/rclone/Makefile
blob: a01104b7908e7e43410e2bd3ac870e2e499cda97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $FreeBSD$

PORTNAME=	rclone
PORTVERSION=	1.33
DISTVERSIONPREFIX=      v
CATEGORIES=	net

MAINTAINER=     wg@FreeBSD.org
COMMENT=        Sync files to and from various cloud services

LICENSE=	MIT

USES=		go
USE_GITHUB=     yes
GH_ACCOUNT=	ncw
GH_SUBDIR=	src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}
GH_TUPLE+=	\
		google:google-api-go-client:0caa379:googleapigoclient/src/google.golang.org/api \
		ncw:go-acd:56da839:goacd/src/github.com/ncw/go-acd \
		ncw:swift:b964f2c:swift/src/github.com/ncw/swift \
		aws:aws-sdk-go:87a2cff:awssdkgo/src/github.com/aws/aws-sdk-go \
		mreiferson:go-httpclient:31f0106:gohttpclient/src/github.com/mreiferson/go-httpclient \
		google:go-querystring:9235644:goquerystring/src/github.com/google/go-querystring \
		GoogleCloudPlatform:google-cloud-go:80a7732:gcloudgolang/src/cloud.google.com/go \
		golang:oauth2:3c3a985:oauth2/src/golang.org/x/oauth2 \
		golang:net:6d3beae:net/src/golang.org/x/net \
		golang:text:a7c0236:text/src/golang.org/x/text \
		skratchdot:open-golang:75fb7ed:opengolang/src/github.com/skratchdot/open-golang \
		stacktic:dropbox:58f839b:dropbox/src/github.com/stacktic/dropbox \
		tsenart:tb:19f4c3d:tb/src/github.com/tsenart/tb \
		VividCortex:ewma:c595cd8:ewma/src/github.com/VividCortex/ewma \
		golang:crypto:8e06e8d:crypto/src/golang.org/x/crypto \
		pkg:errors:a887431:errors/src/github.com/pkg/errors \
		bazil:fuse:371fbbd:fuse/src/bazil.org/fuse \
		spf13:cobra:9c28e4b:cobra/src/github.com/spf13/cobra \
		spf13:pflag:c7e63cf:pflag/src/github.com/spf13/pflag \
		rfjakob:eme:601d0e2:eme/src/github.com/rfjakob/eme \
		ogier:pflag:45c278a:opflag/src/github.com/ogier/pflag \
		Unknwon:goconfig:5aa4f8c:goconfig/src/github.com/Unknwon/goconfig \
		cpuguy83:go-md2man:a65d4d2:gomd2man/src/github.com/cpuguy83/go-md2man

PLIST_FILES=	bin/rclone

STRIP=          # stripping can break go binaries

do-build:
	@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}; ${SETENV} GOPATH=${WRKSRC} go build .

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud