Changeset View
Changeset View
Standalone View
Standalone View
www/minio-client/Makefile
Show All 23 Lines | |||||
.else | .else | ||||
MC= ${PORTNAME} | MC= ${PORTNAME} | ||||
.endif | .endif | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= minio | GH_ACCOUNT= minio | ||||
GH_PROJECT= mc | GH_PROJECT= mc | ||||
GH_TAGNAME= RELEASE.2019-01-25T23-38-19Z | GH_TAGNAME= RELEASE.2019-01-25T23-38-19Z | ||||
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${GH_PROJECT} | GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${GH_PROJECT} | ||||
MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go | |||||
COMMIT_ID= 2de3b657b99610056a0e9d47055f1794f03a110f | COMMIT_ID= 2de3b657b99610056a0e9d47055f1794f03a110f | ||||
tobik: MAKE_ENV is probably not needed here anymore. | |||||
PLIST_FILES= bin/${MC} | GO_BUILDFLAGS= -ldflags '\ | ||||
-X github.com/minio/mc/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} \ | |||||
-X github.com/minio/mc/cmd.ReleaseTag=${GH_TAGNAME} \ | |||||
-X github.com/minio/mc/cmd.CommitID=${COMMIT_ID} \ | |||||
-X github.com/minio/mc/cmd.GOPATH=${WRKSRC} -s -w' | |||||
GO_TARGET= :${MC} | |||||
do-build: | PLIST_FILES= bin/${MC} | ||||
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ | |||||
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} CGO_ENABLED=0 go build -v -x \ | |||||
--ldflags '-X github.com/minio/mc/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} -X github.com/minio/mc/cmd.ReleaseTag=${GH_TAGNAME} -X github.com/minio/mc/cmd.CommitID=${COMMIT_ID} -X github.com/minio/mc/cmd.GOPATH=${WRKSRC} -s -w' -o ${WRKSRC}/bin/${MC} | |||||
do-install: | |||||
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/bin/${MC} \ | |||||
${STAGEDIR}${PREFIX}/bin/${MC} | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
MAKE_ENV is probably not needed here anymore.