blob: 9f7e39297311241f7587bfef66820e967dffbcd2 [file] [log] [blame]
Andrew Geissler7f40b712020-05-15 14:09:53 -05001SUMMARY = "Full-featured IRC plugin: multi-servers, proxy support, IPv6, SASL authentication, nicklist, DCC, and many other features"
2HOMEPAE = "https://weechat.org/"
3SECTION = "net"
4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e"
6
7DEPENDS = "openssl zlib icu libgcrypt gnutls curl aspell"
8
9SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz \
10 file://0001-use-pkg-config-for-gcrypt-instead.patch \
11 "
Andrew Geisslerd688a012020-09-18 13:36:00 -050012
Andrew Geissler4b7c1152020-11-30 19:55:29 -060013SRC_URI[sha256sum] = "6cb7d25a363b66b835f1b9f29f3580d6f09ac7d38505b46a62c178b618d9f1fb"
Andrew Geissler7f40b712020-05-15 14:09:53 -050014
15inherit cmake pkgconfig
16
17PACKAGECONFIG ??= " ncurses python"
18PACKAGECONFIG[ncurses] = "-DENABLE_NCURSES=ON,-DENABLE_NCURSES=OFF,ncurses"
Andrew Geisslerd688a012020-09-18 13:36:00 -050019PACKAGECONFIG[python] = "-DENABLE_PYTHON=ON,-DENABLE_PYTHON=OFF,python3,python3"
Andrew Geissler7f40b712020-05-15 14:09:53 -050020
Patrick Williams213cb262021-08-07 19:21:33 -050021EXTRA_OECMAKE:append = " -DENABLE_PHP=OFF -DENABLE_TCL=OFF -DENABLE_LUA=OFF -DENABLE_JAVASCRIPT=OFF -DENABLE_RUBY=OFF -DENABLE_GUILE=OFF -DENABLE_PERL=OFF -DENABLE_ASPELL=ON"
Andrew Geissler7f40b712020-05-15 14:09:53 -050022
Patrick Williams213cb262021-08-07 19:21:33 -050023do_configure:prepend(){
Andrew Geissler7f40b712020-05-15 14:09:53 -050024 # Make sure we get dependencies from recipe-sysroot
25 sed -i -e 's# /usr/bin# ${RECIPE_SYSROOT}/${bindir}/#g' ${S}/cmake/FindPerl.cmake
26 sed -i -e 's# /usr/local/bin##g' ${S}/cmake/FindPerl.cmake
27 sed -i -e 's# /usr/pkg/bin##g' ${S}/cmake/FindPerl.cmake
28}
29
Patrick Williams213cb262021-08-07 19:21:33 -050030do_install:append(){
Andrew Geissler7f40b712020-05-15 14:09:53 -050031 rm -rf ${D}/${datadir}
32}
33