Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | SUMMARY = "multi-protocol instant messaging client" |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 2 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 3 | SECTION = "x11/network" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "GPL-2.0-only" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 6 | DEPENDS = "python3 virtual/libintl intltool-native libxml2 gconf glib-2.0-native" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 7 | |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 8 | inherit autotools gettext pkgconfig gconf perlnative python3native |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "\ |
| 11 | ${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \ |
| 12 | file://sanitize-configure.ac.patch \ |
| 13 | file://purple-OE-branding-25.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | " |
| 15 | |
Andrew Geissler | e34f896 | 2021-04-15 15:53:51 -0500 | [diff] [blame] | 16 | SRC_URI[sha256sum] = "19654ad276b149646371fbdac21bc7620742f2975f7399fed0ffc1a18fbaf603" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 18 | CVE_STATUS[CVE-2010-1624] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." |
| 19 | CVE_STATUS[CVE-2011-3594] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 20 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | PACKAGECONFIG ??= "gnutls consoleui avahi dbus idn nss \ |
| 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtk startup-notification', '', d)} \ |
| 23 | " |
| 24 | PACKAGECONFIG[farsight2] = "--enable-farstream,--disable-farstream,farsight2" |
| 25 | # --disable-gstreamer compile without GStreamer audio support |
| 26 | # --disable-gstreamer-video |
| 27 | # compile without GStreamer 1.0 Video Overlay support |
| 28 | # --disable-gstreamer-interfaces |
| 29 | # compile without GStreamer 0.10 interface support |
| 30 | # --with-gstreamer=<version> |
| 31 | # compile with GStreamer 0.10 or 1.0 interface |
| 32 | PACKAGECONFIG[gstreamer] = "--enable-gstreamer,--disable-gstreamer,gstreamer" |
| 33 | PACKAGECONFIG[vv] = "--enable-vv,--disable-vv,gstreamer" |
| 34 | PACKAGECONFIG[idn] = "--enable-idn,--disable-idn,libidn" |
| 35 | PACKAGECONFIG[gtk] = "--enable-gtkui,--disable-gtkui,gtk+" |
| 36 | PACKAGECONFIG[x11] = "--with-x=yes --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--with-x=no,virtual/libx11" |
| 37 | PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-startup-notification,startup-notification" |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 38 | PACKAGECONFIG[consoleui] = "--enable-consoleui --with-ncurses-headers=${STAGING_INCDIR},--disable-consoleui,libgnt" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 39 | PACKAGECONFIG[gnutls] = "--enable-gnutls --with-gnutls-includes=${STAGING_INCDIR} --with-gnutls-libs=${STAGING_LIBDIR},--disable-gnutls,gnutls,libpurple-plugin-ssl-gnutls" |
| 40 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus dbus-glib" |
| 41 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" |
| 42 | PACKAGECONFIG[nss] = "--enable-nss,--disable-nss,nss nspr,libpurple-plugin-ssl-nss" |
Andrew Geissler | e34f896 | 2021-04-15 15:53:51 -0500 | [diff] [blame] | 43 | PACKAGECONFIG[cyrus-sasl] = "--enable-cyrus-sasl,--disable-cyrus-sasl,cyrus-sasl" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 44 | |
| 45 | EXTRA_OECONF = " \ |
| 46 | --disable-perl \ |
| 47 | --disable-tcl \ |
| 48 | --disable-gevolution \ |
| 49 | --disable-schemas-install \ |
| 50 | --disable-gtkspell \ |
| 51 | --disable-meanwhile \ |
| 52 | --disable-nm \ |
| 53 | --disable-screensaver \ |
| 54 | " |
| 55 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 56 | OE_LT_RPATH_ALLOW=":${libdir}/purple-2:" |
| 57 | OE_LT_RPATH_ALLOW[export]="1" |
| 58 | |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 59 | PACKAGES =+ "libpurple-dev libpurple finch finch-dev ${PN}-data" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 60 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 61 | RPROVIDES:${PN}-dbg += "libpurple-dbg finch-dbg" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 62 | |
| 63 | LEAD_SONAME = "libpurple.so.0" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 64 | FILES:libpurple = "${libdir}/libpurple*.so.* ${libdir}/purple-2 ${bindir}/purple-* ${sysconfdir}/gconf/schemas/purple* ${datadir}/purple/ca-certs" |
| 65 | FILES:libpurple-dev = "${libdir}/libpurple*.la \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 66 | ${libdir}/libpurple*.so \ |
| 67 | ${libdir}/purple-2/*.la \ |
| 68 | ${libdir}/purple-2/libjabber.so \ |
| 69 | ${libdir}/purple-2/liboscar.so \ |
| 70 | ${libdir}/purple-2/libymsg.so \ |
| 71 | ${datadir}/aclocal" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 72 | FILES:finch = "${bindir}/finch" |
| 73 | FILES:finch-dev = "${libdir}/finch/*.la" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 74 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 75 | FILES:${PN} = "${bindir} ${datadir}/${PN} ${libdir}/${PN}/*.so \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 76 | ${datadir}/applications" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 77 | RRECOMMENDS:${PN} = "${PN}-data libpurple-protocol-irc libpurple-protocol-xmpp" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 78 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 79 | FILES:${PN}-data = "${datadir}/pixmaps ${datadir}/sounds ${datadir}/icons ${datadir}/appdata" |
| 80 | FILES:${PN}-dev += "${libdir}/${PN}/*.la" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 81 | |
| 82 | PACKAGES_DYNAMIC += "^libpurple-protocol-.* ^libpurple-plugin-.* ^pidgin-plugin-.* ^finch-plugin-.*" |
| 83 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 84 | python populate_packages:prepend () { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 85 | pidgroot = d.expand('${libdir}/pidgin') |
| 86 | purple = d.expand('${libdir}/purple-2') |
| 87 | finch = d.expand('${libdir}/finch') |
| 88 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 89 | do_split_packages(d, pidgroot, r'^([^l][^i][^b].*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 90 | output_pattern='pidgin-plugin-%s', |
| 91 | description='Pidgin plugin %s', |
| 92 | prepend=True, extra_depends='') |
| 93 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 94 | do_split_packages(d, purple, r'^lib(.*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 95 | output_pattern='libpurple-protocol-%s', |
| 96 | description='Libpurple protocol plugin for %s', |
| 97 | prepend=True, extra_depends='') |
| 98 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 99 | do_split_packages(d, purple, r'^(ssl-.*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 100 | output_pattern='libpurple-plugin-%s', |
| 101 | description='libpurple plugin %s', |
| 102 | prepend=True, extra_depends='libpurple-plugin-ssl') |
| 103 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 104 | do_split_packages(d, purple, r'^([^l][^i][^b].*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 105 | output_pattern='libpurple-plugin-%s', |
| 106 | description='libpurple plugin %s', |
| 107 | prepend=True, extra_depends='') |
| 108 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 109 | do_split_packages(d, finch, r'^([^l][^i][^b].*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 110 | output_pattern='finch-plugin-%s', |
| 111 | description='Finch plugin %s', |
| 112 | prepend=True, extra_depends='') |
| 113 | } |