aboutsummaryrefslogtreecommitdiff
path: root/databases/cockroach/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2017-08-21 14:11:33 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2017-08-21 14:11:33 +0000
commit28436fc627e4dab680321d93824095909ecb0864 (patch)
tree74165f8dbbc7605d5f13dc49416c31c6794593cc /databases/cockroach/Makefile
parentaa4f89a494f43d1a7feefd3fd7e5d349c231b300 (diff)
downloadports-28436fc627e4dab680321d93824095909ecb0864.tar.gz
ports-28436fc627e4dab680321d93824095909ecb0864.zip
Notes
Diffstat (limited to 'databases/cockroach/Makefile')
-rw-r--r--databases/cockroach/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/databases/cockroach/Makefile b/databases/cockroach/Makefile
new file mode 100644
index 000000000000..285b0fee7f82
--- /dev/null
+++ b/databases/cockroach/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= cockroach
+PORTVERSION= 1.0.4
+DISTVERSIONPREFIX= v
+CATEGORIES= databases
+MASTER_SITES= https://binaries.cockroachdb.com/
+EXTRACT_SUFX= .src.tgz
+
+MAINTAINER= james@jen20.com
+COMMENT= Cloud-native SQL database that survive disasters
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/src/github.com/cockroachdb/cockroach/LICENSE
+
+BUILD_DEPENDS= bash:shells/bash \
+ cmake:devel/cmake \
+ go:lang/go
+
+USES= gmake
+
+USE_RC_SUBR= cockroach
+
+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
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/cockroachdb/cockroach/cockroach ${STAGEDIR}${PREFIX}/bin/
+
+.include <bsd.port.mk>