View | Details | Raw Unified | Return to bug 217858
Collapse All | Expand All

(-)www/minio-client/Makefile (-4 / +17 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	minio-client
3
PORTNAME=	minio-client
4
PORTVERSION=	${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g}
4
PORTVERSION=	${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g}
5
PORTREVISION=	1
5
CATEGORIES=	www
6
CATEGORIES=	www
6
7
7
MAINTAINER=	jhixson@gmail.com
8
MAINTAINER=	jhixson@gmail.com
Lines 12-17 Link Here
12
BUILD_DEPENDS=	go>=1.7:lang/go \
13
BUILD_DEPENDS=	go>=1.7:lang/go \
13
		bash:shells/bash
14
		bash:shells/bash
14
15
16
OPTIONS_DEFINE=	MC
17
18
MC_DESC=	Install as mc
19
20
.include <bsd.port.options.mk>
21
22
.if ${PORT_OPTIONS:MMC}
23
MC=	mc
24
.else
25
MC=	${PORTNAME}
26
.endif
27
15
USE_GITHUB=	yes
28
USE_GITHUB=	yes
16
GH_ACCOUNT=	minio
29
GH_ACCOUNT=	minio
17
GH_PROJECT=	mc
30
GH_PROJECT=	mc
Lines 20-34 Link Here
20
MAKE_ENV=	GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go
33
MAKE_ENV=	GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go
21
34
22
STRIP=		# stripping can break go binaries
35
STRIP=		# stripping can break go binaries
23
PLIST_FILES=	bin/${PORTNAME}
36
PLIST_FILES=	bin/${MC}
24
37
25
do-build:
38
do-build:
26
	@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
39
	@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
27
	${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
40
	${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
28
		-ldflags "-X main.GitDescribe=v${PORTVERSION}" -o bin/${PORTNAME}
41
		-ldflags "-X main.GitDescribe=v${PORTVERSION}" -o bin/${MC}
29
42
30
do-install:
43
do-install:
31
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/bin/${PORTNAME} \
44
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/bin/${MC} \
32
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
45
		${STAGEDIR}${PREFIX}/bin/${MC}
33
46
34
.include <bsd.port.mk>
47
.include <bsd.port.mk>

Return to bug 217858