Lines 1-26
Link Here
|
1 |
# $FreeBSD: head/www/minio/Makefile 429568 2016-12-26 19:36:25Z swills $ |
1 |
# $FreeBSD: head/www/minio/Makefile 429568 2016-12-26 19:36:25Z swills $ |
2 |
|
2 |
|
3 |
PORTNAME= minio |
3 |
PORTNAME= minio |
4 |
PORTVERSION= 2016.12.13.17.19.42 |
4 |
PORTVERSION= 2017.02.16.01.47.30 |
5 |
CATEGORIES= www |
5 |
CATEGORIES= www |
6 |
|
6 |
|
7 |
MAINTAINER= swills@FreeBSD.org |
7 |
MAINTAINER= swills@FreeBSD.org |
8 |
COMMENT= Amazon S3 compatible object storage server |
8 |
COMMENT= Amazon S3 compatible object storage server |
9 |
|
9 |
|
|
|
10 |
LICENSE= APACHE20 |
11 |
|
10 |
BUILD_DEPENDS= go>=1.7:lang/go \ |
12 |
BUILD_DEPENDS= go>=1.7:lang/go \ |
11 |
bash:shells/bash |
13 |
bash:shells/bash |
12 |
|
14 |
|
13 |
USES= gmake |
15 |
USES= compiler go |
14 |
|
16 |
|
15 |
USE_GITHUB= yes |
17 |
USE_GITHUB= yes |
16 |
GH_TAGNAME= RELEASE.2016-12-13T17-19-42Z |
18 |
GH_TAGNAME= RELEASE.2017-02-16T01-47-30Z |
17 |
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} |
19 |
GH_SUBDIR= src/github.com/minio/minio |
|
|
20 |
GH_TUPLE= \ |
21 |
hashicorp:go-version:03c5bf6:go_version/src/github.com/hashicorp/go-version \ |
22 |
minio:mc:RELEASE.2017-02-06T20-16-19Z:mc/src/github.com/minio/mc |
18 |
MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go |
23 |
MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go |
19 |
|
24 |
|
20 |
STRIP= # stripping can break go binaries |
25 |
STRIP= # stripping can break go binaries |
21 |
PLIST_FILES= bin/minio |
26 |
PLIST_FILES= bin/minio |
22 |
|
27 |
|
|
|
28 |
USE_RC_SUBR= minio |
29 |
|
30 |
do-build: |
31 |
cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} \ |
32 |
go build -ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/minio |
33 |
|
23 |
do-install: |
34 |
do-install: |
24 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
35 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
25 |
|
36 |
|
26 |
.include <bsd.port.mk> |
37 |
.include <bsd.port.pre.mk> |
|
|
38 |
|
39 |
.if ${COMPILER_TYPE} == clang |
40 |
BUILD_ENV= CC=clang |
41 |
.endif |
42 |
|
43 |
.include <bsd.port.post.mk> |