xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-irc/weechat/weechat_3.4.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Full-featured IRC plugin: multi-servers, proxy support, IPv6, SASL authentication, nicklist, DCC, and many other features"
2*4882a593SmuzhiyunHOMEPAE = "https://weechat.org/"
3*4882a593SmuzhiyunSECTION = "net"
4*4882a593SmuzhiyunLICENSE = "GPL-3.0-only"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunDEPENDS = "openssl zlib icu libgcrypt gnutls curl aspell"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz \
10*4882a593Smuzhiyun           file://0001-use-pkg-config-for-gcrypt-instead.patch \
11*4882a593Smuzhiyun           "
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI[sha256sum] = "7e088109ad5dfbcb08a9a6b1dd70ea8236093fed8a13ee9d9c98881d7b1aeae7"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyuninherit cmake pkgconfig
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunPACKAGECONFIG ??= " ncurses python"
18*4882a593SmuzhiyunPACKAGECONFIG[ncurses] = "-DENABLE_NCURSES=ON,-DENABLE_NCURSES=OFF,ncurses"
19*4882a593SmuzhiyunPACKAGECONFIG[python] = "-DENABLE_PYTHON=ON,-DENABLE_PYTHON=OFF,python3,python3"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunEXTRA_OECMAKE:append = " -DENABLE_PHP=OFF -DENABLE_TCL=OFF -DENABLE_LUA=OFF \
22*4882a593Smuzhiyun                         -DENABLE_JAVASCRIPT=OFF -DENABLE_RUBY=OFF \
23*4882a593Smuzhiyun                         -DENABLE_GUILE=OFF -DENABLE_PERL=OFF -DENABLE_ASPELL=ON \
24*4882a593Smuzhiyun                         -DLIBDIR=${libdir}"
25*4882a593Smuzhiyun
26*4882a593Smuzhiyundo_configure:prepend(){
27*4882a593Smuzhiyun    #  Make sure we get dependencies from recipe-sysroot
28*4882a593Smuzhiyun    sed -i -e 's# /usr/bin# ${RECIPE_SYSROOT}/${bindir}/#g' ${S}/cmake/FindPerl.cmake
29*4882a593Smuzhiyun    sed -i -e 's# /usr/local/bin##g' ${S}/cmake/FindPerl.cmake
30*4882a593Smuzhiyun    sed -i -e 's# /usr/pkg/bin##g' ${S}/cmake/FindPerl.cmake
31*4882a593Smuzhiyun}
32*4882a593Smuzhiyun
33*4882a593Smuzhiyundo_install:append(){
34*4882a593Smuzhiyun    rm -rf ${D}/${datadir}
35*4882a593Smuzhiyun}
36*4882a593Smuzhiyun
37