summaryrefslogtreecommitdiff
path: root/net-p2p/cncli/Makefile
blob: cd90a38af54ffe9a3865a0d3cccb6b3dd02c6f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=		cncli
DISTVERSIONPREFIX=	v
DISTVERSION=		5.3.2
PORTREVISION=	1
CATEGORIES=		net-p2p

MAINTAINER=		boris@zfs.ninja
COMMENT=		A community-based cardano-node CLI tool
WWW=			https://cardano-community.github.io/guild-operators/

LICENSE=		APACHE20

NOT_FOR_ARCHS=		i386
NOT_FOR_ARCHS_REASON=	cryptoxide Rust crate uses AVX2 instructions

USES=		autoreconf:build cargo gmake libtool pkgconfig

USE_GITHUB=	yes
GH_ACCOUNT=	cardano-community input-output-hk:sodium
GH_PROJECT=	${PORTNAME} libsodium:sodium
GH_TAGNAME=	${LIBSODIUM_HASH}:sodium

LIBSODIUM_HASH=	66f017f16633f2060db25e17c170c2afa0f2a8a1
LIBS_PREFIX=	${WRKDIR}/libs_install

CARGO_ENV=	SODIUM_LIB_DIR=${LIBS_PREFIX}${PREFIX}/lib SODIUM_INCLUDE_DIR=${LIBS_PREFIX}${PREFIX}/include

PLIST_FILES=	bin/cncli

pre-build:
		cd ${WRKSRC_sodium} && ./autogen.sh
		cd ${WRKSRC_sodium} && ./configure --prefix=${PREFIX} --with-pthreads --disable-shared
		cd ${WRKSRC_sodium} && gmake -j${MAKE_JOBS_NUMBER} && gmake DESTDIR=${LIBS_PREFIX} install
		${MKDIR} ${LIBS_PREFIX}${PREFIX}/libdata/pkgconfig
		${MV} ${LIBS_PREFIX}${PREFIX}/lib/pkgconfig/libsodium.pc ${LIBS_PREFIX}${PREFIX}/libdata/pkgconfig/libsodium.pc

.include <bsd.port.mk>