3726f94254
This allows for port testing with lang/go-devel via GO_PORT, setting up the Go build environment in a single place, and is step one in simplifying Go ports that often define too complicated do-build targets themselves. USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and 'no_targets' for ports with composite builds that call 'go' themselves and do not need the do-build/do-install targets of USES=go. PR: 238849 Submitted by: dg@syrec.org (also D20745) Reviewed by: mat, tobik Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D20746
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cockroach
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.0.7
|
|
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
|
|
|
|
USES= gmake go libedit
|
|
|
|
USE_RC_SUBR= cockroach
|
|
|
|
NO_CCACHE= yes
|
|
|
|
PLIST_FILES= bin/cockroach
|
|
|
|
USERS= cockroach
|
|
GROUPS= cockroach
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|LDFLAGS: -ledit|LDFLAGS: -L${LOCALBASE}/lib -ledit|g' \
|
|
-e 's|CPPFLAGS: -Ishim|CPPFLAGS: -I${LOCALBASE}/include -Ishim|g' \
|
|
${WRKSRC}/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/unix/editline_unix.go
|
|
@${REINPLACE_CMD} -e 's|build -i -o|build -o|g' \
|
|
${WRKSRC}/src/github.com/cockroachdb/cockroach/Makefile
|
|
|
|
do-build:
|
|
@${SETENV} -i ${MAKE_ENV} \
|
|
${MAKE_CMD} -C ${WRKSRC} buildoss
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/cockroachdb/cockroach/cockroach ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|