From 27c5827a2a1ef496683e0a49bdfd7f1fc1703e86 Mon Sep 17 00:00:00 2001 From: steven Date: Mon, 5 Jan 2009 21:18:24 +0000 Subject: [PATCH] facebook chat plugin for pidgin and libpurple feedback and ok alek@ --- net/pidgin-facebookchat/Makefile | 44 +++++++++++++++++++ net/pidgin-facebookchat/distinfo | 5 +++ .../patches/patch-Makefile | 25 +++++++++++ net/pidgin-facebookchat/pkg/DESCR | 7 +++ net/pidgin-facebookchat/pkg/PLIST | 5 +++ 5 files changed, 86 insertions(+) create mode 100644 net/pidgin-facebookchat/Makefile create mode 100644 net/pidgin-facebookchat/distinfo create mode 100644 net/pidgin-facebookchat/patches/patch-Makefile create mode 100644 net/pidgin-facebookchat/pkg/DESCR create mode 100644 net/pidgin-facebookchat/pkg/PLIST diff --git a/net/pidgin-facebookchat/Makefile b/net/pidgin-facebookchat/Makefile new file mode 100644 index 00000000000..bf44f85b84f --- /dev/null +++ b/net/pidgin-facebookchat/Makefile @@ -0,0 +1,44 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/01/05 21:18:24 steven Exp $ + +SHARED_ONLY = Yes + +COMMENT = Facebook plugin for Pidgin + +V = 1.47 +DISTNAME = pidgin-facebookchat-source-${V} +PKGNAME = pidgin-facebookchat-${V} +CATEGORIES = net + +HOMEPAGE = http://code.google.com/p/pidgin-facebookchat/ + +MAINTAINER = Steven Mestdagh + +# GPL v3 +PERMIT_PACKAGE_FTP = Yes +PERMIT_PACKAGE_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes + +MASTER_SITES = http://pidgin-facebookchat.googlecode.com/files/ +EXTRACT_SUFX = .tar.bz2 + +WRKDIST = ${WRKDIR}/pidgin-facebookchat + +BUILD_DEPENDS = ${RUN_DEPENDS} +RUN_DEPENDS = :pidgin->=2.0.0:net/pidgin + +MAKE_FLAGS = LINUX32_COMPILER="${CC}" +ALL_TARGET = libfacebook.so + +NO_REGRESS = Yes + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/purple-2/ + ${INSTALL_DATA} ${WRKBUILD}/libfacebook.so ${PREFIX}/lib/purple-2/ +.for i in 16 22 48 + ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/pidgin/protocols/${i}/ + ${INSTALL_DATA} ${WRKSRC}/facebook${i}.png \ + ${PREFIX}/share/pixmaps/pidgin/protocols/${i}/facebook.png +.endfor + +.include diff --git a/net/pidgin-facebookchat/distinfo b/net/pidgin-facebookchat/distinfo new file mode 100644 index 00000000000..04e4c29a5df --- /dev/null +++ b/net/pidgin-facebookchat/distinfo @@ -0,0 +1,5 @@ +MD5 (pidgin-facebookchat-source-1.47.tar.bz2) = HVXYEXUXBMBYdjxTNl026g== +RMD160 (pidgin-facebookchat-source-1.47.tar.bz2) = 3QnzhCdwqv2N1QvVErDUs5D9bp0= +SHA1 (pidgin-facebookchat-source-1.47.tar.bz2) = AgGM6SoVNnfSR1cdbAVy5vFGQ0o= +SHA256 (pidgin-facebookchat-source-1.47.tar.bz2) = +R5PCAQfhytfwBBbcZd+WKL9/9ZCcgKQbemrSF8AcA4= +SIZE (pidgin-facebookchat-source-1.47.tar.bz2) = 39214 diff --git a/net/pidgin-facebookchat/patches/patch-Makefile b/net/pidgin-facebookchat/patches/patch-Makefile new file mode 100644 index 00000000000..7ca02b24465 --- /dev/null +++ b/net/pidgin-facebookchat/patches/patch-Makefile @@ -0,0 +1,25 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2009/01/05 21:18:24 steven Exp $ +--- Makefile.orig Sat Jan 3 13:24:29 2009 ++++ Makefile Sat Jan 3 13:24:37 2009 +@@ -17,21 +17,13 @@ WIN32_LIBS = -L${WIN32_DEV_DIR}/gtk_2_0/lib -L${WIN32_ + DEB_PACKAGE_DIR = ./debdir + + FACEBOOK_SOURCES = \ +- libfacebook.h \ + libfacebook.c \ +- fb_blist.h \ + fb_blist.c \ +- fb_connection.h \ + fb_connection.c \ +- fb_info.h \ + fb_info.c \ +- fb_managefriends.h \ + fb_managefriends.c \ +- fb_messages.h \ + fb_messages.c \ +- fb_notifications.h \ + fb_notifications.c \ +- fb_search.h \ + fb_search.c + + #Standard stuff here diff --git a/net/pidgin-facebookchat/pkg/DESCR b/net/pidgin-facebookchat/pkg/DESCR new file mode 100644 index 00000000000..879400cbd14 --- /dev/null +++ b/net/pidgin-facebookchat/pkg/DESCR @@ -0,0 +1,7 @@ +This is a Facebook chat plugin for Pidgin and libpurple messengers. It +connects to the new Facebook Chat IM service without the need for an API +key. + +Currently the plugin can log into the Facebook servers, grab the buddy +list, send/receive messages, add/remove friends, receive notifications, +search for Facebook friends and set your Facebook status. diff --git a/net/pidgin-facebookchat/pkg/PLIST b/net/pidgin-facebookchat/pkg/PLIST new file mode 100644 index 00000000000..8a435f1da3f --- /dev/null +++ b/net/pidgin-facebookchat/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/05 21:18:24 steven Exp $ +lib/purple-2/libfacebook.so +share/pixmaps/pidgin/protocols/16/facebook.png +share/pixmaps/pidgin/protocols/22/facebook.png +share/pixmaps/pidgin/protocols/48/facebook.png