mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
Merge branch 'vvvvvv' into 'master'
Add VVVVVV recipe See merge request redox-os/cookbook!234
This commit is contained in:
commit
14d6086280
@ -1,6 +1,6 @@
|
||||
VERSION=2.0.4
|
||||
TAR=https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-$VERSION.tar.gz
|
||||
BUILD_DEPENDS=(sdl2 liborbital llvm mesa mesa_glu zlib)
|
||||
BUILD_DEPENDS=(sdl2 liborbital llvm mesa mesa_glu zlib libogg libvorbis)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
@ -16,7 +16,7 @@ function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-I$sysroot/include"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export SDL_LIBS="-lSDL2 -lorbital $("${PKG_CONFIG}" --libs glu) -lglapi -lz -lm -lpthread -lstdc++"
|
||||
export SDL_LIBS="-lSDL2 -lorbital $("${PKG_CONFIG}" --libs glu) -lglapi -lvorbis -logg -lz -lm -lpthread -lstdc++"
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--prefix=/ \
|
||||
@ -24,6 +24,7 @@ function recipe_build {
|
||||
--host=${HOST} \
|
||||
--disable-shared \
|
||||
--disable-sdltest \
|
||||
--enable-music-ogg \
|
||||
--disable-music-cmd \
|
||||
--disable-music-mp3 \
|
||||
--disable-smpegtest \
|
||||
|
||||
38
recipes/vvvvvv/recipe.sh
Normal file
38
recipes/vvvvvv/recipe.sh
Normal file
@ -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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user