mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
68 lines
1.6 KiB
Makefile
68 lines
1.6 KiB
Makefile
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= toxcore
|
|
PORTVERSION= 0.2.10
|
|
PORTREVISION= 1
|
|
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 \
|
|
libmsgpackc.so:devel/msgpack \
|
|
libsndfile.so:audio/libsndfile \
|
|
libportaudio.so:audio/portaudio \
|
|
libsodium.so:security/libsodium \
|
|
libopus.so:audio/opus \
|
|
libconfig.so:devel/libconfig
|
|
TEST_DEPENDS= libopencv_core.so:graphics/opencv-core
|
|
|
|
CONFLICTS= toxcore-legacy-0.1.*
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= TokTok
|
|
GH_PROJECT= c-toxcore
|
|
|
|
USES= cmake compiler:c11 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>
|