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 | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 18 | CVE_CHECK_IGNORE += "\ |
| 19 | CVE-2010-1624 \ |
| 20 | CVE-2011-3594 \ |
| 21 | " |
| 22 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | PACKAGECONFIG ??= "gnutls consoleui avahi dbus idn nss \ |
| 24 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtk startup-notification', '', d)} \ |
| 25 | " |
| 26 | PACKAGECONFIG[farsight2] = "--enable-farstream,--disable-farstream,farsight2" |
| 27 | # --disable-gstreamer compile without GStreamer audio support |
| 28 | # --disable-gstreamer-video |
| 29 | # compile without GStreamer 1.0 Video Overlay support |
| 30 | # --disable-gstreamer-interfaces |
| 31 | # compile without GStreamer 0.10 interface support |
| 32 | # --with-gstreamer=<version> |
| 33 | # compile with GStreamer 0.10 or 1.0 interface |
| 34 | PACKAGECONFIG[gstreamer] = "--enable-gstreamer,--disable-gstreamer,gstreamer" |
| 35 | PACKAGECONFIG[vv] = "--enable-vv,--disable-vv,gstreamer" |
| 36 | PACKAGECONFIG[idn] = "--enable-idn,--disable-idn,libidn" |
| 37 | PACKAGECONFIG[gtk] = "--enable-gtkui,--disable-gtkui,gtk+" |
| 38 | PACKAGECONFIG[x11] = "--with-x=yes --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--with-x=no,virtual/libx11" |
| 39 | PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-startup-notification,startup-notification" |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 40 | PACKAGECONFIG[consoleui] = "--enable-consoleui --with-ncurses-headers=${STAGING_INCDIR},--disable-consoleui,libgnt" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 41 | PACKAGECONFIG[gnutls] = "--enable-gnutls --with-gnutls-includes=${STAGING_INCDIR} --with-gnutls-libs=${STAGING_LIBDIR},--disable-gnutls,gnutls,libpurple-plugin-ssl-gnutls" |
| 42 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus dbus-glib" |
| 43 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" |
| 44 | PACKAGECONFIG[nss] = "--enable-nss,--disable-nss,nss nspr,libpurple-plugin-ssl-nss" |
Andrew Geissler | e34f896 | 2021-04-15 15:53:51 -0500 | [diff] [blame] | 45 | PACKAGECONFIG[cyrus-sasl] = "--enable-cyrus-sasl,--disable-cyrus-sasl,cyrus-sasl" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 46 | |
| 47 | EXTRA_OECONF = " \ |
| 48 | --disable-perl \ |
| 49 | --disable-tcl \ |
| 50 | --disable-gevolution \ |
| 51 | --disable-schemas-install \ |
| 52 | --disable-gtkspell \ |
| 53 | --disable-meanwhile \ |
| 54 | --disable-nm \ |
| 55 | --disable-screensaver \ |
| 56 | " |
| 57 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 58 | OE_LT_RPATH_ALLOW=":${libdir}/purple-2:" |
| 59 | OE_LT_RPATH_ALLOW[export]="1" |
| 60 | |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 61 | PACKAGES =+ "libpurple-dev libpurple finch finch-dev ${PN}-data" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 62 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 63 | RPROVIDES:${PN}-dbg += "libpurple-dbg finch-dbg" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 64 | |
| 65 | LEAD_SONAME = "libpurple.so.0" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 66 | FILES:libpurple = "${libdir}/libpurple*.so.* ${libdir}/purple-2 ${bindir}/purple-* ${sysconfdir}/gconf/schemas/purple* ${datadir}/purple/ca-certs" |
| 67 | FILES:libpurple-dev = "${libdir}/libpurple*.la \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 68 | ${libdir}/libpurple*.so \ |
| 69 | ${libdir}/purple-2/*.la \ |
| 70 | ${libdir}/purple-2/libjabber.so \ |
| 71 | ${libdir}/purple-2/liboscar.so \ |
| 72 | ${libdir}/purple-2/libymsg.so \ |
| 73 | ${datadir}/aclocal" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 74 | FILES:finch = "${bindir}/finch" |
| 75 | FILES:finch-dev = "${libdir}/finch/*.la" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 76 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 77 | FILES:${PN} = "${bindir} ${datadir}/${PN} ${libdir}/${PN}/*.so \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 78 | ${datadir}/applications" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 79 | RRECOMMENDS:${PN} = "${PN}-data libpurple-protocol-irc libpurple-protocol-xmpp" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 80 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 81 | FILES:${PN}-data = "${datadir}/pixmaps ${datadir}/sounds ${datadir}/icons ${datadir}/appdata" |
| 82 | FILES:${PN}-dev += "${libdir}/${PN}/*.la" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 83 | |
| 84 | PACKAGES_DYNAMIC += "^libpurple-protocol-.* ^libpurple-plugin-.* ^pidgin-plugin-.* ^finch-plugin-.*" |
| 85 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 86 | python populate_packages:prepend () { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 87 | pidgroot = d.expand('${libdir}/pidgin') |
| 88 | purple = d.expand('${libdir}/purple-2') |
| 89 | finch = d.expand('${libdir}/finch') |
| 90 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 91 | do_split_packages(d, pidgroot, r'^([^l][^i][^b].*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 92 | output_pattern='pidgin-plugin-%s', |
| 93 | description='Pidgin plugin %s', |
| 94 | prepend=True, extra_depends='') |
| 95 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 96 | do_split_packages(d, purple, r'^lib(.*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 97 | output_pattern='libpurple-protocol-%s', |
| 98 | description='Libpurple protocol plugin for %s', |
| 99 | prepend=True, extra_depends='') |
| 100 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 101 | do_split_packages(d, purple, r'^(ssl-.*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 102 | output_pattern='libpurple-plugin-%s', |
| 103 | description='libpurple plugin %s', |
| 104 | prepend=True, extra_depends='libpurple-plugin-ssl') |
| 105 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 106 | do_split_packages(d, purple, r'^([^l][^i][^b].*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 107 | output_pattern='libpurple-plugin-%s', |
| 108 | description='libpurple plugin %s', |
| 109 | prepend=True, extra_depends='') |
| 110 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 111 | do_split_packages(d, finch, r'^([^l][^i][^b].*)\.so$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 112 | output_pattern='finch-plugin-%s', |
| 113 | description='Finch plugin %s', |
| 114 | prepend=True, extra_depends='') |
| 115 | } |