freebsd-ports/devel/jiri/Makefile
Tobias Kortkamp a91d65363f
Mk/Uses/ninja.mk: Add support for devel/samurai (D29353)
Samurai is a Ninja-compatible build tool with fewer dependencies
than Ninja.  Hook it to the framework via a new NINJA_DEFAULT.

This also adds %p to NINJA_STATUS to make Ninja or Samurai print
the percentage of completed jobs to make it easier to eyeball how
much of the build is done.

PR:		254678
Exp-run	by:	antoine
2021-04-20 08:57:34 +02:00

32 lines
878 B
Makefile

PORTNAME= jiri
PORTVERSION= g${TIMESTAMP:S/-/./g:C/T.*//g}
CATEGORIES= devel
MASTER_SITES= LOCAL/swills
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
DIST_SUBDIR= jiri
MAINTAINER= swills@FreeBSD.org
COMMENT= Tool for multi-repo development
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= cmake:devel/cmake
RUN_DEPENDS= git:devel/git
USES= go:modules ninja:build
GITHASH= 1eee1043d12d1baabae7f2466cc0b1646395e32c
TIMESTAMP= 2020-08-28T00:00:00.000000
PLIST_FILES= bin/jiri
USE_GITHUB= nodefault
GH_TUPLE= golang:net:a7b16738d86b:golang_net/vendor/golang.org/x/net \
golang:sync:112230192c58:golang_sync/vendor/golang.org/x/sync
GO_TARGET= ./cmd/jiri
GO_BUILDFLAGS= -ldflags="\
-s -w \
-X fuchsia.googlesource.com/jiri/version.GitCommit=${GITHASH} \
-X fuchsia.googlesource.com/jiri/version.BuildTime=${TIMESTAMP}"
.include <bsd.port.mk>