From f2bf406db7f928be5767ceb80023da0b37931c00 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 14 Jul 2026 00:59:33 +0300 Subject: [PATCH] ports: Add ccleste port --- ports/ccleste/build.sh | 20 +++++++++++++ .../patches/0001-add-banan-os-support.patch | 29 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100755 ports/ccleste/build.sh create mode 100644 ports/ccleste/patches/0001-add-banan-os-support.patch diff --git a/ports/ccleste/build.sh b/ports/ccleste/build.sh new file mode 100755 index 00000000..60d84b83 --- /dev/null +++ b/ports/ccleste/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash ../install.sh + +NAME='ccleste' +VERSION='1.4.0' +DOWNLOAD_URL="https://github.com/lemon32767/ccleste/archive/refs/tags/v$VERSION.tar.gz#32dfd797f3c863201e0c19aa97974c56a8ed589a34c0522503f25f6e1399edd6" +DEPENDENCIES=('sdl2-compat' 'SDL2_mixer') + +configure() { + make clean +} + +build() { + make SDL_PREFIX="$BANAN_SYSROOT/usr/bin/" || exit 1 +} + +install() { + mkdir -p "$DESTDIR/usr/bin" "$DESTDIR/usr/share/Games/ccleste" + cp -v ccleste "$DESTDIR/usr/bin/" || exit 1 + cp -rv data/* "$DESTDIR/usr/share/Games/ccleste/" || exit 1 +} diff --git a/ports/ccleste/patches/0001-add-banan-os-support.patch b/ports/ccleste/patches/0001-add-banan-os-support.patch new file mode 100644 index 00000000..a90ac542 --- /dev/null +++ b/ports/ccleste/patches/0001-add-banan-os-support.patch @@ -0,0 +1,29 @@ +diff -ruN ccleste-1.4.0/Makefile ccleste-1.4.0-banan_os/Makefile +--- ccleste-1.4.0/Makefile 2021-11-24 16:25:50.000000000 +0200 ++++ ccleste-1.4.0-banan_os/Makefile 2026-07-13 10:40:21.576609103 +0300 +@@ -3,11 +3,11 @@ + SDL_VER?=2 + + ifeq ($(SDL_VER),2) +- SDL_CONFIG=sdl2-config ++ SDL_CONFIG=$(SDL_PREFIX)sdl2-config + SDL_LD=-lSDL2 -lSDL2_mixer + else + ifeq ($(SDL_VER),1) +- SDL_CONFIG=sdl-config ++ SDL_CONFIG=$(SDL_PREFIX)sdl-config + SDL_LD=-lSDL -lSDL_mixer + else + SDL_CONFIG=$(error "invalid SDL version '$(SDL_VER)'. possible values are '1' and '2'") +diff -ruN ccleste-1.4.0/sdl12main.c ccleste-1.4.0-banan_os/sdl12main.c +--- ccleste-1.4.0/sdl12main.c 2021-11-24 16:25:50.000000000 +0200 ++++ ccleste-1.4.0-banan_os/sdl12main.c 2026-07-13 10:39:55.050258303 +0300 +@@ -83,6 +83,8 @@ + static char* GetDataPath(char* path, int n, const char* fname) { + #ifdef _3DS + snprintf(path, n, "romfs:/%s", fname); ++#elif defined(__banan_os__) ++ snprintf(path, n, "/usr/share/Games/ccleste/%s", fname); + #else + #ifdef _WIN32 + char pathsep = '\\';