1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:57:34 +00:00

Ports: Update cmatrix's patches to use git patches

Also fixes one of the patches no longer applying.
This commit is contained in:
Ali Mohammad Pur 2022-05-17 20:58:59 +04:30 committed by Ali Mohammad Pur
parent 57a98258aa
commit ff7163e5b8
4 changed files with 54 additions and 14 deletions

View file

@ -0,0 +1,40 @@
From bad2922ad4cbc8c74765d50da61371925b1b80d7 Mon Sep 17 00:00:00 2001
From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
Date: Tue, 20 Apr 2021 18:42:04 +0300
Subject: [PATCH 1/2] Use manual include & library paths for ncurses
Co-Authored-By: Panagiotis Vasilopoulos <hello@alwayslivid.com>
---
CMakeLists.txt | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c50d7b..6ce5f9f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,9 @@ cmake_minimum_required(VERSION 2.8)
project(CMatrix LANGUAGES C)
set(VERSION "2.0")
+set(CMAKE_INCLUDE_PATH "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses")
+set(CURSES_NCURSES_LIBRARY "${SERENITY_INSTALL_ROOT}/usr/local/lib/libncurses.a")
+
# These are relative to CMAKE_INSTALL_PREFIX
# which by default is "/usr/local"
set(CONSOLE_FONTS_DIRS "share/consolefonts" "lib/kbd/consolefonts")
@@ -49,10 +52,8 @@ if (HAVE_GETOPT_H)
add_definitions(-DHAVE_GETOPT_H)
endif ()
-Set(CURSES_NEED_NCURSES TRUE)
-find_package(Curses)
-include_directories(${CURSES_INCLUDE_DIR})
-add_definitions(-DHAVE_NCURSES_H)
+find_package(Curses REQUIRED)
+include_directories(${CURSES_INCLUDE_PATH})
add_executable(cmatrix cmatrix.c)
--
2.36.1