1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/databases/cockroach/Makefile
Yuri Victorovich 3541239e48 databases/cockroach: Update to 1.1.5
Port changes:
* Changed to DISTVERSION
* Adjusted do-build

PR:		226270
Submitted by:	James Nugent <freebsd@jen20.com>
Approved by:	tcberner (mentor, implicit)
2018-03-01 20:38:58 +00:00

47 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= cockroach
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.5
CATEGORIES= databases
MASTER_SITES= https://binaries.cockroachdb.com/
EXTRACT_SUFX= .src.tgz
MAINTAINER= freebsd@jen20.com
COMMENT= Cloud-native SQL database that survive disasters
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/src/github.com/cockroachdb/cockroach/LICENSE
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= "Only supported on amd64"
BUILD_DEPENDS= autoconf:devel/autoconf \
bash:shells/bash \
cmake:devel/cmake \
go:lang/go
USES= gmake
USE_RC_SUBR= cockroach
NO_CCACHE= yes
PLIST_FILES= bin/cockroach
USERS= cockroach
GROUPS= cockroach
post-patch:
@${REINPLACE_CMD} -e 's|-DCMAKE_CXX_FLAGS=-DNDEBUG)|-DCMAKE_CXX_FLAGS=-DNDEBUG) -DFAIL_ON_WARNINGS=OFF|g' \
${WRKSRC}/src/github.com/cockroachdb/cockroach/build/common.mk
do-build:
@${SETENV} -i PATH="${PATH}" \
${MAKE_CMD} -C ${WRKSRC} buildoss GOVERS=.*
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/cockroachdb/cockroach/cockroach ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>