COMMENT =		Deltachat JSON-RPC Server

# aws-lc-sys has constants in .text
# https://github.com/awslabs/s2n-bignum/pull/242
.if ${MACHINE_ARCH} == "amd64"
USE_NOEXECONLY =        Yes
.endif

PKGNAME =		deltachat-rpc-server-2.53.0

GH_ACCOUNT =		chatmail
GH_PROJECT =		core
GH_TAGNAME =		v2.53.0
#DIST_TUPLE +=	github chatmail core v2.53.0 .

CATEGORIES =		net

HOMEPAGE =		https://delta.chat

# MPL-2.0
PERMIT_PACKAGE =	Yes

WANTLIB += ${MODCARGO_WANTLIB} crypto m ssl

#BUILD_DEPENDS +=	databases/sqlcipher

MODULES =		devel/cargo

CONFIGURE_STYLE =	cargo

USE_GMAKE =		Yes

MODCARGO_INSTALL_TARGET_PATHS = deltachat-repl \
				deltachat-rpc-server

.include "crates.inc"

.include <bsd.port.mk>
