summaryrefslogtreecommitdiff
path: root/net/linphone
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-07-14 10:29:38 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-07-14 10:29:38 +0000
commitc5f5a1d39d301d868ffdc6087f9caed2aec85cfd (patch)
tree6c6af440896486471f6df0337f2552dd1859809a /net/linphone
parent- Update to 2.19.10 (diff)
- Move net/linphone-base to replace net/linphone and update to version 3.7.0
- Adjust ports that depended on linphone-base to depend on net/ortp or net/mediastreamer instead - Mark net-im/libjingle deprecated (part of Google Talk) Approved by: portmgr (implicit, PORTREVISION bump of unstaged port)
Notes
Notes: svn path=/head/; revision=361763
Diffstat (limited to 'net/linphone')
-rw-r--r--net/linphone/Makefile61
-rw-r--r--net/linphone/distinfo2
-rw-r--r--net/linphone/files/patch-configure24
-rw-r--r--net/linphone/files/patch-coreapi__presence.c11
-rw-r--r--net/linphone/pkg-descr11
-rw-r--r--net/linphone/pkg-plist121
6 files changed, 230 insertions, 0 deletions
diff --git a/net/linphone/Makefile b/net/linphone/Makefile
new file mode 100644
index 000000000000..baef5ad9c026
--- /dev/null
+++ b/net/linphone/Makefile
@@ -0,0 +1,61 @@
+# $FreeBSD$
+
+PORTNAME= linphone
+PORTVERSION= 3.7.0
+PORTEPOCH= 1
+CATEGORIES= net
+MASTER_SITES= SAVANNAH/linphone/3.7.x/sources
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= SIP client supporting voice/video calls and text messaging
+
+LIB_DEPENDS= libbellesip.so:${PORTSDIR}/net/belle-sip \
+ libmediastreamer_base.so:${PORTSDIR}/net/mediastreamer \
+ libortp.so:${PORTSDIR}/net/ortp \
+ libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
+ libsqlite3.so:${PORTSDIR}/databases/sqlite3
+
+CONFLICTS_INSTALL= linphone-base-[0-9]*
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-deplibs-link --disable-strict --disable-tutorials \
+ --enable-external-mediastreamer --enable-external-ortp \
+ --with-readline=${LOCALBASE}
+CPPFLAGS+= -I${LOCALBASE}/include
+LIBS+= -L${LOCALBASE}/lib
+INSTALL_TARGET= install-strip
+USES= gmake libtool pathfix pkgconfig readline:port
+USE_GNOME= gnomehier gtk20 intltool libxml2
+USE_LDCONFIG= yes
+
+OPTIONS_DEFINE= IPV6 NLS NOTIFY UPNP VIDEO
+OPTIONS_DEFAULT=NOTIFY UPNP VIDEO
+OPTIONS_SUB= yes
+
+IPV6_CONFIGURE_ENABLE= ipv6
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
+
+NOTIFY_CONFIGURE_ENABLE=notify
+NOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify
+
+UPNP_CONFIGURE_ENABLE= upnp
+UPNP_LIB_DEPENDS= libupnp.so:${PORTSDIR}/devel/upnp
+
+VIDEO_CONFIGURE_ENABLE= video
+
+.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} '/linphonec_LDADD =/s/=/= $$(MEDIASTREAMER_LIBS)/' \
+ ${WRKSRC}/console/Makefile.in
+ @${REINPLACE_CMD} '/linphone_LDADD =/s/=/= $$(MEDIASTREAMER_LIBS)/' \
+ ${WRKSRC}/gtk/Makefile.in
+.for l in C fr it ja
+ @${REINPLACE_CMD} '/^install-data-local:/,/^$$/d' \
+ ${WRKSRC}/share/$l/Makefile.in
+.endfor
+
+.include <bsd.port.mk>
diff --git a/net/linphone/distinfo b/net/linphone/distinfo
new file mode 100644
index 000000000000..e85094e3cded
--- /dev/null
+++ b/net/linphone/distinfo
@@ -0,0 +1,2 @@
+SHA256 (linphone-3.7.0.tar.gz) = ff792b1cfc132fc4a54ae6c861c99d4139ec6f4b8ff4092ea2ce1e19d44c151c
+SIZE (linphone-3.7.0.tar.gz) = 12090691
diff --git a/net/linphone/files/patch-configure b/net/linphone/files/patch-configure
new file mode 100644
index 000000000000..d97d2dd4c993
--- /dev/null
+++ b/net/linphone/files/patch-configure
@@ -0,0 +1,24 @@
+--- configure.orig
++++ configure
+@@ -19486,12 +19486,6 @@
+ ;;
+ esac
+
+-case "$host_os" in
+- *freebsd*)
+- LDFLAGS="$LDFLAGS -pthread"
+- ;;
+-esac
+-
+ case "$host_cpu" in
+ *arm*)
+
+@@ -20993,7 +20987,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+
+- SQLITE3_CFLAGS+="-DMSG_STORAGE_ENABLED"
++ SQLITE3_CFLAGS="$SQLITE3_CFLAGS -DMSG_STORAGE_ENABLED"
+
+
+ enable_msg_storage=true
diff --git a/net/linphone/files/patch-coreapi__presence.c b/net/linphone/files/patch-coreapi__presence.c
new file mode 100644
index 000000000000..95829fe4a610
--- /dev/null
+++ b/net/linphone/files/patch-coreapi__presence.c
@@ -0,0 +1,11 @@
+--- coreapi/presence.c.orig
++++ coreapi/presence.c
+@@ -167,7 +167,7 @@
+ ms_error("mktime() failed: %s", strerror(errno));
+ return (time_t)-1;
+ }
+- return seconds - timezone;
++ return seconds;
+ }
+
+ static char * timestamp_to_string(time_t timestamp) {
diff --git a/net/linphone/pkg-descr b/net/linphone/pkg-descr
new file mode 100644
index 000000000000..3a4719dcfa10
--- /dev/null
+++ b/net/linphone/pkg-descr
@@ -0,0 +1,11 @@
+Linphone is an internet phone or Voice Over IP phone (VoIP).
+
+* With linphone you can communicate freely with people over the internet,
+ with voice, video, and text instant messaging
+* Linphone makes use of the SIP protocol, an open standard for internet
+ telephony. You can use Linphone with any SIP VoIP operator, including
+ the free SIP audio/video service provided by www.linphone.org
+* Linphone is available for desktop computers: Linux, Windows, MacOSX, and
+ for mobile phones: Android, iPhone, Blackberry
+
+WWW: http://www.linphone.org/
diff --git a/net/linphone/pkg-plist b/net/linphone/pkg-plist
new file mode 100644
index 000000000000..1a5ba6dbcf89
--- /dev/null
+++ b/net/linphone/pkg-plist
@@ -0,0 +1,121 @@
+bin/linphone
+bin/linphonec
+bin/linphonecsh
+bin/lp-gen-wrappers
+bin/lpc2xml_test
+bin/xml2lpc_test
+include/linphone/event.h
+include/linphone/linphonecore.h
+include/linphone/linphonecore_utils.h
+include/linphone/linphonefriend.h
+include/linphone/linphonepresence.h
+include/linphone/lpc2xml.h
+include/linphone/lpconfig.h
+include/linphone/sipsetup.h
+include/linphone/xml2lpc.h
+lib/liblinphone.so
+lib/liblinphone.so.6
+lib/liblinphone.so.6.0.0
+libdata/pkgconfig/linphone.pc
+man/cs/man1/linphone.1.gz
+man/cs/man1/linphonec.1.gz
+man/cs/man1/sipomatic.1.gz
+man/man1/linphone.1.gz
+man/man1/linphonec.1.gz
+man/man1/linphonecsh.1.gz
+man/man1/sipomatic.1.gz
+share/applications/linphone.desktop
+%%DATADIR%%/COPYING
+%%DATADIR%%/about.ui
+%%DATADIR%%/buddylookup.ui
+%%DATADIR%%/call_logs.ui
+%%DATADIR%%/call_statistics.ui
+%%DATADIR%%/config-uri.ui
+%%DATADIR%%/contact.ui
+%%DATADIR%%/dscp_settings.ui
+%%DATADIR%%/keypad.ui
+%%DATADIR%%/ldap.ui
+%%DATADIR%%/log.ui
+%%DATADIR%%/main.ui
+%%DATADIR%%/parameters.ui
+%%DATADIR%%/password.ui
+%%DATADIR%%/provisioning-fetch.ui
+%%DATADIR%%/rootca.pem
+%%DATADIR%%/sip_account.ui
+%%DATADIR%%/stock_people.png
+%%DATADIR%%/tunnel_config.ui
+%%DATADIR%%/waiting.ui
+%%NLS%%share/locale/cs/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/de/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/es/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/he/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/it/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/nb_NO/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/linphone.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/linphone.mo
+share/pixmaps/linphone/active_chat.png
+share/pixmaps/linphone/addcall-green.png
+share/pixmaps/linphone/call.png
+share/pixmaps/linphone/call_status_incoming.png
+share/pixmaps/linphone/call_status_outgoing.png
+share/pixmaps/linphone/chat.png
+share/pixmaps/linphone/chat_message_delivered.png
+share/pixmaps/linphone/chat_message_inprogress.png
+share/pixmaps/linphone/chat_message_not_delivered.png
+share/pixmaps/linphone/composing_active_chat.png
+share/pixmaps/linphone/composing_chat.png
+share/pixmaps/linphone/contact-orange.png
+share/pixmaps/linphone/contact_starred.png
+share/pixmaps/linphone/contact_unstarred.png
+share/pixmaps/linphone/dialer-orange.png
+share/pixmaps/linphone/dialer.png
+share/pixmaps/linphone/history-orange.png
+share/pixmaps/linphone/hold_off.png
+share/pixmaps/linphone/hold_on.png
+share/pixmaps/linphone/linphone-banner.png
+share/pixmaps/linphone/linphone.icns
+share/pixmaps/linphone/linphone.png
+share/pixmaps/linphone/mic_active.png
+share/pixmaps/linphone/mic_muted.png
+share/pixmaps/linphone/notok.png
+share/pixmaps/linphone/ok.png
+share/pixmaps/linphone/speaker.png
+share/pixmaps/linphone/startcall-green.png
+share/pixmaps/linphone/startcall-small.png
+share/pixmaps/linphone/status-green.png
+share/pixmaps/linphone/status-offline.png
+share/pixmaps/linphone/status-orange.png
+share/pixmaps/linphone/status-red.png
+share/pixmaps/linphone/stopcall-red.png
+share/pixmaps/linphone/stopcall-small.png
+share/sounds/linphone/hello16000.wav
+share/sounds/linphone/hello8000.wav
+share/sounds/linphone/ringback.wav
+share/sounds/linphone/rings/bigben.wav
+share/sounds/linphone/rings/oldphone-mono-30s.caf
+share/sounds/linphone/rings/oldphone-mono.wav
+share/sounds/linphone/rings/oldphone.wav
+share/sounds/linphone/rings/orig.wav
+share/sounds/linphone/rings/rock.wav
+share/sounds/linphone/rings/sweet.wav
+share/sounds/linphone/rings/synth.wav
+share/sounds/linphone/rings/tapping.wav
+share/sounds/linphone/rings/toy-mono.wav
+@dirrm include/linphone
+@dirrmtry man/cs/man1
+@dirrmtry man/cs
+@dirrm %%DATADIR%%
+@dirrmtry share/locale/nb_NO/LC_MESSAGES
+@dirrmtry share/locale/nb_NO
+@dirrm share/pixmaps/linphone
+@dirrm share/sounds/linphone/rings
+@dirrm share/sounds/linphone