mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:17:34 +00:00
Ports: Add lxt port
This commit is contained in:
parent
1262a7d142
commit
9b1e33af69
4 changed files with 46 additions and 0 deletions
18
Ports/lxt/package.sh
Executable file
18
Ports/lxt/package.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='lxt'
|
||||
version='1.3b'
|
||||
files=(
|
||||
"http://stahlke.org/dan/lxt/lxt-${version}.tar.gz 7a3ab299a6d61a71b271fd13b847b5a1c22a5f95df78561a325c78d50b6a6bc7"
|
||||
)
|
||||
useconfigure='true'
|
||||
depends=(
|
||||
'bash'
|
||||
'ncurses'
|
||||
)
|
||||
|
||||
configure() {
|
||||
export ac_cv_func_fnmatch_works=yes
|
||||
export ac_cv_func_malloc_0_nonnull=yes
|
||||
export ac_cv_func_realloc_0_nonnull=yes
|
||||
run ./configure --host=x86_64-pc-serenity
|
||||
}
|
20
Ports/lxt/patches/0001-Fix-path-to-clear-utility.patch
Normal file
20
Ports/lxt/patches/0001-Fix-path-to-clear-utility.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Seal Sealy <butilkama@gmail.com>
|
||||
Date: Mon, 7 Aug 2023 07:18:49 +0300
|
||||
Subject: [PATCH] Fix path to clear utility
|
||||
|
||||
---
|
||||
main.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/main.c b/main.c
|
||||
index 5308cb634834d78b9de9df93c7a562299bfb4125..b203853250a84322a8dc67d38f200381336b815e 100644
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -206,5 +206,5 @@ void crapout_nobug(const char *fmt, ...) {
|
||||
}
|
||||
|
||||
void clearscreen(void) {
|
||||
- system("/usr/bin/clear");
|
||||
+ system("/bin/clear");
|
||||
}
|
7
Ports/lxt/patches/ReadMe.md
Normal file
7
Ports/lxt/patches/ReadMe.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Patches for lxt on SerenityOS
|
||||
|
||||
## `0001-Fix-path-to-clear-utility.patch`
|
||||
|
||||
Fix path to clear utility
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue