ports/net/minio/server/Makefile

24 lines
705 B
Makefile

COMMENT = object storage server compatible with Amazon S3 APIs
V = 2022-10-24T18-35-07Z
CID = fc6c7949727ec261cd57fbdb02fa7575d0fd8e61
SHORTCID = ${CID:C/(............).*/\1/}
MODGO_MODNAME = github.com/minio/minio
MODGO_VERSION = v0.0.0-${V:C/[-TZ]//g}-${SHORTCID}
DISTNAME = minio-${MODGO_VERSION}
PKGNAME = minio-0.${V:C/T.*//:S/-//g}
REVISION = 0
MODGO_LDFLAGS = -s -w \
-X github.com/minio/minio/cmd.Version=${V:C/T([0-9]+)-([0-9]+)-([0-9]+)/T\1:\2:\3/} \
-X github.com/minio/minio/cmd.ReleaseTag=RELEASE.${V} \
-X github.com/minio/minio/cmd.CommitID=${CID} \
-X github.com/minio/minio/cmd.ShortCommitID=${SHORTCID}
SUBST_VARS = VARBASE
.include "modules.inc"
.include <bsd.port.mk>