diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-10 13:24:47 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-10 14:43:41 +0200 |
| commit | 89500c583e0f1dc1b4ffdf72914e08e505e427e0 (patch) | |
| tree | b073036cc61aa34ca5ac9eec4d617366e0dcb3d5 /meta-oe/recipes-support/pidgin | |
| parent | e66079da37992abd54486488aa06a99bf7a4198c (diff) | |
| download | meta-openembedded-89500c583e0f1dc1b4ffdf72914e08e505e427e0.tar.gz | |
recipes,classes: import a lot of recipes from meta-shr
* tested on shr-lite-image for om-gta02 and nokia900 (with meta-shr layer)
Diffstat (limited to 'meta-oe/recipes-support/pidgin')
6 files changed, 186 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/pidgin/pidgin.inc b/meta-oe/recipes-support/pidgin/pidgin.inc new file mode 100644 index 0000000000..96a2345a2f --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin.inc | |||
| @@ -0,0 +1,88 @@ | |||
| 1 | DESCRIPTION = "multi-protocol instant messaging client" | ||
| 2 | SECTION = "x11/network" | ||
| 3 | LICENSE = "GPL" | ||
| 4 | DEPENDS = "python startup-notification avahi gtk+ ncurses gnutls virtual/libintl gstreamer dbus" | ||
| 5 | INC_PR = "r0" | ||
| 6 | |||
| 7 | inherit autotools gettext pkgconfig gconf | ||
| 8 | |||
| 9 | EXTRA_OECONF = " \ | ||
| 10 | --enable-vv \ | ||
| 11 | --disable-perl \ | ||
| 12 | --disable-tcl \ | ||
| 13 | --disable-gevolution \ | ||
| 14 | --disable-schemas-install \ | ||
| 15 | --x-includes=${STAGING_INCDIR} \ | ||
| 16 | --x-libraries=${STAGING_LIBDIR} \ | ||
| 17 | --enable-gnutls=yes \ | ||
| 18 | --with-ncurses-headers=${STAGING_INCDIR} \ | ||
| 19 | --with-gnutls-includes=${STAGING_INCDIR} \ | ||
| 20 | --with-gnutls-libs=${STAGING_LIBDIR} \ | ||
| 21 | " | ||
| 22 | |||
| 23 | do_configure_prepend() { | ||
| 24 | touch ${S}/po/Makefile | ||
| 25 | } | ||
| 26 | |||
| 27 | OE_LT_RPATH_ALLOW=":${libdir}/purple-2:" | ||
| 28 | OE_LT_RPATH_ALLOW[export]="1" | ||
| 29 | |||
| 30 | PACKAGES =+ "libpurple-dbg libpurple-dev libpurple libgnt-dbg libgnt libgnt-dev finch-dbg finch finch-dev ${PN}-data" | ||
| 31 | |||
| 32 | LEAD_SONAME = "libpurple.so.0" | ||
| 33 | FILES_libpurple = "${libdir}/libpurple*.so.* ${libdir}/purple-2 ${bindir}/purple-* ${sysconfdir}/gconf/schemas/purple* ${datadir}/purple/ca-certs" | ||
| 34 | FILES_libpurple-dev = "${libdir}/libpurple*.la \ | ||
| 35 | ${libdir}/libpurple*.so \ | ||
| 36 | ${libdir}/purple-2/*.la \ | ||
| 37 | ${libdir}/purple-2/libjabber.so \ | ||
| 38 | ${libdir}/purple-2/liboscar.so \ | ||
| 39 | ${datadir}/aclocal" | ||
| 40 | FILES_libpurple-dbg += "${libdir}/.debug/libpurple* \ | ||
| 41 | ${libdir}/purple-2/.debug" | ||
| 42 | FILES_libgnt = "${libdir}/libgnt.so.* ${libdir}/gnt/*.so" | ||
| 43 | FILES_libgnt-dev = "${libdir}/gnt/*.la" | ||
| 44 | FILES_libgnt-dbg = "${libdir}/gnt/.debug \ | ||
| 45 | FILES_finch = "${bindir}/finch" | ||
| 46 | FILES_finch-dev = "${libdir}/finch/*.la" | ||
| 47 | FILES_finch-dbg = "${bindir}/.debug/finch \ | ||
| 48 | ${libdir}/finch/.debug" | ||
| 49 | |||
| 50 | FILES_${PN} = "${bindir} ${datadir}/${PN} ${libdir}/${PN}/*.so \ | ||
| 51 | ${datadir}/applications" | ||
| 52 | RRECOMMENDS_${PN} = "${PN}-data libpurple-plugin-ssl-gnutls libpurple-protocol-irc libpurple-protocol-xmpp" | ||
| 53 | |||
| 54 | FILES_${PN}-data = "${datadir}/pixmaps ${datadir}/sounds ${datadir}/icons" | ||
| 55 | FILES_${PN}-dev += "${libdir}/${PN}/*.la" | ||
| 56 | |||
| 57 | PACKAGES_DYNAMIC = "libpurple-protocol-* libpurple-plugin-* pidgin-plugin-* finch-plugin-*" | ||
| 58 | |||
| 59 | python populate_packages_prepend () { | ||
| 60 | pidgroot = bb.data.expand('${libdir}/pidgin', d) | ||
| 61 | purple = bb.data.expand('${libdir}/purple-2', d) | ||
| 62 | finch = bb.data.expand('${libdir}/finch', d) | ||
| 63 | |||
| 64 | do_split_packages(d, pidgroot, '^([^l][^i][^b].*)\.so$', | ||
| 65 | output_pattern='pidgin-plugin-%s', | ||
| 66 | description='Pidgin plugin %s', | ||
| 67 | prepend=True, extra_depends='') | ||
| 68 | |||
| 69 | do_split_packages(d, purple, '^lib(.*)\.so$', | ||
| 70 | output_pattern='libpurple-protocol-%s', | ||
| 71 | description='Libpurple protocol plugin for %s', | ||
| 72 | prepend=True, extra_depends='') | ||
| 73 | |||
| 74 | do_split_packages(d, purple, '^(ssl-.*)\.so$', | ||
| 75 | output_pattern='libpurple-plugin-%s', | ||
| 76 | description='libpurple plugin %s', | ||
| 77 | prepend=True, extra_depends='libpurple-plugin-ssl') | ||
| 78 | |||
| 79 | do_split_packages(d, purple, '^([^l][^i][^b].*)\.so$', | ||
| 80 | output_pattern='libpurple-plugin-%s', | ||
| 81 | description='libpurple plugin %s', | ||
| 82 | prepend=True, extra_depends='') | ||
| 83 | |||
| 84 | do_split_packages(d, finch, '^([^l][^i][^b].*)\.so$', | ||
| 85 | output_pattern='finch-plugin-%s', | ||
| 86 | description='Finch plugin %s', | ||
| 87 | prepend=True, extra_depends='') | ||
| 88 | } | ||
diff --git a/meta-oe/recipes-support/pidgin/pidgin/pidgin-cross-python-265.patch b/meta-oe/recipes-support/pidgin/pidgin/pidgin-cross-python-265.patch new file mode 100644 index 0000000000..57c4c46814 --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin/pidgin-cross-python-265.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: pidgin-2.6.5/configure.ac | ||
| 2 | =================================================================== | ||
| 3 | --- pidgin-2.6.5.orig/configure.ac | ||
| 4 | +++ pidgin-2.6.5/configure.ac | ||
| 5 | @@ -1470,8 +1470,9 @@ if test "_$pythonpath" != _ ; then | ||
| 6 | AC_CHECK_LIB(pthread, pthread_create, ) | ||
| 7 | AC_CHECK_LIB(util, openpty, ) | ||
| 8 | AC_CHECK_LIB(db, dbopen, ) | ||
| 9 | - PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION" | ||
| 10 | - PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION" | ||
| 11 | + m4_pattern_allow([^PKG_CONFIG_SYSROOT_DIR$]) | ||
| 12 | + PY_LIBS="-L$PKG_CONFIG_SYSROOT_DIR/usr/lib/python$PY_VERSION/config -lpython$PY_VERSION" | ||
| 13 | + PY_CFLAGS="-I$PKG_CONFIG_SYSROOT_DIR/usr/include/python$PY_VERSION" | ||
| 14 | AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) | ||
| 15 | AC_MSG_RESULT(ok) | ||
| 16 | else | ||
diff --git a/meta-oe/recipes-support/pidgin/pidgin/pidgin.desktop-set-icon.patch b/meta-oe/recipes-support/pidgin/pidgin/pidgin.desktop-set-icon.patch new file mode 100644 index 0000000000..05f76895ba --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin/pidgin.desktop-set-icon.patch | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | --- pidgin-2.0.1/pidgin.desktop.in.orig 2007-06-20 23:50:44.000000000 +0000 | ||
| 2 | +++ pidgin-2.0.1/pidgin.desktop.in 2007-06-20 23:51:05.000000000 +0000 | ||
| 3 | @@ -4,7 +4,7 @@ | ||
| 4 | _GenericName=Internet Messenger | ||
| 5 | _Comment=Send instant messages over multiple protocols | ||
| 6 | Exec=pidgin | ||
| 7 | -Icon=pidgin | ||
| 8 | +Icon=/usr/share/icons/hicolor/48x48/apps/pidgin.png | ||
| 9 | StartupNotify=true | ||
| 10 | Terminal=false | ||
| 11 | Type=Application | ||
diff --git a/meta-oe/recipes-support/pidgin/pidgin/purple-OE-branding-25.patch b/meta-oe/recipes-support/pidgin/pidgin/purple-OE-branding-25.patch new file mode 100644 index 0000000000..293ef709d1 --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin/purple-OE-branding-25.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: pidgin-2.5.0/libpurple/protocols/irc/irc.h | ||
| 2 | =================================================================== | ||
| 3 | --- pidgin-2.5.0.orig/libpurple/protocols/irc/irc.h 2008-08-19 01:53:38.000000000 +0000 | ||
| 4 | +++ pidgin-2.5.0/libpurple/protocols/irc/irc.h 2008-08-27 11:15:58.000000000 +0000 | ||
| 5 | @@ -36,9 +36,9 @@ | ||
| 6 | |||
| 7 | #define IRC_DEFAULT_CHARSET "UTF-8" | ||
| 8 | #define IRC_DEFAULT_AUTODETECT FALSE | ||
| 9 | -#define IRC_DEFAULT_ALIAS "purple" | ||
| 10 | +#define IRC_DEFAULT_ALIAS "OE-user" | ||
| 11 | |||
| 12 | -#define IRC_DEFAULT_QUIT "Leaving." | ||
| 13 | +#define IRC_DEFAULT_QUIT "Powered by OE: www.openembedded.org" | ||
| 14 | |||
| 15 | #define IRC_INITIAL_BUFSIZE 1024 | ||
| 16 | |||
diff --git a/meta-oe/recipes-support/pidgin/pidgin/sanitize-configure.ac.patch b/meta-oe/recipes-support/pidgin/pidgin/sanitize-configure.ac.patch new file mode 100644 index 0000000000..a77d64f40b --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin/sanitize-configure.ac.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | --- /tmp/configure.ac 2007-05-08 17:29:02.000000000 +0200 | ||
| 2 | +++ pidgin-2.0.0/configure.ac 2007-05-08 17:30:30.325251000 +0200 | ||
| 3 | @@ -472,7 +472,7 @@ | ||
| 4 | if test "x$enable_consoleui" = "xyes"; then | ||
| 5 | dnl # Some distros put the headers in ncursesw/, some don't | ||
| 6 | found_ncurses_h=no | ||
| 7 | - for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include | ||
| 8 | + for location in $ac_ncurses_includes $NCURSES_HEADERS | ||
| 9 | do | ||
| 10 | f="$location/ncurses.h" | ||
| 11 | AC_CHECK_HEADER($f,[ | ||
| 12 | @@ -1860,10 +1860,6 @@ | ||
| 13 | KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" | ||
| 14 | fi | ||
| 15 | KRB4_LDFLAGS="-L${kerberos}/lib" | ||
| 16 | - elif test -d /usr/local/include/kerberosIV ; then | ||
| 17 | - KRB4_CFLAGS="-I/usr/local/include/kerberosIV" | ||
| 18 | - elif test -d /usr/include/kerberosIV ; then | ||
| 19 | - KRB4_CFLAGS="-I/usr/include/kerberosIV" | ||
| 20 | fi | ||
| 21 | AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.]) | ||
| 22 | |||
| 23 | @@ -1896,10 +1892,6 @@ | ||
| 24 | ZEPHYR_LDFLAGS="-L${zephyr}/lib" | ||
| 25 | elif test -d /usr/athena/include/zephyr ; then | ||
| 26 | ZEPHYR_CFLAGS="-I/usr/athena/include" | ||
| 27 | - elif test -d /usr/include/zephyr ; then | ||
| 28 | - ZEPHYR_CFLAGS="-I/usr/include" | ||
| 29 | - elif test -d /usr/local/include/zephyr ; then | ||
| 30 | - ZEPHYR_CFLAGS="-I/usr/local/include" | ||
| 31 | fi | ||
| 32 | AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.]) | ||
| 33 | AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") | ||
diff --git a/meta-oe/recipes-support/pidgin/pidgin_2.7.9.bb b/meta-oe/recipes-support/pidgin/pidgin_2.7.9.bb new file mode 100644 index 0000000000..d5527ea914 --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin_2.7.9.bb | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | require pidgin.inc | ||
| 2 | PR = "${INC_PR}.0" | ||
| 3 | |||
| 4 | DEPENDS += "farsight2 libidn" | ||
| 5 | |||
| 6 | SRC_URI = "\ | ||
| 7 | ${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \ | ||
| 8 | file://sanitize-configure.ac.patch \ | ||
| 9 | file://pidgin.desktop-set-icon.patch \ | ||
| 10 | file://purple-OE-branding-25.patch \ | ||
| 11 | file://pidgin-cross-python-265.patch \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI[md5sum] = "9bc6cf953ed7d383b215fa8487bf8829" | ||
| 15 | SRC_URI[sha256sum] = "9722d7f199a6704e29900c80f270d9409d5c28caab77f495b68108d81ba3e19e" | ||
| 16 | |||
| 17 | EXTRA_OECONF += "\ | ||
| 18 | --disable-gtkspell \ | ||
| 19 | --disable-meanwhile \ | ||
| 20 | --disable-nm \ | ||
| 21 | --disable-screensaver \ | ||
| 22 | " | ||
