-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
98 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2024 ROCKNIX (https://github.com/ROCKNIX) | ||
|
||
PKG_NAME="m8c" | ||
PKG_VERSION="v1.7.8" | ||
PKG_LICENSE="MIT" | ||
PKG_SITE="https://github.com/laamaa/m8c" | ||
PKG_URL="${PKG_SITE}/archive/refs/tags/${PKG_VERSION}.tar.gz" | ||
PKG_DEPENDS_TARGET="toolchain SDL2 libserialport" | ||
PKG_LONGDESC="Cross-platform M8 tracker headless client" | ||
PKG_TOOLCHAIN="cmake" | ||
|
||
makeinstall_target(){ | ||
mkdir -p ${INSTALL}/usr/bin | ||
cp m8c ${INSTALL}/usr/bin | ||
chmod 0755 ${INSTALL}/usr/bin/m8c | ||
|
||
if [ ! -d "${INSTALL}/usr/config/modules" ] | ||
then | ||
mkdir -p ${INSTALL}/usr/config/modules | ||
fi | ||
cp -rf ${PKG_DIR}/sources/"Start M8C.sh" ${INSTALL}/usr/config/modules | ||
chmod 0755 ${INSTALL}/usr/config/modules/"Start M8C.sh" | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/apps/m8c/patches/0001-default-to-fullscreen.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 99db5770f75111d7b1af8a333db5517408d3536c Mon Sep 17 00:00:00 2001 | ||
From: Philippe Simons <[email protected]> | ||
Date: Sat, 28 Dec 2024 10:55:19 +0100 | ||
Subject: [PATCH] default to fullscreen | ||
|
||
--- | ||
src/config.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/config.c b/src/config.c | ||
index 50848a9..75f97b1 100644 | ||
--- a/src/config.c | ||
+++ b/src/config.c | ||
@@ -23,7 +23,7 @@ config_params_s init_config() { | ||
|
||
c.filename = "config.ini"; // default config file to load | ||
|
||
- c.init_fullscreen = 0; // default fullscreen state at load | ||
+ c.init_fullscreen = 1; // default fullscreen state at load | ||
c.init_use_gpu = 1; // default to use hardware acceleration | ||
c.idle_ms = 10; // default to high performance | ||
c.wait_for_device = 1; // default to exit if device disconnected | ||
-- | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2021-present 351ELEC | ||
|
||
source /etc/profile | ||
|
||
set_kill set "m8c" | ||
|
||
/usr/bin/m8c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ | |
ROCKNIX_JOYPAD="yes" | ||
|
||
# additional packages to install | ||
ADDITIONAL_PACKAGES="" | ||
ADDITIONAL_PACKAGES="m8c" |