ports: Add ccleste port

This commit is contained in:
2026-07-20 06:58:30 +03:00
parent 63a8f40e67
commit f2bf406db7
2 changed files with 49 additions and 0 deletions
+20
View File
@@ -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
}
@@ -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 = '\\';