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