aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/tox/Makefile
blob: 95da90ce94d45a43deb7411627ed2a4b837e48f9 (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
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$

PORTNAME=   ProjectTox-Core
PORTVERSION=    0.140222
CATEGORIES= net-im net-p2p

MAINTAINER= thierry@FreeBSD.org
COMMENT=    ProjectTox-Core library, a decentralized and secure messenger

LICENSE=    GPLv3

BUILD_DEPENDS=  checkmk:${PORTSDIR}/devel/libcheck
LIB_DEPENDS=    libvpx.so:${PORTSDIR}/multimedia/libvpx     \
        libopus.so:${PORTSDIR}/audio/opus

USE_GITHUB= yes
GH_ACCOUNT= irungentoo
GH_PROJECT= ProjectTox-Core
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT=  f219fb4

USE_AUTOTOOLS=  automake autoconf libtoolize
USES=       pkgconfig
USE_LDCONFIG=   yes

OPTIONS_RADIO=      CRYPTO
OPTIONS_RADIO_CRYPTO=   SODIUM NACL
OPTIONS_DEFINE=     PHONE
OPTIONS_DEFAULT=    PHONE SODIUM

PHONE_DESC=     Enable phone test
PHONE_CONFIGURE_ENABLE= phone
PHONE_LIB_DEPENDS=  libopenal.so:${PORTSDIR}/audio/openal       \
            libv4l2.so:${PORTSDIR}/multimedia/libv4l    \
            libswscale.so:${PORTSDIR}/multimedia/ffmpeg
PHONE_USE=      SDL=sdl

SODIUM_DESC=        Prefer libsodium
SODIUM_LIB_DEPENDS= libsodium.so:${PORTSDIR}/security/libsodium

NACL_DESC=      Prefer NaCl
NACL_CONFIGURE_ENABLE=  nacl
NACL_CONFIGURE_WITH=    nacl-libs=${LOCALBASE}/lib
NACL_BUILD_DEPENDS= ${LOCALBASE}/lib/libnacl.a:${PORTSDIR}/security/nacl
NACL_RUN_DEPENDS=   ${LOCALBASE}/lib/libnacl.a:${PORTSDIR}/security/nacl

pre-configure:
    ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/configure.ac
    cd ${WRKSRC} && ./autogen.sh

.include <bsd.port.mk>