summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch37
-rw-r--r--meta-networking/recipes-irc/weechat/weechat_2.8.bb32
2 files changed, 69 insertions, 0 deletions
diff --git a/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch b/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch
new file mode 100644
index 0000000000..0717e96546
--- /dev/null
+++ b/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch
@@ -0,0 +1,37 @@
1From dc6b11f4cc6035b4701e1d7f7c91b2f45757e7a2 Mon Sep 17 00:00:00 2001
2From: Alejandro Enedino Hernandez Samaniego
3 <alejandro@enedino.org>
4Date: Wed, 26 Feb 2020 13:55:16 -0800
5Subject: [PATCH] use pkg-config for gcrypt instead
6
7Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
8
9Upstream-Status: Inappropriate [oe-specific]
10
11---
12 cmake/FindGCRYPT.cmake | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15Index: weechat-2.7.1/cmake/FindGCRYPT.cmake
16===================================================================
17--- weechat-2.7.1.orig/cmake/FindGCRYPT.cmake
18+++ weechat-2.7.1/cmake/FindGCRYPT.cmake
19@@ -27,15 +27,15 @@
20 # GCRYPT_LDFLAGS = ldflags to use to compile
21 #
22
23-find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES libgcrypt-config)
24+find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES pkg-config)
25
26 set(GCRYPT_LDFLAGS)
27 set(GCRYPT_CFLAGS)
28
29 if(LIBGCRYPT_CONFIG_EXECUTABLE)
30
31- exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS)
32- exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS)
33+ exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS libgcrypt --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS)
34+ exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS libgcrypt --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS)
35
36 if(${GCRYPT_CFLAGS} MATCHES "\n")
37 set(GCRYPT_CFLAGS " ")
diff --git a/meta-networking/recipes-irc/weechat/weechat_2.8.bb b/meta-networking/recipes-irc/weechat/weechat_2.8.bb
new file mode 100644
index 0000000000..cdfb1a963d
--- /dev/null
+++ b/meta-networking/recipes-irc/weechat/weechat_2.8.bb
@@ -0,0 +1,32 @@
1SUMMARY = "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 "
12SRC_URI[sha256sum] = "553ea295edad3b03cf88e6029c21e7bde32ff1cc026d35386ba9da3e56a6018c"
13
14inherit cmake pkgconfig
15
16PACKAGECONFIG ??= " ncurses python"
17PACKAGECONFIG[ncurses] = "-DENABLE_NCURSES=ON,-DENABLE_NCURSES=OFF,ncurses"
18PACKAGECONFIG[python] = "-DENABLE_PYTHON=ON,-DENABLE_PYTHON=OFF,python3"
19
20EXTRA_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"
21
22do_configure_prepend(){
23 # Make sure we get dependencies from recipe-sysroot
24 sed -i -e 's# /usr/bin# ${RECIPE_SYSROOT}/${bindir}/#g' ${S}/cmake/FindPerl.cmake
25 sed -i -e 's# /usr/local/bin##g' ${S}/cmake/FindPerl.cmake
26 sed -i -e 's# /usr/pkg/bin##g' ${S}/cmake/FindPerl.cmake
27}
28
29do_install_append(){
30 rm -rf ${D}/${datadir}
31}
32