mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
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
42 lines
991 B
Makefile
42 lines
991 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= matterbridge
|
|
PORTVERSION= 1.14.4
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= net-im
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= Chat network bridge
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= 42wim
|
|
GH_SUBDIR= src/github.com/42wim/matterbridge
|
|
|
|
USE_RC_SUBR= matterbridge
|
|
|
|
MATTERBRIDGE_USER?= mattermost
|
|
MATTERBRIDGE_GROUP?= mattermost
|
|
USERS= ${MATTERBRIDGE_USER}
|
|
GROUPS= ${MATTERBRIDGE_GROUP}
|
|
SUB_LIST= \
|
|
MATTERBRIDGE_USER=${MATTERBRIDGE_USER} \
|
|
MATTERBRIDGE_GROUP=${MATTERBRIDGE_GROUP}
|
|
PLIST_SUB= \
|
|
MATTERBRIDGE_USER=${MATTERBRIDGE_USER} \
|
|
MATTERBRIDGE_GROUP=${MATTERBRIDGE_GROUP}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/src/github.com/42wim/matterbridge && \
|
|
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/matterbridge.toml.sample ${STAGEDIR}${PREFIX}/etc/matterbridge.toml.sample
|
|
|
|
.include <bsd.port.mk>
|