summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/pidgin
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-08 22:51:41 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-08 22:51:41 +0200
commit1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch)
treea21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/pidgin
downloadmeta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/pidgin')
-rw-r--r--meta-oe/recipes-support/pidgin/libotr/fix_qa-issue_include.patch18
-rw-r--r--meta-oe/recipes-support/pidgin/libotr/sepbuild.patch16
-rw-r--r--meta-oe/recipes-support/pidgin/libotr_4.0.0.bb15
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin-otr/ignore_extra-portability_warnings.patch19
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb19
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin/pidgin-cross-python-265.patch16
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin/pidgin.desktop-set-icon.patch11
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin/purple-OE-branding-25.patch16
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin/sanitize-configure.ac.patch33
-rw-r--r--meta-oe/recipes-support/pidgin/pidgin_2.10.9.bb106
10 files changed, 269 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/pidgin/libotr/fix_qa-issue_include.patch b/meta-oe/recipes-support/pidgin/libotr/fix_qa-issue_include.patch
new file mode 100644
index 000000000..b78663310
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/libotr/fix_qa-issue_include.patch
@@ -0,0 +1,18 @@
1libotr: Fix QA-issue where also files from buildhost would be included
2
3Warning was:
4cc1: warning: include location "/usr/include" is unsafe for
5cross-compilation [-Wpoison-system-directories]
6
7Upstream-Status: Pending
8
9Signed-off-by: Jakob Drexel <jake42@rommel.stw.uni-erlangen.de>
10
11--- a/toolkit/Makefile.am 2012-05-03 15:52:22.000000000 +0200
12+++ b/toolkit/Makefile.am 2014-01-13 12:12:26.030369357 +0100
13@@ -1,4 +1,4 @@
14-INCLUDES = -I$(includedir) -I../src @LIBGCRYPT_CFLAGS@
15+INCLUDES = -I../src @LIBGCRYPT_CFLAGS@
16
17 noinst_HEADERS = aes.h ctrmode.h parse.h sesskeys.h readotr.h sha1hmac.h
18
diff --git a/meta-oe/recipes-support/pidgin/libotr/sepbuild.patch b/meta-oe/recipes-support/pidgin/libotr/sepbuild.patch
new file mode 100644
index 000000000..f66e52881
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/libotr/sepbuild.patch
@@ -0,0 +1,16 @@
1Fix builds with ${B} != ${S}
2
3Upstream-Status: Pending
4
5RP 2014/7/17
6
7Index: libotr-4.0.0/toolkit/Makefile.am
8===================================================================
9--- libotr-4.0.0.orig/toolkit/Makefile.am 2014-07-16 18:09:59.777858022 +0000
10+++ libotr-4.0.0/toolkit/Makefile.am 2014-07-17 06:28:51.359066155 +0000
11@@ -1,4 +1,4 @@
12-INCLUDES = -I../src @LIBGCRYPT_CFLAGS@
13+INCLUDES = -I$(top_srcdir)/src @LIBGCRYPT_CFLAGS@
14
15 noinst_HEADERS = aes.h ctrmode.h parse.h sesskeys.h readotr.h sha1hmac.h
16
diff --git a/meta-oe/recipes-support/pidgin/libotr_4.0.0.bb b/meta-oe/recipes-support/pidgin/libotr_4.0.0.bb
new file mode 100644
index 000000000..dd9eeab7a
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/libotr_4.0.0.bb
@@ -0,0 +1,15 @@
1SUMMARY = "(OTR) Messaging allows you to have private conversations over instant messaging"
2HOMEPAGE = "http://www.cypherpunks.ca/otr/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=92fe174bad6da3763f6e9e9eaff6df24"
5DEPENDS = "libgcrypt libgpg-error"
6
7SRC_URI = "http://www.cypherpunks.ca/otr/${BP}.tar.gz \
8 file://fix_qa-issue_include.patch \
9 file://sepbuild.patch \
10"
11
12SRC_URI[md5sum] = "00979dca82d70383fcd1b01f3974363c"
13SRC_URI[sha256sum] = "3f911994409898e74527730745ef35ed75c352c695a1822a677a34b2cf0293b4"
14
15inherit autotools pkgconfig
diff --git a/meta-oe/recipes-support/pidgin/pidgin-otr/ignore_extra-portability_warnings.patch b/meta-oe/recipes-support/pidgin/pidgin-otr/ignore_extra-portability_warnings.patch
new file mode 100644
index 000000000..db0ad873b
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/pidgin-otr/ignore_extra-portability_warnings.patch
@@ -0,0 +1,19 @@
1pidgin-otr: Silence no-extra-portability warnings
2
3Make it build with OE, was not building with warning turned on
4
5Upstream-Status: Pending
6
7Signed-off-by: Jakob Drexel <jake42@rommel.stw.uni-erlangen.de>
8
9--- a/configure.ac 2012-09-01 17:03:19.000000000 +0200
10+++ b/configure.ac 2014-01-12 21:59:24.920300215 +0100
11@@ -4,7 +4,7 @@
12
13 AM_CONFIG_HEADER(config.h)
14
15-AM_INIT_AUTOMAKE([-Wall -Werror])
16+AM_INIT_AUTOMAKE([-Wall -Werror -Wno-extra-portability])
17
18 AC_PROG_CC
19
diff --git a/meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb b/meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb
new file mode 100644
index 000000000..18dbe0959
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/pidgin-otr_4.0.0.bb
@@ -0,0 +1,19 @@
1SUMMARY = "(OTR) Messaging allows you to have private conversations over instant messaging"
2HOMEPAGE = "http://www.cypherpunks.ca/otr/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=92fe174bad6da3763f6e9e9eaff6df24"
5DEPENDS = "libgcrypt libotr pidgin intltool-native"
6
7SRC_URI = "http://www.cypherpunks.ca/otr/${BP}.tar.gz \
8 file://ignore_extra-portability_warnings.patch \
9"
10
11SRC_URI[md5sum] = "eadb953376acc474e56041d4c12aa2c8"
12SRC_URI[sha256sum] = "d56b3f092dbe9ee6597641c7d2dd294884dc04ba47aaf4ec571cd54977df4691"
13
14
15FILES_${PN} = "${libdir}/pidgin/*"
16FILES_${PN}-dbg = "${libdir}/pidgin/.debug"
17FILES_${PN}-dbg += "${libdir}/pidgin/.debug/pidgin-otr.so"
18FILES_${PN}-dbg += "/usr/src/debug/pidgin-otr/${PV}-${PR}/${P}/*"
19inherit autotools pkgconfig
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 000000000..57c4c4681
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/pidgin/pidgin-cross-python-265.patch
@@ -0,0 +1,16 @@
1Index: 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 000000000..05f76895b
--- /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 000000000..293ef709d
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/pidgin/purple-OE-branding-25.patch
@@ -0,0 +1,16 @@
1Index: 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 000000000..a77d64f40
--- /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.10.9.bb b/meta-oe/recipes-support/pidgin/pidgin_2.10.9.bb
new file mode 100644
index 000000000..b63535237
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/pidgin_2.10.9.bb
@@ -0,0 +1,106 @@
1DESCRIPTION = "multi-protocol instant messaging client"
2SECTION = "x11/network"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5DEPENDS = "python startup-notification avahi gtk+ ncurses gnutls virtual/libintl gstreamer dbus intltool-native farsight2 libidn"
6
7inherit autotools gettext pkgconfig gconf perlnative
8
9SRC_URI = "\
10 ${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \
11 file://sanitize-configure.ac.patch \
12 file://pidgin.desktop-set-icon.patch \
13 file://purple-OE-branding-25.patch \
14 file://pidgin-cross-python-265.patch \
15"
16
17SRC_URI[md5sum] = "10a4a69d077893f6dd3438cd8af94e81"
18SRC_URI[sha256sum] = "dc362ed8577f623eea4554a79e917073aa726825074fea402f2e515f0f51f319"
19
20EXTRA_OECONF = " \
21 --enable-vv \
22 --disable-perl \
23 --disable-tcl \
24 --disable-gevolution \
25 --disable-schemas-install \
26 --x-includes=${STAGING_INCDIR} \
27 --x-libraries=${STAGING_LIBDIR} \
28 --enable-gnutls=yes \
29 --with-ncurses-headers=${STAGING_INCDIR} \
30 --with-gnutls-includes=${STAGING_INCDIR} \
31 --with-gnutls-libs=${STAGING_LIBDIR} \
32 --disable-gtkspell \
33 --disable-meanwhile \
34 --disable-nm \
35 --disable-screensaver \
36 --enable-nss=no \
37"
38
39do_configure_prepend() {
40 touch ${S}/po/Makefile
41 sed -i "s#PY_VERSION=`$PYTHON -c 'import sys ; print sys.version[0:3]'`#PY_VERSION=${PYTHON_BASEVERSION}#g" ${S}/configure.ac
42}
43
44OE_LT_RPATH_ALLOW=":${libdir}/purple-2:"
45OE_LT_RPATH_ALLOW[export]="1"
46
47PACKAGES =+ "libpurple-dbg libpurple-dev libpurple libgnt-dbg libgnt libgnt-dev finch-dbg finch finch-dev ${PN}-data"
48
49LEAD_SONAME = "libpurple.so.0"
50FILES_libpurple = "${libdir}/libpurple*.so.* ${libdir}/purple-2 ${bindir}/purple-* ${sysconfdir}/gconf/schemas/purple* ${datadir}/purple/ca-certs"
51FILES_libpurple-dev = "${libdir}/libpurple*.la \
52 ${libdir}/libpurple*.so \
53 ${libdir}/purple-2/*.la \
54 ${libdir}/purple-2/libjabber.so \
55 ${libdir}/purple-2/liboscar.so \
56 ${libdir}/purple-2/libymsg.so \
57 ${datadir}/aclocal"
58FILES_libpurple-dbg += "${libdir}/.debug/libpurple* \
59 ${libdir}/purple-2/.debug"
60FILES_libgnt = "${libdir}/libgnt.so.* ${libdir}/gnt/*.so"
61FILES_libgnt-dev = "${libdir}/gnt/*.la"
62FILES_libgnt-dbg = "${libdir}/gnt/.debug"
63FILES_finch = "${bindir}/finch"
64FILES_finch-dev = "${libdir}/finch/*.la"
65FILES_finch-dbg = "${bindir}/.debug/finch \
66 ${libdir}/finch/.debug"
67
68FILES_${PN} = "${bindir} ${datadir}/${PN} ${libdir}/${PN}/*.so \
69 ${datadir}/applications"
70RRECOMMENDS_${PN} = "${PN}-data libpurple-plugin-ssl-gnutls libpurple-protocol-irc libpurple-protocol-xmpp"
71
72FILES_${PN}-data = "${datadir}/pixmaps ${datadir}/sounds ${datadir}/icons"
73FILES_${PN}-dev += "${libdir}/${PN}/*.la"
74
75PACKAGES_DYNAMIC += "^libpurple-protocol-.* ^libpurple-plugin-.* ^pidgin-plugin-.* ^finch-plugin-.*"
76
77python populate_packages_prepend () {
78 pidgroot = d.expand('${libdir}/pidgin')
79 purple = d.expand('${libdir}/purple-2')
80 finch = d.expand('${libdir}/finch')
81
82 do_split_packages(d, pidgroot, '^([^l][^i][^b].*)\.so$',
83 output_pattern='pidgin-plugin-%s',
84 description='Pidgin plugin %s',
85 prepend=True, extra_depends='')
86
87 do_split_packages(d, purple, '^lib(.*)\.so$',
88 output_pattern='libpurple-protocol-%s',
89 description='Libpurple protocol plugin for %s',
90 prepend=True, extra_depends='')
91
92 do_split_packages(d, purple, '^(ssl-.*)\.so$',
93 output_pattern='libpurple-plugin-%s',
94 description='libpurple plugin %s',
95 prepend=True, extra_depends='libpurple-plugin-ssl')
96
97 do_split_packages(d, purple, '^([^l][^i][^b].*)\.so$',
98 output_pattern='libpurple-plugin-%s',
99 description='libpurple plugin %s',
100 prepend=True, extra_depends='')
101
102 do_split_packages(d, finch, '^([^l][^i][^b].*)\.so$',
103 output_pattern='finch-plugin-%s',
104 description='Finch plugin %s',
105 prepend=True, extra_depends='')
106}