blob: c646564b8d15099e80558180e78e66de6ed86057 (
plain) (
blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: Thierry Thomas <thierry@pompo.net>
PORTNAME= toxcore
PORTVERSION= 0.2.18
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= net-im net-p2p
MAINTAINER= thierry@FreeBSD.org
COMMENT= ProjectTox-Core library, a decentralized and secure messenger
LICENSE= GPLv3
BUILD_DEPENDS= checkmk:devel/check \
gtest:sysutils/coreutils
LIB_DEPENDS= libvpx.so:multimedia/libvpx \
libsndfile.so:audio/libsndfile \
libportaudio.so:audio/portaudio \
libsodium.so:security/libsodium \
libopus.so:audio/opus \
libconfig.so:devel/libconfig
TEST_DEPENDS= opencv_visualisation:graphics/opencv
#TEST_DEPENDS= libopencv_core.so:graphics/opencv
USE_GITHUB= yes
GH_ACCOUNT= TokTok camgunz:cmp
GH_PROJECT= c-toxcore cmp:cmp
GH_TAGNAME= 4c3737d1a172ee74d2b35b5fd6865d1fe9dac7af:cmp
GH_SUBDIR= third_party/cmp:cmp
CPE_VENDOR= toktok
USES= cmake compiler:c11 cpe libtool pathfix pkgconfig
USE_LDCONFIG= yes
PLIST_SUB= VER=${PORTVERSION:C/0.//}.0 SO=2
OPTIONS_DEFINE= DAEMON TEST
OPTIONS_SUB= yes
DAEMON_DESC= Bootstrap daemon
DAEMON_CMAKE_ON= -DBOOTSTRAP_DAEMON=on
DAEMON_LIB_DEPENDS= libconfig.so:devel/libconfig
TEST_CMAKE_ON= -DAUTOTEST=on
TEST_TARGET= test
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDAEMON}
USERS= toxdht
USE_RC_SUBR= tox-bootstrapd
SUB_LIST= TOXDHT=${USERS}
PLIST_SUB+= TOXDHT=${USERS}
KEYS_DIR= /var/lib/tox-bootstrapd
PID_DIR= /var/run/tox-bootstrapd
PKGMESSAGE= ${PKGDIR}/pkg-message.daemon
.endif
post-install:
.if ${PORT_OPTIONS:MDAEMON}
${INSTALL_DATA} ${WRKSRC}/other/bootstrap_daemon/tox-bootstrapd.conf \
${STAGEDIR}${PREFIX}/etc/tox-bootstrapd.conf.sample
${MKDIR} ${STAGEDIR}${KEYS_DIR}
${MKDIR} ${STAGEDIR}${PID_DIR}
.endif
.include <bsd.port.mk>
|