From 047d1a2a02f2398d208d3f16f92d8076bdf8f685 Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sat, 24 Feb 2024 02:38:50 +0000
Subject: [PATCH] Fix the ncurses location in some recipes

---
 recipes/wip/db/mariadb-lts/recipe.toml    | 1 +
 recipes/wip/db/mysql-server/recipe.toml   | 3 +++
 recipes/wip/dev/defold-engine/recipe.toml | 3 +++
 recipes/wip/tools/cpu-x/recipe.toml       | 3 +++
 recipes/wip/tools/glsl-viewer/recipe.toml | 3 +++
 5 files changed, 13 insertions(+)

diff --git a/recipes/wip/db/mariadb-lts/recipe.toml b/recipes/wip/db/mariadb-lts/recipe.toml
index f4b1b623b..3e4dffa61 100644
--- a/recipes/wip/db/mariadb-lts/recipe.toml
+++ b/recipes/wip/db/mariadb-lts/recipe.toml
@@ -16,6 +16,7 @@ dependencies = [
     "libaio",
 ]
 script = """
+export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
 COOKBOOK_CONFIGURE="cmake"
 COOKBOOK_CONFIGURE_FLAGS=(
     -DCMAKE_BUILD_TYPE=Release
diff --git a/recipes/wip/db/mysql-server/recipe.toml b/recipes/wip/db/mysql-server/recipe.toml
index e5b009daf..02c84e737 100644
--- a/recipes/wip/db/mysql-server/recipe.toml
+++ b/recipes/wip/db/mysql-server/recipe.toml
@@ -8,3 +8,6 @@ dependencies = [
     "ncurses",
     "openssl1",
 ]
+script = """
+export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
+"""
diff --git a/recipes/wip/dev/defold-engine/recipe.toml b/recipes/wip/dev/defold-engine/recipe.toml
index 50de85bbc..13d89a562 100644
--- a/recipes/wip/dev/defold-engine/recipe.toml
+++ b/recipes/wip/dev/defold-engine/recipe.toml
@@ -17,3 +17,6 @@ dependencies = [
     "openal",
     "ncurses",
 ]
+script = """
+export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
+"""
diff --git a/recipes/wip/tools/cpu-x/recipe.toml b/recipes/wip/tools/cpu-x/recipe.toml
index b2912aed6..cb21b5c27 100644
--- a/recipes/wip/tools/cpu-x/recipe.toml
+++ b/recipes/wip/tools/cpu-x/recipe.toml
@@ -13,3 +13,6 @@ dependencies = [
     "libcpuid",
     "pciutils",
 ]
+script = """
+export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
+"""
diff --git a/recipes/wip/tools/glsl-viewer/recipe.toml b/recipes/wip/tools/glsl-viewer/recipe.toml
index 93c7c6a28..f5d951909 100644
--- a/recipes/wip/tools/glsl-viewer/recipe.toml
+++ b/recipes/wip/tools/glsl-viewer/recipe.toml
@@ -12,3 +12,6 @@ dependencies = [
     "ffmpeg6",
     "glfw",
 ]
+script = """
+export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
+"""
-- 
GitLab