blob: fff198d06a678f8f6ad025914a1f06e6d53d92ef [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "ZNC, an advanced IRC bouncer"
2SECTION = "net"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
5
6DEPENDS = "openssl zlib icu"
7
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008SRC_URI = "git://github.com/znc/znc.git;name=znc \
9 git://github.com/jimloco/Csocket.git;destsuffix=git/third_party/Csocket;name=Csocket \
10 "
Andrew Geisslera2681d92020-10-16 10:17:07 -050011SRCREV_znc = "bf253640d33d03331310778e001fb6f5aba2989e"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012SRCREV_Csocket = "e8d9e0bb248c521c2c7fa01e1c6a116d929c41b4"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013
14# This constructs a composite revision based on multiple SRCREV's.
15#
16SRCREV_FORMAT = "znc_Csocket"
17
18S = "${WORKDIR}/git"
19
20inherit autotools-brokensep pkgconfig
21
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
Patrick Williamsddad1a12017-02-23 20:36:32 -060023PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
24
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025# ZNC has a custom autogen.sh that states that this command is needed *and* expected to fail
Patrick Williams213cb262021-08-07 19:21:33 -050026do_configure:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027 automake --add-missing || true
28}
29
Patrick Williams213cb262021-08-07 19:21:33 -050030do_install:append() {
Brad Bishop19323692019-04-05 15:28:33 -040031 sed -i -e 's|${DEBUG_PREFIX_MAP}||g; s|--sysroot=${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc
Patrick Williamsb48b7b42016-08-17 15:04:38 -050032}