aboutsummaryrefslogtreecommitdiff
path: root/net/liblinphone
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2018-10-18 13:31:00 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2018-10-18 13:31:00 +0000
commit9ff73185e108e00589fe2cecd1410bc0aa342e0c (patch)
treec4d6461e6b7ba3ce0cc3319a892ddb2d78a6030f /net/liblinphone
parent0a539a80c5388f1f61b8a2f6048884c97966dcdd (diff)
downloadports-9ff73185e108e00589fe2cecd1410bc0aa342e0c.tar.gz
ports-9ff73185e108e00589fe2cecd1410bc0aa342e0c.zip
Notes
Diffstat (limited to 'net/liblinphone')
-rw-r--r--net/liblinphone/Makefile46
-rw-r--r--net/liblinphone/distinfo3
-rw-r--r--net/liblinphone/files/patch-cmake-FindIntl.cmake11
-rw-r--r--net/liblinphone/files/patch-coreapi__presence.c35
-rw-r--r--net/liblinphone/files/patch-wrappers-cpp-genwrapper.py11
-rw-r--r--net/liblinphone/pkg-descr4
-rw-r--r--net/liblinphone/pkg-plist144
7 files changed, 254 insertions, 0 deletions
diff --git a/net/liblinphone/Makefile b/net/liblinphone/Makefile
new file mode 100644
index 000000000000..3c541ca843c7
--- /dev/null
+++ b/net/liblinphone/Makefile
@@ -0,0 +1,46 @@
+# $FreeBSD$
+
+PORTNAME= linphone
+PORTVERSION= 3.12.0
+CATEGORIES= net
+MASTER_SITES= https://www.linphone.org/releases/sources/linphone/
+PKGNAMEPREFIX= lib
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= SIP library supporting voice/video calls and text messaging
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= doxygen:devel/doxygen \
+ ${PYTHON_PKGNAMEPREFIX}pystache>=0:textproc/py-pystache@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
+LIB_DEPENDS= libbctoolbox.so:net/bctoolbox \
+ libbelcard.so:deskutils/belcard \
+ libbellesip.so:net/belle-sip \
+ libbzrtp.so:security/bzrtp \
+ libmediastreamer_base.so:net/mediastreamer \
+ libortp.so:net/ortp \
+ libsqlite3.so:databases/sqlite3
+
+USES= cmake:outsource gnome iconv pkgconfig python:build
+USE_GNOME= libxml2
+USE_LDCONFIG= yes
+
+CMAKE_ARGS= -DENABLE_NLS=NO -DENABLE_STATIC=NO -DENABLE_STRICT=NO \
+ -DENABLE_UNIT_TESTS=NO
+
+OPTIONS_DEFINE= LDAP VIDEO
+OPTIONS_DEFAULT=LDAP VIDEO
+OPTIONS_SUB= yes
+
+LDAP_CMAKE_BOOL= ENABLE_LDAP
+LDAP_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
+LDAP_USE= OPENLDAP=yes
+
+VIDEO_CMAKE_BOOL= ENABLE_VIDEO
+
+post-install:
+ ${RM} -r ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME}
+
+.include <bsd.port.mk>
diff --git a/net/liblinphone/distinfo b/net/liblinphone/distinfo
new file mode 100644
index 000000000000..84e930f63c4e
--- /dev/null
+++ b/net/liblinphone/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1538743344
+SHA256 (linphone-3.12.0.tar.gz) = 3da4fa55c01aa4a04923a8f028eb7fadeaed094614594e1a12cfb75e4a9f105e
+SIZE (linphone-3.12.0.tar.gz) = 18667484
diff --git a/net/liblinphone/files/patch-cmake-FindIntl.cmake b/net/liblinphone/files/patch-cmake-FindIntl.cmake
new file mode 100644
index 000000000000..1dac60e2d7af
--- /dev/null
+++ b/net/liblinphone/files/patch-cmake-FindIntl.cmake
@@ -0,0 +1,11 @@
+--- cmake/FindIntl.cmake.orig 2017-04-06 09:25:59 UTC
++++ cmake/FindIntl.cmake
+@@ -41,7 +41,7 @@ if(INTL_INCLUDE_DIRS)
+ endif()
+
+ set(INTL_ARGS INTL_INCLUDE_DIRS HAVE_LIBINTL_H)
+-if(NOT UNIX OR APPLE)
++if(NOT UNIX OR APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
+ find_library(INTL_LIBRARIES
+ NAMES intl
+ HINTS ${_INTL_ROOT_PATHS}
diff --git a/net/liblinphone/files/patch-coreapi__presence.c b/net/liblinphone/files/patch-coreapi__presence.c
new file mode 100644
index 000000000000..6037b65a5f66
--- /dev/null
+++ b/net/liblinphone/files/patch-coreapi__presence.c
@@ -0,0 +1,35 @@
+--- coreapi/presence.c.orig 2016-08-18 12:21:44 UTC
++++ coreapi/presence.c
+@@ -160,11 +160,6 @@ static void presence_activity_delete(Lin
+ static time_t parse_timestamp(const char *timestamp) {
+ struct tm ret;
+ time_t seconds;
+-#if defined(LINPHONE_WINDOWS_UNIVERSAL) || defined(LINPHONE_MSC_VER_GREATER_19)
+- long adjust_timezone;
+-#else
+- time_t adjust_timezone;
+-#endif
+
+ memset(&ret, 0, sizeof(ret));
+ sscanf(timestamp, "%d-%d-%dT%d:%d:%d",
+@@ -172,17 +167,12 @@ static time_t parse_timestamp(const char
+ ret.tm_mon--;
+ ret.tm_year -= 1900;
+ ret.tm_isdst = 0;
+- seconds = mktime(&ret);
++ seconds = timegm(&ret);
+ if (seconds == (time_t)-1) {
+- ms_error("mktime() failed: %s", strerror(errno));
++ ms_error("timegm() failed: %s", strerror(errno));
+ return (time_t)-1;
+ }
+-#if defined(LINPHONE_WINDOWS_UNIVERSAL) || defined(LINPHONE_MSC_VER_GREATER_19)
+- _get_timezone(&adjust_timezone);
+-#else
+- adjust_timezone = timezone;
+-#endif
+- return seconds - (time_t)adjust_timezone;
++ return seconds;
+ }
+
+ char * linphone_timestamp_to_rfc3339_string(time_t timestamp) {
diff --git a/net/liblinphone/files/patch-wrappers-cpp-genwrapper.py b/net/liblinphone/files/patch-wrappers-cpp-genwrapper.py
new file mode 100644
index 000000000000..038b8172b77f
--- /dev/null
+++ b/net/liblinphone/files/patch-wrappers-cpp-genwrapper.py
@@ -0,0 +1,11 @@
+--- wrappers/cpp/genwrapper.py.orig 2017-06-20 10:03:59 UTC
++++ wrappers/cpp/genwrapper.py
+@@ -650,6 +650,8 @@ class ClassHeader(object):
+ self._add_include(includes, 'external', 'cstdint')
+ elif _type.name == 'string':
+ self._add_include(includes, 'external', 'string')
++ elif _type.name == 'time':
++ self._add_include(includes, 'external', 'time.h')
+ elif isinstance(_type, AbsApi.ListType):
+ self._add_include(includes, 'external', 'list')
+ self._needed_includes_from_type(_type.containedTypeDesc, includes)
diff --git a/net/liblinphone/pkg-descr b/net/liblinphone/pkg-descr
new file mode 100644
index 000000000000..9846bb70fa84
--- /dev/null
+++ b/net/liblinphone/pkg-descr
@@ -0,0 +1,4 @@
+Liblinphone is a high level library integrating all the SIP call and instant
+messaging features into a single easy to use API.
+
+WWW: https://www.linphone.org/technical-corner/liblinphone.html
diff --git a/net/liblinphone/pkg-plist b/net/liblinphone/pkg-plist
new file mode 100644
index 000000000000..f6d22c4ff8f1
--- /dev/null
+++ b/net/liblinphone/pkg-plist
@@ -0,0 +1,144 @@
+bin/buddy_status
+bin/chatroom
+bin/filetransfer
+bin/helloworld
+bin/linphone-daemon
+bin/linphone-daemon-pipetest
+bin/linphonec
+bin/linphonecsh
+bin/lp-auto-answer
+bin/lp-sendmsg
+bin/lp-test-ecc
+bin/lpc2xml_test
+bin/notify
+bin/realtimetext_receiver
+bin/realtimetext_sender
+bin/registration
+bin/xml2lpc_test
+include/linphone++/account_creator.hh
+include/linphone++/account_creator_listener.hh
+include/linphone++/address.hh
+include/linphone++/auth_info.hh
+include/linphone++/buffer.hh
+include/linphone++/call.hh
+include/linphone++/call_listener.hh
+include/linphone++/call_log.hh
+include/linphone++/call_params.hh
+include/linphone++/call_stats.hh
+include/linphone++/chat_message.hh
+include/linphone++/chat_message_listener.hh
+include/linphone++/chat_room.hh
+include/linphone++/conference.hh
+include/linphone++/conference_params.hh
+include/linphone++/config.hh
+include/linphone++/content.hh
+include/linphone++/core.hh
+include/linphone++/core_listener.hh
+include/linphone++/enums.hh
+include/linphone++/error_info.hh
+include/linphone++/event.hh
+include/linphone++/factory.hh
+include/linphone++/friend.hh
+include/linphone++/friend_list.hh
+include/linphone++/friend_list_listener.hh
+include/linphone++/headers.hh
+include/linphone++/im_encryption_engine.hh
+include/linphone++/im_encryption_engine_listener.hh
+include/linphone++/im_notif_policy.hh
+include/linphone++/info_message.hh
+include/linphone++/linphone.hh
+include/linphone++/nat_policy.hh
+include/linphone++/object.hh
+include/linphone++/payload_type.hh
+include/linphone++/player.hh
+include/linphone++/player_listener.hh
+include/linphone++/presence_activity.hh
+include/linphone++/presence_model.hh
+include/linphone++/presence_note.hh
+include/linphone++/presence_person.hh
+include/linphone++/presence_service.hh
+include/linphone++/proxy_config.hh
+include/linphone++/range.hh
+include/linphone++/transports.hh
+include/linphone++/tunnel.hh
+include/linphone++/vcard.hh
+include/linphone++/video_activation_policy.hh
+include/linphone++/video_definition.hh
+include/linphone++/xml_rpc_request.hh
+include/linphone++/xml_rpc_request_listener.hh
+include/linphone++/xml_rpc_session.hh
+include/linphone/account_creator.h
+include/linphone/account_creator_service.h
+include/linphone/address.h
+include/linphone/auth_info.h
+include/linphone/buffer.h
+include/linphone/call.h
+include/linphone/call_log.h
+include/linphone/call_params.h
+include/linphone/call_stats.h
+include/linphone/callbacks.h
+include/linphone/chat.h
+include/linphone/conference.h
+include/linphone/contactprovider.h
+include/linphone/content.h
+include/linphone/core.h
+include/linphone/core_utils.h
+include/linphone/defs.h
+include/linphone/dictionary.h
+include/linphone/error_info.h
+include/linphone/event.h
+include/linphone/factory.h
+include/linphone/friend.h
+include/linphone/friendlist.h
+include/linphone/headers.h
+include/linphone/im_encryption_engine.h
+include/linphone/im_notif_policy.h
+include/linphone/info_message.h
+include/linphone/ldapprovider.h
+include/linphone/linphone_proxy_config.h
+include/linphone/linphone_tunnel.h
+include/linphone/linphonecore.h
+include/linphone/linphonecore_utils.h
+include/linphone/linphonefriend.h
+include/linphone/linphonepresence.h
+include/linphone/lpconfig.h
+include/linphone/misc.h
+include/linphone/nat_policy.h
+include/linphone/payload_type.h
+include/linphone/player.h
+include/linphone/presence.h
+include/linphone/proxy_config.h
+include/linphone/ringtoneplayer.h
+include/linphone/sipsetup.h
+include/linphone/tunnel.h
+include/linphone/types.h
+include/linphone/vcard.h
+include/linphone/video_definition.h
+include/linphone/wrapper_utils.h
+include/linphone/xmlrpc.h
+lib/liblinphone++.so
+lib/liblinphone++.so.9
+lib/liblinphone.so
+lib/liblinphone.so.9
+share/Linphone/cmake/LinphoneConfig.cmake
+share/Linphone/cmake/LinphoneConfigVersion.cmake
+share/Linphone/cmake/LinphoneTargets-%%CMAKE_BUILD_TYPE%%.cmake
+share/Linphone/cmake/LinphoneTargets.cmake
+share/LinphoneCxx/cmake/LinphoneCxxConfig.cmake
+share/LinphoneCxx/cmake/LinphoneCxxTargets-%%CMAKE_BUILD_TYPE%%.cmake
+share/LinphoneCxx/cmake/LinphoneCxxTargets.cmake
+share/LinphoneCxx/cmake/LinphoneCxxVersion.cmake
+%%DATADIR%%/rootca.pem
+share/sounds/linphone/dont_wait_too_long.mkv
+share/sounds/linphone/hello16000.wav
+share/sounds/linphone/hello8000.wav
+share/sounds/linphone/incoming_chat.wav
+share/sounds/linphone/ringback.wav
+share/sounds/linphone/rings/four_hands_together.mkv
+share/sounds/linphone/rings/house_keeping.mkv
+share/sounds/linphone/rings/its_a_game.mkv
+share/sounds/linphone/rings/leaving_dreams.mkv
+share/sounds/linphone/rings/notes_of_the_optimistic.mkv
+share/sounds/linphone/rings/oldphone-mono.wav
+share/sounds/linphone/rings/soft_as_snow.mkv
+share/sounds/linphone/toy-mono.wav