2014-02-24 22:57:29 +01:00
|
|
|
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-06-30 23:22:25 +02:00
|
|
|
PORTNAME= toxcore
|
2017-01-20 19:48:55 +01:00
|
|
|
PORTVERSION= 0.1.5
|
2017-02-13 17:38:32 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2017-01-10 21:51:38 +01:00
|
|
|
PORTEPOCH= 1
|
2014-02-24 22:57:29 +01:00
|
|
|
CATEGORIES= net-im net-p2p
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= ProjectTox-Core library, a decentralized and secure messenger
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2017-02-05 12:14:37 +01:00
|
|
|
BUILD_DEPENDS= checkmk:devel/check
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libvpx.so:multimedia/libvpx \
|
2017-01-10 21:51:38 +01:00
|
|
|
libsndfile.so:audio/libsndfile \
|
|
|
|
libsodium.so:security/libsodium \
|
|
|
|
libopencv_core.so:graphics/opencv2-core \
|
2016-04-01 16:16:16 +02:00
|
|
|
libopus.so:audio/opus
|
2017-01-20 23:01:20 +01:00
|
|
|
TEST_DEPENDS= ${LOCALBASE}/lib/libmsgpackc.so:devel/msgpack \
|
|
|
|
${LOCALBASE}/lib/libportaudio.so:audio/portaudio
|
2014-02-24 22:57:29 +01:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2017-01-10 21:51:38 +01:00
|
|
|
GH_ACCOUNT= TokTok
|
|
|
|
GH_PROJECT= c-toxcore
|
2014-02-24 22:57:29 +01:00
|
|
|
|
2017-01-10 21:51:38 +01:00
|
|
|
USES= cmake compiler:c11 libtool pathfix pkgconfig
|
2014-02-24 22:57:29 +01:00
|
|
|
USE_LDCONFIG= yes
|
2017-01-20 19:48:55 +01:00
|
|
|
PLIST_SUB= VER=${PORTVERSION:C/0.//}.0 SO=1
|
2014-02-24 22:57:29 +01:00
|
|
|
|
2014-10-14 22:55:19 +02:00
|
|
|
OPTIONS_DEFINE= DAEMON
|
2014-03-25 23:07:48 +01:00
|
|
|
OPTIONS_SUB= yes
|
2014-02-24 22:57:29 +01:00
|
|
|
|
2014-10-14 22:55:19 +02:00
|
|
|
DAEMON_DESC= Bootstrap daemon
|
2017-01-10 21:51:38 +01:00
|
|
|
DAEMON_CMAKE_ON= -DBOOTSTRAP_DAEMON=on
|
2016-04-01 16:16:16 +02:00
|
|
|
DAEMON_LIB_DEPENDS= libconfig.so:devel/libconfig
|
2014-10-14 22:55:19 +02:00
|
|
|
|
2017-01-11 21:58:08 +01:00
|
|
|
TEST_TARGET= test
|
|
|
|
|
2014-02-25 21:16:29 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2014-10-14 22:55:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MDAEMON}
|
2017-01-10 21:51:38 +01:00
|
|
|
USERS= toxdht
|
2014-10-14 22:55:19 +02:00
|
|
|
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
|
2014-02-25 21:16:29 +01:00
|
|
|
.endif
|
|
|
|
|
2014-10-14 22:55:19 +02:00
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MDAEMON}
|
2017-01-10 21:51:38 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tox-bootstrapd ${STAGEDIR}${PREFIX}/bin
|
2014-10-14 22:55:19 +02:00
|
|
|
${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
|
|
|
|
|
2014-02-24 22:57:29 +01:00
|
|
|
.include <bsd.port.mk>
|