From de09a8e06242219238db4856cca7f80738b4363c Mon Sep 17 00:00:00 2001 From: Tibor Nagy <xnagytibor@gmail.com> Date: Sun, 12 Jan 2020 17:24:30 +0100 Subject: [PATCH] Add vvvvvv recipe --- recipes/vvvvvv/recipe.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 recipes/vvvvvv/recipe.sh diff --git a/recipes/vvvvvv/recipe.sh b/recipes/vvvvvv/recipe.sh new file mode 100644 index 000000000..2fe0e19d0 --- /dev/null +++ b/recipes/vvvvvv/recipe.sh @@ -0,0 +1,38 @@ +VERSION=2.0 +GIT=https://github.com/xTibor/VVVVVV +BRANCH=redox +GIT_UPSTREAM=https://github.com/TerryCavanagh/VVVVVV +BUILD_DEPENDS=(sdl2_image sdl2_mixer sdl2 liborbital mesa mesa_glu zlib llvm libogg libvorbis) + +function recipe_version { + printf "1.0.0" + skip=1 +} + +function recipe_build { + sysroot="$(realpath ../sysroot)" + cd desktop_version + + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/ \ + -DBUILD_STATIC=ON \ + -DBUILD_SHARED=OFF \ + -DSDL2_INCLUDE_DIRS="$sysroot/include/SDL2" \ + -DSDL2_LIBRARIES="-static -lSDL2main -lSDL2_mixer -lSDL2 $("${PKG_CONFIG}" --libs glu) -lglapi -lorbital -lz -lvorbisfile -lvorbis -logg" \ + . + + make -j"$(nproc)" + skip=1 +} + +function recipe_clean { + echo "skipping clean" + skip=1 +} + +function recipe_stage { + dest="$(realpath $1)" + mkdir -pv "$1/games/vvvvvv" + cp ./desktop_version/VVVVVV "$1/games/vvvvvv" + skip=1 +} -- GitLab