openbsd-ports/net/mautrix-whatsapp/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

45 lines
901 B
Makefile

COMMENT = matrix-WhatsApp puppeting bridge
MODGO_VERSION = v0.6.1
MODGO_MODNAME = maunium.net/go/mautrix-whatsapp
DISTNAME = mautrix-whatsapp-${MODGO_VERSION}
REVISION = 0
EPOCH = 0
CATEGORIES = net
HOMEPAGE = https://github.com/tulir/mautrix-whatsapp
MAINTAINER = Renaud Allard <renaud@allard.it>
# GNU Affero General Public License v3.0
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c m pthread olm
BUILD_DEPENDS = devel/olm
RUN_DEPENDS = devel/olm
MODULES = lang/go
MAKE_ENV += CGO_CFLAGS=-I${LOCALBASE}/include \
CGO_LDFLAGS=-L${LOCALBASE}/lib
NO_TEST = Yes
SUBST_VARS += VARBASE
do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/mautrix-whatsapp \
${PREFIX}/bin
${INSTALL_DATA_DIR} \
${PREFIX}/share/examples/mautrix-whatsapp
${INSTALL_DATA} ${WRKSRC}/example-config.yaml \
${PREFIX}/share/examples/mautrix-whatsapp
.include "modules.inc"
.include <bsd.port.mk>