Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • fabiao/cookbook
  • redox-os/cookbook
  • stratact/cookbook
  • carrot93/cookbook
  • microcolonel/cookbook
  • feliwir/cookbook
  • xTibor/cookbook
  • jD91mZM2/cookbook
  • mpajkowski/cookbook
  • rw_van/cookbook
  • athei/cookbook
  • kblobr/cookbook
  • VitalyAnkh/cookbook
  • sajattack/cookbook
  • sainath14/cookbook
  • ackxolotl/cookbook
  • AdminXVII/cookbook
  • coolreader18/cookbook
  • deepaksirone/cookbook
  • smckay/cookbook
  • 4lDO2/cookbook
  • tomasritter/cookbook
  • alfredoyang/cookbook
  • samuela/cookbook
  • andrewdavidmackenzie/cookbook
  • uuuvn/cookbook
  • josh_williams/cookbook
  • bjorn3/cookbook
  • ids1024/cookbook
  • Chocimier/cookbook
  • bpisch/cookbook
  • willnode/cookbook
  • grnmeira/cookbook
  • andrey.turkin/cookbook
  • cameronbraid/cookbook
  • kamirr/cookbook
  • freewilll/cookbook
  • kivimango/cookbook
  • rukai/cookbook
  • mattmadeofpasta/cookbook
  • jordan_mccallum/cookbook
  • dahc/cookbook
  • Forest0923/cookbook
  • LLeny/cookbook
  • doriancodes/cookbook
  • ashton/cookbook
  • gmacd/cookbook
  • mojo/cookbook
  • wt/cookbook
  • red15/cookbook
  • hasheddan/cookbook
  • dimymark/cookbook
  • andypython/cookbook
  • enygmator/cookbook
  • Ivan/cookbook
  • argslc/cookbook
  • adi-g15/cookbook
  • tfinnegan937/cookbook
  • raffaeleragni/cookbook
  • Lekkit/cookbook
  • bitstr0m/cookbook
  • josh/cookbook
  • zhaozhao/cookbook
  • blueskyson/cookbook
  • Xunjin/cookbook
  • StaringAtEditor/cookbook
  • monk_programmer/cookbook
  • DimitarGj/cookbook
  • njskalski/cookbook
  • DLC/cookbook
70 results
Show changes
Showing
with 252 additions and 164 deletions
GIT=https://gitlab.redox-os.org/redox-os/freedoom.git
DEPENDS=(ion prboom)
function recipe_version {
echo "0.11.3"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
echo "skipping build"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
echo "skipping clean"
skip=1
}
function recipe_stage {
mkdir -pv "$1/games" "$1/share/games/doom"
for file in ./*.wad
do
game="$(basename "$file" .wad)"
wad="/share/games/doom/$game.wad"
cp -v "$file" "$1$wad"
bin="/games/$game"
echo "#!/bin/ion" > "$1$bin"
echo "/games/prboom -geom 800x600 -vidmode 32 -iwad $wad" >> "$1$bin"
chmod +x "$1$bin"
done
skip=1
}
TAR=https://cytranet.dl.sourceforge.net/project/freeglut/freeglut/3.0.0/freeglut-3.0.0.tar.gz
BUILD_DEPENDS=(mesa mesa_glu)
function recipe_version {
echo "3.0.0"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export CPPFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
cmake \
-D CMAKE_TOOLCHAIN_FILE=../redox_cross_toolchain.cmake \
-D CMAKE_INSTALL_PREFIX=/ \
-D FREEGLUT_GLES=0 \
.
#./configure --host="${HOST}" --prefix=/ --enable-osmesa
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
skip=1
}
SET(CMAKE_SYSTEM_NAME Redox)
GIT=https://github.com/jackpot51/friar.git
VERSION="1.0.5"
TAR="https://github.com/fribidi/fribidi/releases/download/v${VERSION}/fribidi-${VERSION}.tar.bz2"
BUILD_DEPENDS=()
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib --static"
./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--disable-shared \
--enable-static
sed -i 's|#define HAVE_SYS_TIMES_H 1|/* #undef HAVE_SYS_TIMES_H */|g' config.h
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}
GIT=https://gitlab.redox-os.org/redox-os/2048-rs.git
GIT_UPSTREAM=https://github.com/pierrechevalier83/2048-rs.git
name=ClassiCube
category=Games
binary=/usr/games/classicube/ClassiCube
icon=/ui/icons/apps/classicube.png
[source]
git = "https://github.com/jackpot51/ClassiCube.git"
[build]
template = "custom"
dependencies = [
"liborbital",
"llvm18",
"mesa",
"sdl2",
"zlib",
]
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" -C src redox
mkdir -pv "${COOKBOOK_STAGE}/usr/games/classicube"
cp -v "src/ClassiCube" "${COOKBOOK_STAGE}/usr/games/classicube"
mkdir -pv "${COOKBOOK_STAGE}/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/classicube"
mkdir -pv "${COOKBOOK_STAGE}/ui/icons/apps"
cp -v "${COOKBOOK_SOURCE}/misc/CCicon.png" "${COOKBOOK_STAGE}/ui/icons/apps/classicube.png"
"""
[source]
tar = "https://github.com/diasurgical/devilutionX/archive/refs/tags/1.5.4.tar.gz"
blake3 = "d4a61ff3a7c69d86a29158918aad48ab9c4866c6a22a3e8da5feadbb7d23b3ca"
[build]
template = "custom"
dependencies = [
"bzip2",
"libiconv",
"liborbital",
"sdl1",
"zlib",
]
script = """
DYNAMIC_INIT
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DBUILD_TESTING=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=ON
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-DCMAKE_INSTALL_PREFIX="/"
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
-DCMAKE_VERBOSE_MAKEFILE=ON
-DDEVILUTIONX_SYSTEM_BZIP2=ON
-DDEVILUTIONX_SYSTEM_ZLIB=ON
-DNONET=ON
-DSDL_LIBRARY="-lSDL -lorbital"
-DUSE_SDL1=ON
"${COOKBOOK_SOURCE}"
)
cookbook_configure
mkdir -v "${COOKBOOK_STAGE}/bin"
cp -v devilutionx "${COOKBOOK_STAGE}/bin"
"""
recipes/games/eduke32/icon.png

70.5 KiB

name=EDuke32
category=Games
binary=/usr/games/eduke32
icon=/ui/icons/apps/eduke32.png
[source]
tar = "https://dukeworld.com/eduke32/synthesis/20181010-7067/eduke32_src_20181010-7067.tar.xz"
blake3 = "b0b759fe9ca51849f42669e4832ae1ae1f9ad7938529769108f7cf6a6a176558"
patches = ["redox.patch"]
[build]
dependencies = [
"sdl1",
"sdl1-mixer",
"liborbital",
"libiconv",
"libogg",
"libvorbis",
]
template = "custom"
script = """
# Copy source to build directory
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
export CFLAGS="-I${COOKBOOK_SYSROOT}/include -I${COOKBOOK_SYSROOT}/include/SDL"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
export SDLCONFIG="${COOKBOOK_SYSROOT}/bin/sdl-config --prefix=${COOKBOOK_SYSROOT}"
PLATFORM=REDOX "${COOKBOOK_MAKE}" -j"$($NPROC)"
mkdir -pv "${COOKBOOK_STAGE}/usr/games"
cp -v ./eduke32 "${COOKBOOK_STAGE}/usr/games/eduke32"
cp -v ./mapster32 "${COOKBOOK_STAGE}/usr/games/mapster32"
mkdir -pv "${COOKBOOK_STAGE}/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/eduke32"
mkdir -pv "${COOKBOOK_STAGE}/ui/icons/apps"
cp -v "${COOKBOOK_RECIPE}/icon.png" "${COOKBOOK_STAGE}/ui/icons/apps/eduke32.png"
"""
diff -rupwN source/Common.mak source-new/Common.mak diff -rupwN source/Common.mak source-new/Common.mak
--- source/Common.mak 2018-07-14 15:36:44.000000000 -0600 --- source/Common.mak 2018-07-14 15:36:44.000000000 -0600
+++ source-new/Common.mak 2019-03-15 21:28:32.366856380 -0600 +++ source-new/Common.mak 2023-01-20 10:38:24.948044222 -0700
@@ -93,7 +93,7 @@ endif @@ -93,7 +93,7 @@ endif
##### Makefile meta-settings ##### Makefile meta-settings
...@@ -15,28 +15,30 @@ diff -rupwN source/Common.mak source-new/Common.mak ...@@ -15,28 +15,30 @@ diff -rupwN source/Common.mak source-new/Common.mak
endif endif
+ifeq ($(PLATFORM),REDOX) +ifeq ($(PLATFORM),REDOX)
+ CROSS := x86_64-unknown-redox- + CROSS := $(TARGET)-
+endif +endif
+ +
CC := $(CROSS)gcc$(CROSS_SUFFIX) CC := $(CROSS)gcc$(CROSS_SUFFIX)
CXX := $(CROSS)g++$(CROSS_SUFFIX) CXX := $(CROSS)g++$(CROSS_SUFFIX)
@@ -383,6 +387,14 @@ else ifeq ($(PLATFORM),$(filter $(PLATFO @@ -383,6 +387,16 @@ else ifeq ($(PLATFORM),$(filter $(PLATFO
override NOASM := 1 override NOASM := 1
else ifeq ($(PLATFORM),$(filter $(PLATFORM),BEOS SKYOS)) else ifeq ($(PLATFORM),$(filter $(PLATFORM),BEOS SKYOS))
override NOASM := 1 override NOASM := 1
+else ifeq ($(PLATFORM),REDOX) +else ifeq ($(PLATFORM),REDOX)
+ override USE_OPENGL := 0
+ override NETCODE := 0
+ override HAVE_GTK2 := 0
+ override HAVE_FLAC := 0 + override HAVE_FLAC := 0
+ override HAVE_GTK2 := 0
+ override HAVE_XMP := 0 + override HAVE_XMP := 0
+ override MIXERTYPE := SDL + override MIXERTYPE := SDL
+ override NETCODE := 0
+ override NOASM := 1
+ override USE_OPENGL := 0
+ OPTOPT := -mtune=generic
+ SDL_TARGET := 1 + SDL_TARGET := 1
endif endif
ifneq (i386,$(strip $(IMPLICIT_ARCH))) ifneq (i386,$(strip $(IMPLICIT_ARCH)))
@@ -868,7 +880,7 @@ ifeq ($(RENDERTYPE),SDL) @@ -868,7 +882,7 @@ ifeq ($(RENDERTYPE),SDL)
SDLCONFIG := sdl2-config SDLCONFIG := sdl2-config
SDLNAME := SDL2 SDLNAME := SDL2
else ifeq ($(SDL_TARGET),1) else ifeq ($(SDL_TARGET),1)
...@@ -45,7 +47,7 @@ diff -rupwN source/Common.mak source-new/Common.mak ...@@ -45,7 +47,7 @@ diff -rupwN source/Common.mak source-new/Common.mak
SDLNAME := SDL SDLNAME := SDL
ifeq (0,$(RELEASE)) ifeq (0,$(RELEASE))
COMPILERFLAGS += -DNOSDLPARACHUTE COMPILERFLAGS += -DNOSDLPARACHUTE
@@ -957,9 +969,11 @@ else ifeq ($(PLATFORM),WII) @@ -957,9 +971,11 @@ else ifeq ($(PLATFORM),WII)
LIBS += -laesnd_tueidj -lfat -lwiiuse -lbte -lwiikeyboard -logc LIBS += -laesnd_tueidj -lfat -lwiiuse -lbte -lwiikeyboard -logc
else ifeq ($(SUBPLATFORM),LINUX) else ifeq ($(SUBPLATFORM),LINUX)
LIBS += -lrt LIBS += -lrt
...@@ -58,9 +60,10 @@ diff -rupwN source/Common.mak source-new/Common.mak ...@@ -58,9 +60,10 @@ diff -rupwN source/Common.mak source-new/Common.mak
ifneq ($(PLATFORM),BSD) ifneq ($(PLATFORM),BSD)
LIBS += -ldl LIBS += -ldl
endif endif
Binary files source/.Common.mak.swp and source-new/.Common.mak.swp differ
diff -rupwN source/source/build/include/compat.h source-new/source/build/include/compat.h diff -rupwN source/source/build/include/compat.h source-new/source/build/include/compat.h
--- source/source/build/include/compat.h 2018-10-06 23:21:24.000000000 -0600 --- source/source/build/include/compat.h 2018-10-06 23:21:24.000000000 -0600
+++ source-new/source/build/include/compat.h 2019-03-15 21:21:09.285856877 -0600 +++ source-new/source/build/include/compat.h 2023-01-20 10:31:10.843745693 -0700
@@ -7,6 +7,9 @@ @@ -7,6 +7,9 @@
#pragma once #pragma once
...@@ -92,7 +95,7 @@ diff -rupwN source/source/build/include/compat.h source-new/source/build/include ...@@ -92,7 +95,7 @@ diff -rupwN source/source/build/include/compat.h source-new/source/build/include
#if defined(__cplusplus) && defined(_MSC_VER) #if defined(__cplusplus) && defined(_MSC_VER)
diff -rupwN source/source/build/src/baselayer.cpp source-new/source/build/src/baselayer.cpp diff -rupwN source/source/build/src/baselayer.cpp source-new/source/build/src/baselayer.cpp
--- source/source/build/src/baselayer.cpp 2018-10-06 23:21:43.000000000 -0600 --- source/source/build/src/baselayer.cpp 2018-10-06 23:21:43.000000000 -0600
+++ source-new/source/build/src/baselayer.cpp 2019-03-15 21:21:09.285856877 -0600 +++ source-new/source/build/src/baselayer.cpp 2023-01-20 10:31:49.591772332 -0700
@@ -498,7 +498,7 @@ int32_t baselayer_init(void) @@ -498,7 +498,7 @@ int32_t baselayer_init(void)
void maybe_redirect_outputs(void) void maybe_redirect_outputs(void)
...@@ -104,7 +107,7 @@ diff -rupwN source/source/build/src/baselayer.cpp source-new/source/build/src/ba ...@@ -104,7 +107,7 @@ diff -rupwN source/source/build/src/baselayer.cpp source-new/source/build/src/ba
// pipe standard outputs to files // pipe standard outputs to files
diff -rupwN source/source/build/src/sdlayer.cpp source-new/source/build/src/sdlayer.cpp diff -rupwN source/source/build/src/sdlayer.cpp source-new/source/build/src/sdlayer.cpp
--- source/source/build/src/sdlayer.cpp 2018-10-06 23:23:44.000000000 -0600 --- source/source/build/src/sdlayer.cpp 2018-10-06 23:23:44.000000000 -0600
+++ source-new/source/build/src/sdlayer.cpp 2019-03-15 21:21:09.289856979 -0600 +++ source-new/source/build/src/sdlayer.cpp 2023-01-20 10:30:49.223730830 -0700
@@ -305,7 +305,7 @@ void wm_setapptitle(const char *name) @@ -305,7 +305,7 @@ void wm_setapptitle(const char *name)
// //
...@@ -116,7 +119,7 @@ diff -rupwN source/source/build/src/sdlayer.cpp source-new/source/build/src/sdla ...@@ -116,7 +119,7 @@ diff -rupwN source/source/build/src/sdlayer.cpp source-new/source/build/src/sdla
#endif #endif
diff -rupwN source/source/duke3d/src/common.cpp source-new/source/duke3d/src/common.cpp diff -rupwN source/source/duke3d/src/common.cpp source-new/source/duke3d/src/common.cpp
--- source/source/duke3d/src/common.cpp 2018-10-06 23:20:23.000000000 -0600 --- source/source/duke3d/src/common.cpp 2018-10-06 23:20:23.000000000 -0600
+++ source-new/source/duke3d/src/common.cpp 2019-03-15 21:21:09.289856979 -0600 +++ source-new/source/duke3d/src/common.cpp 2023-01-20 10:30:49.223730830 -0700
@@ -1173,6 +1173,7 @@ int32_t S_OpenAudio(const char *fn, char @@ -1173,6 +1173,7 @@ int32_t S_OpenAudio(const char *fn, char
Bfree(testfn); Bfree(testfn);
return origfp; return origfp;
...@@ -132,7 +135,7 @@ diff -rupwN source/source/duke3d/src/common.cpp source-new/source/duke3d/src/com ...@@ -132,7 +135,7 @@ diff -rupwN source/source/duke3d/src/common.cpp source-new/source/duke3d/src/com
-#endif -#endif
diff -rupwN source/source/duke3d/src/game.cpp source-new/source/duke3d/src/game.cpp diff -rupwN source/source/duke3d/src/game.cpp source-new/source/duke3d/src/game.cpp
--- source/source/duke3d/src/game.cpp 2018-10-06 23:23:48.000000000 -0600 --- source/source/duke3d/src/game.cpp 2018-10-06 23:23:48.000000000 -0600
+++ source-new/source/duke3d/src/game.cpp 2019-03-15 21:21:09.293857082 -0600 +++ source-new/source/duke3d/src/game.cpp 2023-01-20 10:30:49.223730830 -0700
@@ -6697,7 +6697,7 @@ MAIN_LOOP_RESTART: @@ -6697,7 +6697,7 @@ MAIN_LOOP_RESTART:
static char buf[128]; static char buf[128];
#ifndef GEKKO #ifndef GEKKO
...@@ -144,7 +147,7 @@ diff -rupwN source/source/duke3d/src/game.cpp source-new/source/duke3d/src/game. ...@@ -144,7 +147,7 @@ diff -rupwN source/source/duke3d/src/game.cpp source-new/source/duke3d/src/game.
{ {
diff -rupwN source/source/enet/include/enet/unix.h source-new/source/enet/include/enet/unix.h diff -rupwN source/source/enet/include/enet/unix.h source-new/source/enet/include/enet/unix.h
--- source/source/enet/include/enet/unix.h 2014-06-16 17:16:08.000000000 -0600 --- source/source/enet/include/enet/unix.h 2014-06-16 17:16:08.000000000 -0600
+++ source-new/source/enet/include/enet/unix.h 2019-03-15 21:21:09.293857082 -0600 +++ source-new/source/enet/include/enet/unix.h 2023-01-20 10:30:49.223730830 -0700
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
#define __ENET_UNIX_H__ #define __ENET_UNIX_H__
......
[source]
tar = "https://files.freeciv.org/stable/freeciv-3.1.4.tar.xz"
blake3 = "212630af5e50fb72662ca62a71cdd57318d0cf309b53e46377dd24c8199923a4"
[build]
dependencies = [
"curl",
"freetype2",
"libiconv",
"libicu",
"liborbital",
"libjpeg",
"libpng",
"llvm18",
"openssl1",
"mesa",
"nghttp2",
"sdl2",
"sdl2-gfx",
"sdl2-image",
"sdl2-ttf",
"zlib",
]
template = "custom"
script = """
DYNAMIC_INIT
export ICU_LIBS="-licuuc -licudata -lstdc++"
export SDL2_LIBS="\
-lSDL2_gfx \
-lSDL2_image \
-lSDL2_ttf \
-lSDL2 \
-lorbital \
$("${PKG_CONFIG}" --libs osmesa) \
-ljpeg \
-lpng \
-lz \
"
COOKBOOK_CONFIGURE_FLAGS+=(
--enable-fcdb=no
--enable-fcmp=no
--enable-ipv6=no
--enable-client=sdl2
ac_cv_lib_SDL2_gfx_rotozoomSurface=yes
ac_cv_lib_SDL2_image_IMG_Load=yes
ac_cv_lib_SDL2_ttf_TTF_OpenFont=yes
)
export V=1
cookbook_configure
"""
[source]
git = "https://gitlab.redox-os.org/redox-os/freedoom.git"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/usr/games" "${COOKBOOK_STAGE}/share/games/doom" "${COOKBOOK_STAGE}/ui/apps" "${COOKBOOK_STAGE}/ui/icons/apps"
for file in "${COOKBOOK_SOURCE}/"*.wad
do
game="$(basename "$file" .wad)"
wad="/share/games/doom/$game.wad"
cp -v "$file" "${COOKBOOK_STAGE}$wad"
bin="/usr/games/$game"
echo "#!/bin/ion" > "${COOKBOOK_STAGE}$bin"
echo "/usr/games/prboom -geom 800x600 -vidmode 32 -iwad $wad" >> "${COOKBOOK_STAGE}$bin"
chmod +x "${COOKBOOK_STAGE}$bin"
echo "name=$game" | sed 's/freedoom/FreeDOOM: Phase /' | sed 's/doom1/DOOM (Shareware)/' > "${COOKBOOK_STAGE}/ui/apps/$game"
echo "category=Games" >> "${COOKBOOK_STAGE}/ui/apps/$game"
echo "binary=/usr/games/$game" >> "${COOKBOOK_STAGE}/ui/apps/$game"
echo "icon=/ui/icons/apps/$game.png" >> "${COOKBOOK_STAGE}/ui/apps/$game"
cp -v "${COOKBOOK_SOURCE}/$game.png" "${COOKBOOK_STAGE}/ui/icons/apps/$game.png"
done
"""
[package]
dependencies = [
"ion",
"prboom",
]
[source]
git = "https://gitlab.redox-os.org/redox-os/2048-rs.git"
#git_upstream = "https://github.com/pierrechevalier83/2048-rs.git"
[build]
template = "cargo"
name=Gigalomania
category=Games
binary=/usr/games/gigalomania/gigalomania
icon=/ui/icons/apps/gigalomania.png
VERSION=0.27 VERSION=1.0.1
GIT=https://gitlab.redox-os.org/redox-os/gigalomania.git GIT=https://gitlab.redox-os.org/redox-os/gigalomania.git
BRANCH=master BRANCH=master
BUILD_DEPENDS=(sdl_mixer sdl_image sdl liborbital libogg libpng libjpeg libvorbis zlib) BUILD_DEPENDS=(sdl1-mixer sdl1-image sdl1 liborbital libogg libpng libjpeg libvorbis zlib)
function recipe_version { function recipe_version {
echo "$VERSION" echo "$VERSION"
skip=1 skip=1
} }
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build { function recipe_build {
export CPPHOST=${HOST}-g++ export CPPHOST=${HOST}-g++
sysroot="$(realpath ../sysroot)" sysroot="$(realpath ../sysroot)"
...@@ -22,11 +17,6 @@ function recipe_build { ...@@ -22,11 +17,6 @@ function recipe_build {
skip=1 skip=1
} }
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean { function recipe_clean {
"$REDOX_MAKE" clean "$REDOX_MAKE" clean
skip=1 skip=1
...@@ -36,7 +26,14 @@ function recipe_stage { ...@@ -36,7 +26,14 @@ function recipe_stage {
dest="$(realpath $1)" dest="$(realpath $1)"
bundledir="$dest/bundle" bundledir="$dest/bundle"
"$REDOX_MAKE" VERBOSE=1 DESTDIR="$dest" install "$REDOX_MAKE" VERBOSE=1 DESTDIR="$dest/usr" install
rm -rf "$bundledir" rm -rf "$bundledir"
mkdir -pv "$1/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "$1/ui/apps/gigalomania"
mkdir -pv "$1/ui/icons/apps"
cp -v "gigalomania64.png" "$1/ui/icons/apps/gigalomania.png"
skip=1 skip=1
} }
[source]
git = "https://gitlab.redox-os.org/redox-os/hematite.git"
branch = "redox"
upstream = "https://github.com/PistonDevelopers/hematite.git"
[build]
template = "custom"
dependencies = [
"llvm18",
"mesa",
"zlib"
]
script = """
cargo rustc \
--target "$TARGET" \
--release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
-- \
-L "${COOKBOK_SYSROOT}/lib" \
-C link-args="-Wl,-Bstatic $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "target/${TARGET}/release/hematite" "${COOKBOOK_STAGE}/bin/hematite"
"""
name=Neverball
category=Games
binary=/usr/games/neverball/neverball
icon=/ui/icons/apps/neverball.png