blob: 2b50f20f297db26dc63833b21acdc97bf4f1c749 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= ring-daemon
PORTVERSION= 0.160516
DISTVERSIONPREFIX= v
PORTREVISION= 6
CATEGORIES= net-im net-p2p
MAINTAINER= yuri@rawbw.com
COMMENT= Daemon part of the Ring VoIP SIP phone and IM
LICENSE= GPLv3
BROKEN= fails to build
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2018-03-19
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
LIB_DEPENDS= libyaml-cpp.so:devel/yaml-cpp \
libjsoncpp.so:devel/jsoncpp \
libpcre.so:devel/pcre \
libupnp.so:devel/upnp \
libopendht.so:devel/opendht \
libgnutls.so:security/gnutls \
libavcodec.so:multimedia/ffmpeg \
libpulse.so:audio/pulseaudio \
libsndfile.so:audio/libsndfile \
libsamplerate.so:audio/libsamplerate \
libspeex.so:audio/speex \
libspeexdsp.so:audio/speexdsp \
libuuid.so:misc/e2fsprogs-libuuid
USE_GITHUB= yes
GH_TUPLE+= savoirfairelinux:ring-daemon:56ec56f
GH_TUPLE+= pjsip:pjproject:2.4.5:pj
CONFIGURE_ARGS= --without-gsm \
--enable-video \
--enable-ipv6
USES= autoreconf compiler:c++14-lang gmake libtool pkgconfig
USE_GNOME= glib20 gtk20 cairo gdkpixbuf2
USE_XORG= x11 xscrnsaver
USE_GL= gl
USE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg \
concurrent buildtools_build linguisttools_build
GNU_CONFIGURE= yes
MYFLAGS= -I${WRKSRC}/contrib/native/pjproject/pjlib/include -I${LOCALBASE}/include -DPJ_LINUX -I${LOCALBASE}/include/jsoncpp
CFLAGS+= ${MYFLAGS}
CPPFLAGS+= ${MYFLAGS}
CXXFLAGS+= ${MYFLAGS}
USE_LDCONFIG= yes
OPTIONS_DEFINE= DBUS
OPTIONS_DEFAULT=DBUS
DBUS_CONFIGURE_OFF= --without-dbus
DBUS_CONFIGURE_ON= --with-dbus
DBUS_LIB_DEPENDS= \
libdbus-1.so:devel/dbus \
libdbus-c++-1.so:devel/dbus-c++
OPTIONS_SUB= yes
BROKEN_aarch64= Fails to configure: machine arm64-portbld not recognized
.include <bsd.port.pre.mk>
post-extract:
@${MKDIR} ${WRKSRC}/contrib/native
@${MV} ${WRKDIR}/pjproject-2.4.5 ${WRKSRC}/contrib/native/
post-patch:
@${REINPLACE_CMD} -e 's|PJPROJECT_OPTIONS)|PJPROJECT_OPTIONS) CPPFLAGS=-I${LOCALBASE}/include/ CFLAGS="-I${LOCALBASE}/include/ -fPIC"|g' \
${WRKSRC}/contrib/src/pjproject/rules.mak
@${REINPLACE_CMD} -e 's|ringtonePath_ = "/usr/share|ringtonePath_ = "${LOCALBASE}/share|g' \
${WRKSRC}/src/account.cpp
pre-configure:
@(cd ${WRKSRC} && \
${ECHO} "===> Building the custom version of pjsip" && \
cd contrib/native && \
../bootstrap && \
${GMAKE} .pjproject)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libring.so
.include <bsd.port.post.mk>
|