mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add new port pidgin-skype aka. skype4pidgin.
This is a Skype Plugin for Pidgin/libpurple/Adium. It lets you view and chat with all your Skype buddies from within Pidgin/Adium. You still need Skype to be running to be able to use it, but it lets you keep a consistent user interface and use all the other nifty Pidgin/Adium plugins with it, like spell-checking or OTR encryption. By Eion Robb.
This commit is contained in:
parent
ab4f959a31
commit
27ea247eb0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266650
@ -130,6 +130,7 @@
|
||||
SUBDIR += pidgin-privacy-please
|
||||
SUBDIR += pidgin-rhythmbox
|
||||
SUBDIR += pidgin-sipe
|
||||
SUBDIR += pidgin-skype
|
||||
SUBDIR += pidgin-twitter
|
||||
SUBDIR += pino
|
||||
SUBDIR += pork
|
||||
|
64
net-im/pidgin-skype/Makefile
Normal file
64
net-im/pidgin-skype/Makefile
Normal file
@ -0,0 +1,64 @@
|
||||
# New ports collection makefile for: pidgin-skype
|
||||
# Date created: 2010-12-19
|
||||
# Whom: mandree@FreeBSD.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pidgin-skype
|
||||
PORTVERSION= 0.0.0.604
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= mandree
|
||||
DISTFILES= pidgin-skype-svn-r${PORTVERSION:E}.tar.xz
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
COMMENT= Plugin to use Skype chat from Pidgin (with Skype running)
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/pidgin/pidgin.h:${PORTSDIR}/net-im/pidgin \
|
||||
${LOCALBASE}/bin/skype:${PORTSDIR}/net/skype
|
||||
RUN_DEPENDS= pidgin:${PORTSDIR}/net-im/pidgin \
|
||||
${LOCALBASE}/bin/skype:${PORTSDIR}/net/skype
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_GNOME= glib20
|
||||
USE_XZ= yes
|
||||
|
||||
# this is a local target to build a tarball
|
||||
build-tarball: ${DISTFILES}
|
||||
${RM} -rf ${WRKSRC}
|
||||
svn export -r${PORTVERSION:E} \
|
||||
http://skype4pidgin.googlecode.com/svn/trunk/ ${WRKSRC}
|
||||
tar -C ${WRKSRC}/.. -cvf - ${WRKSRC:T} | ${XZ_CMD} -vvc >${DISTFILES} || \
|
||||
{ ${RM} -f ${DISTFILES} ; exit 1 ; }
|
||||
|
||||
upload-tarball: build-tarball
|
||||
scp ${DISTFILES} freefall.freebsd.org:public_distfiles/
|
||||
|
||||
mycflags= -shared -fPIC -DPIC ${PTHREAD_CFLAGS} \
|
||||
-I${LOCALBASE}/include \
|
||||
-I${LOCALBASE}/include/libpurple \
|
||||
-I${LOCALBASE}/include/pidgin \
|
||||
-I${LOCALBASE}/include/glib-2.0 \
|
||||
-DPURPLE_PLUGINS
|
||||
mylibs= ${PTHREAD_LIBS}
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${CC} ${CFLAGS} ${mycflags} \
|
||||
-o libskype.so libskype.c ${mylibs}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/lib/purple-2
|
||||
${INSTALL_DATA} ${WRKSRC}/libskype.so ${PREFIX}/lib/purple-2
|
||||
${MKDIR} ${PREFIX}/share/pixmaps/pidgin/emotes/skype
|
||||
${INSTALL_DATA} ${WRKSRC}/theme ${PREFIX}/share/pixmaps/pidgin/emotes/skype
|
||||
.for i in 16 22 48
|
||||
${MKDIR} ${PREFIX}/share/pixmaps/pidgin/protocols/${i}
|
||||
${INSTALL_DATA} ${WRKSRC}/icons/${i}/skypeout.png \
|
||||
${WRKSRC}/icons/${i}/skype.png \
|
||||
${PREFIX}/share/pixmaps/pidgin/protocols/${i}/
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
2
net-im/pidgin-skype/distinfo
Normal file
2
net-im/pidgin-skype/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pidgin-skype-svn-r604.tar.xz) = c32da346e2baf4105dc5e52be89243fbe8a14e04c5414afaed73d7d6475bc75b
|
||||
SIZE (pidgin-skype-svn-r604.tar.xz) = 113888
|
32
net-im/pidgin-skype/files/patch-skype_messaging.c
Normal file
32
net-im/pidgin-skype/files/patch-skype_messaging.c
Normal file
@ -0,0 +1,32 @@
|
||||
--- ./skype_messaging.c.orig 2010-01-28 02:22:49.000000000 +0100
|
||||
+++ ./skype_messaging.c 2010-12-20 02:20:23.000000000 +0100
|
||||
@@ -176,7 +176,7 @@
|
||||
#ifdef __APPLE__
|
||||
guint timeout = 0;
|
||||
#else
|
||||
-#ifdef _WIN32
|
||||
+#if _WIN32 || __FreeBSD__
|
||||
guint timeout = 0;
|
||||
#else
|
||||
gboolean condition_result;
|
||||
@@ -223,6 +223,12 @@
|
||||
|
||||
if (timeout++ == 10000)
|
||||
#else
|
||||
+#ifdef __FreeBSD__
|
||||
+ usleep(1000);
|
||||
+ g_static_mutex_lock2(&mutex);
|
||||
+
|
||||
+ if (timeout++ == 10000)
|
||||
+#else
|
||||
|
||||
//wait for message for a maximum of 10 seconds
|
||||
g_get_current_time(&endtime);
|
||||
@@ -235,6 +241,7 @@
|
||||
if(!condition_result)
|
||||
#endif
|
||||
#endif
|
||||
+#endif
|
||||
{
|
||||
//we timed out while waiting
|
||||
g_hash_table_remove(message_queue, &cur_message_num);
|
7
net-im/pidgin-skype/pkg-descr
Normal file
7
net-im/pidgin-skype/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
This is a Skype Plugin for Pidgin/libpurple/Adium. It lets you view and
|
||||
chat with all your Skype buddies from within Pidgin/Adium. You still
|
||||
need Skype to be running to be able to use it, but it lets you keep a
|
||||
consistent user interface and use all the other nifty Pidgin/Adium
|
||||
plugins with it, like spell-checking or OTR encryption. -- Eion Robb
|
||||
|
||||
WWW: http://eion.robbmob.com/
|
13
net-im/pidgin-skype/pkg-plist
Normal file
13
net-im/pidgin-skype/pkg-plist
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $FreeBSD$
|
||||
lib/purple-2/libskype.so
|
||||
share/pixmaps/pidgin/protocols/16/skypeout.png
|
||||
share/pixmaps/pidgin/protocols/22/skypeout.png
|
||||
share/pixmaps/pidgin/protocols/48/skypeout.png
|
||||
share/pixmaps/pidgin/protocols/16/skype.png
|
||||
share/pixmaps/pidgin/protocols/22/skype.png
|
||||
share/pixmaps/pidgin/protocols/48/skype.png
|
||||
share/pixmaps/pidgin/emotes/skype/theme
|
||||
@dirrm share/pixmaps/pidgin/emotes/skype
|
||||
@dirrmtry share/pixmaps/pidgin/protocols/48
|
||||
@dirrmtry share/pixmaps/pidgin/protocols/22
|
||||
@dirrmtry share/pixmaps/pidgin/protocols/16
|
Loading…
Reference in New Issue
Block a user