diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index e8e8c97b51..722de67022 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -122,6 +122,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`joe`](joe/) | joe's own editor | 4.6 | https://joe-editor.sourceforge.io/ | | [`jot`](jot/) | jot (OpenBSD) | 6.6 | https://github.com/ibara/libpuffy | | [`jq`](jq/) | jq | 1.6 | https://stedolan.github.io/jq/ | +| [`julius`](julius/) | julius | 1.7.0 | https://github.com/bvschaik/julius | | [`kakoune`](kakoune/) | Modal text editor | 24d6072 | https://github.com/mawww/kakoune | | [`klong`](klong/) | Klong | 20220315 | https://t3x.org/klong/ | | [`less`](less/) | less | 590 | https://www.greenwoodsoftware.com/less/ | diff --git a/Ports/julius/package.sh b/Ports/julius/package.sh new file mode 100755 index 0000000000..fdf77a5dfd --- /dev/null +++ b/Ports/julius/package.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='julius' +version='1.7.0' +useconfigure='true' +files=( + "https://github.com/bvschaik/julius/archive/refs/tags/v${version}.tar.gz 3ee62699bcbf6c74fe5a9c940c62187141422a9bd98e01747a554fd77483431f" +) +depends=( + 'libpng' + 'SDL2' + 'SDL2_mixer' +) +configopts=( + "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" +) + +configure() { + run cmake "${configopts[@]}" . +} + +install() { + run make "${installopts[@]}" install +} diff --git a/Ports/julius/patches/0001-Skip-including-execinfo.h-for-Serenity.patch b/Ports/julius/patches/0001-Skip-including-execinfo.h-for-Serenity.patch new file mode 100644 index 0000000000..4cb4654e40 --- /dev/null +++ b/Ports/julius/patches/0001-Skip-including-execinfo.h-for-Serenity.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Justin Brown +Date: Tue, 8 Aug 2023 18:47:06 -0700 +Subject: [PATCH] Skip including execinfo.h for Serenity + +--- + src/core/backtrace.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/core/backtrace.c b/src/core/backtrace.c +index 025bac7c7cc5058a8372ecfc3862ac31a6cb1310..693bb5c1ff0c1b43d58803d51c95a3ae9e5165f0 100644 +--- a/src/core/backtrace.c ++++ b/src/core/backtrace.c +@@ -4,7 +4,7 @@ + + #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && \ + !defined(__vita__) && !defined(__SWITCH__) && !defined(__ANDROID__) && \ +- !defined(__HAIKU__) && !defined(__EMSCRIPTEN__) ++ !defined(__HAIKU__) && !defined(__EMSCRIPTEN__) && !defined(__serenity__) + + #include + diff --git a/Ports/julius/patches/ReadMe.md b/Ports/julius/patches/ReadMe.md new file mode 100644 index 0000000000..e443637c24 --- /dev/null +++ b/Ports/julius/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for julius on SerenityOS + +## `0001-Skip-including-execinfo.h-for-Serenity.patch` + +Skip including execinfo.h for Serenity + +