diff options
Diffstat (limited to 'meta-oe/recipes-support/pidgin/pidgin_2.14.14.bb')
-rw-r--r-- | meta-oe/recipes-support/pidgin/pidgin_2.14.14.bb | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/pidgin/pidgin_2.14.14.bb b/meta-oe/recipes-support/pidgin/pidgin_2.14.14.bb new file mode 100644 index 0000000000..13a22f6e59 --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin_2.14.14.bb | |||
@@ -0,0 +1,119 @@ | |||
1 | SUMMARY = "multi-protocol instant messaging client" | ||
2 | |||
3 | SECTION = "x11/network" | ||
4 | LICENSE = "GPL-2.0-only" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
6 | DEPENDS = "python3 virtual/libintl intltool-native libxml2 gconf glib-2.0-native" | ||
7 | |||
8 | inherit autotools gettext pkgconfig gconf perlnative python3native | ||
9 | |||
10 | SRC_URI = "\ | ||
11 | ${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \ | ||
12 | file://sanitize-configure.ac.patch \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[sha256sum] = "0ffc9994def10260f98a55cd132deefa8dc4a9835451cc0e982747bd458e2356" | ||
16 | |||
17 | CVE_STATUS[CVE-2010-1624] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." | ||
18 | CVE_STATUS[CVE-2011-3594] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." | ||
19 | |||
20 | PACKAGECONFIG ??= "gnutls consoleui avahi dbus idn nss \ | ||
21 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtk startup-notification', '', d)} \ | ||
22 | " | ||
23 | # --disable-gstreamer compile without GStreamer audio support | ||
24 | # --disable-gstreamer-video | ||
25 | # compile without GStreamer 1.0 Video Overlay support | ||
26 | # --disable-gstreamer-interfaces | ||
27 | # compile without GStreamer 0.10 interface support | ||
28 | # --with-gstreamer=<version> | ||
29 | # compile with GStreamer 0.10 or 1.0 interface | ||
30 | PACKAGECONFIG[gstreamer] = "--enable-gstreamer,--disable-gstreamer,gstreamer1.0" | ||
31 | PACKAGECONFIG[idn] = "--enable-idn,--disable-idn,libidn" | ||
32 | PACKAGECONFIG[gtk] = "--enable-gtkui,--disable-gtkui,gtk+" | ||
33 | PACKAGECONFIG[x11] = "--with-x=yes --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--with-x=no,virtual/libx11" | ||
34 | PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-startup-notification,startup-notification" | ||
35 | PACKAGECONFIG[consoleui] = "--enable-consoleui --with-ncurses-headers=${STAGING_INCDIR},--disable-consoleui,libgnt" | ||
36 | PACKAGECONFIG[gnutls] = "--enable-gnutls --with-gnutls-includes=${STAGING_INCDIR} --with-gnutls-libs=${STAGING_LIBDIR},--disable-gnutls,gnutls,libpurple-plugin-ssl-gnutls" | ||
37 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus dbus-glib" | ||
38 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" | ||
39 | PACKAGECONFIG[nss] = "--enable-nss,--disable-nss,nss nspr,libpurple-plugin-ssl-nss" | ||
40 | PACKAGECONFIG[cyrus-sasl] = "--enable-cyrus-sasl,--disable-cyrus-sasl,cyrus-sasl" | ||
41 | |||
42 | EXTRA_OECONF = " \ | ||
43 | --disable-perl \ | ||
44 | --disable-tcl \ | ||
45 | --disable-gevolution \ | ||
46 | --disable-schemas-install \ | ||
47 | --disable-gtkspell \ | ||
48 | --disable-meanwhile \ | ||
49 | --disable-nm \ | ||
50 | --disable-screensaver \ | ||
51 | --disable-farstream \ | ||
52 | --disable-vv \ | ||
53 | " | ||
54 | |||
55 | # CONFIG_ARGS is used to display build info. Replace full paths by reproducible | ||
56 | # variables ($S, $WORKDIR) | ||
57 | do_configure:append() { | ||
58 | sed -i -e "/CONFIG_ARGS/s|${S}|\$S|g" ${B}/config.h | ||
59 | sed -i -e "/CONFIG_ARGS/s|${WORKDIR}|\$WORKDIR|g" ${B}/config.h | ||
60 | } | ||
61 | |||
62 | OE_LT_RPATH_ALLOW = ":${libdir}/purple-2:" | ||
63 | OE_LT_RPATH_ALLOW[export] = "1" | ||
64 | |||
65 | PACKAGES =+ "libpurple-dev libpurple finch finch-dev ${PN}-data" | ||
66 | |||
67 | RPROVIDES:${PN}-dbg += "libpurple-dbg finch-dbg" | ||
68 | |||
69 | LEAD_SONAME = "libpurple.so.0" | ||
70 | FILES:libpurple = "${libdir}/libpurple*.so.* ${libdir}/purple-2 ${bindir}/purple-* ${sysconfdir}/gconf/schemas/purple* ${datadir}/purple/ca-certs" | ||
71 | FILES:libpurple-dev = "${libdir}/libpurple*.la \ | ||
72 | ${libdir}/libpurple*.so \ | ||
73 | ${libdir}/purple-2/*.la \ | ||
74 | ${libdir}/purple-2/libjabber.so \ | ||
75 | ${libdir}/purple-2/liboscar.so \ | ||
76 | ${libdir}/purple-2/libymsg.so \ | ||
77 | ${datadir}/aclocal" | ||
78 | FILES:finch = "${bindir}/finch" | ||
79 | FILES:finch-dev = "${libdir}/finch/*.la" | ||
80 | |||
81 | FILES:${PN} = "${bindir} ${datadir}/${PN} ${libdir}/${PN}/*.so \ | ||
82 | ${datadir}/applications ${datadir}/metainfo" | ||
83 | RRECOMMENDS:${PN} = "${PN}-data libpurple-protocol-irc libpurple-protocol-xmpp" | ||
84 | |||
85 | FILES:${PN}-data = "${datadir}/pixmaps ${datadir}/sounds ${datadir}/icons ${datadir}/appdata" | ||
86 | FILES:${PN}-dev += "${libdir}/${PN}/*.la" | ||
87 | |||
88 | PACKAGES_DYNAMIC += "^libpurple-protocol-.* ^libpurple-plugin-.* ^pidgin-plugin-.* ^finch-plugin-.*" | ||
89 | |||
90 | python populate_packages:prepend () { | ||
91 | pidgroot = d.expand('${libdir}/pidgin') | ||
92 | purple = d.expand('${libdir}/purple-2') | ||
93 | finch = d.expand('${libdir}/finch') | ||
94 | |||
95 | do_split_packages(d, pidgroot, r'^([^l][^i][^b].*)\.so$', | ||
96 | output_pattern='pidgin-plugin-%s', | ||
97 | description='Pidgin plugin %s', | ||
98 | prepend=True, extra_depends='') | ||
99 | |||
100 | do_split_packages(d, purple, r'^lib(.*)\.so$', | ||
101 | output_pattern='libpurple-protocol-%s', | ||
102 | description='Libpurple protocol plugin for %s', | ||
103 | prepend=True, extra_depends='') | ||
104 | |||
105 | do_split_packages(d, purple, r'^(ssl-.*)\.so$', | ||
106 | output_pattern='libpurple-plugin-%s', | ||
107 | description='libpurple plugin %s', | ||
108 | prepend=True, extra_depends='libpurple-plugin-ssl') | ||
109 | |||
110 | do_split_packages(d, purple, r'^([^l][^i][^b].*)\.so$', | ||
111 | output_pattern='libpurple-plugin-%s', | ||
112 | description='libpurple plugin %s', | ||
113 | prepend=True, extra_depends='') | ||
114 | |||
115 | do_split_packages(d, finch, r'^([^l][^i][^b].*)\.so$', | ||
116 | output_pattern='finch-plugin-%s', | ||
117 | description='Finch plugin %s', | ||
118 | prepend=True, extra_depends='') | ||
119 | } | ||