ports/net/dendrite/Makefile

37 lines
817 B
Makefile
Raw Normal View History

2023-08-16 22:26:55 +00:00
COMMENT = matrix homeserver written in Go
MODGO_MODNAME = github.com/matrix-org/dendrite
2023-09-08 05:21:37 +00:00
MODGO_VERSION = v0.13.2
2023-08-16 22:26:55 +00:00
DISTNAME = dendrite-${MODGO_VERSION}
CATEGORIES = net
HOMEPAGE = https://github.com/matrix-org/dendrite
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
SUBST_VARS = SYSCONFDIR
post-build:
mv ${MODGO_WORKSPACE}/bin/create-account \
${MODGO_WORKSPACE}/bin/dendrite-create-account
mv ${MODGO_WORKSPACE}/bin/generate-config \
${MODGO_WORKSPACE}/bin/dendrite-generate-config
mv ${MODGO_WORKSPACE}/bin/generate-keys \
${MODGO_WORKSPACE}/bin/dendrite-generate-keys
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/dendrite/
${INSTALL_DATA} ${WRKSRC}/dendrite-sample.yaml \
${PREFIX}/share/dendrite/dendrite.yaml
.include "modules.inc"
.include <bsd.port.mk>