diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 2be4deaccee..ba462df3e16 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -79,6 +79,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`tinyscheme`](tinyscheme/) | TinyScheme Interpreter | 1.42 | https://sourceforge.net/projects/tinyscheme/ | | [`tr`](tr/) | tr (OpenBSD) | 6.7 | https://github.com/ibara/libpuffy | | [`vim`](vim/) | Vim | | https://www.vim.org/ | +| [`vitetris`](vitetris/) | vitetris | 0.59.1 | https://github.com/vicgeralds/vitetris | | [`vttest`](vttest/) | vttest | 20210210 | https://invisible-island.net/vttest/ | | [`zlib`](zlib/) | zlib | 1.2.11 | https://www.zlib.net/ | | [`zstd`](zstd/) | Zstandard | 1.4.4 | https://facebook.github.io/zstd/ | diff --git a/Ports/vitetris/package.sh b/Ports/vitetris/package.sh new file mode 100755 index 00000000000..395bbbf7a32 --- /dev/null +++ b/Ports/vitetris/package.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=vitetris +useconfigure="true" +version="0.59.1" +files="https://github.com/vicgeralds/vitetris/archive/refs/tags/v${version}.tar.gz vitetris.tar.gz" +configopts="--without-xlib --without-joystick --without-network" + +configure() { + run chmod +x "$configscript" + run ./"$configscript" $configopts +} diff --git a/Ports/vitetris/patches/workaround.patch b/Ports/vitetris/patches/workaround.patch new file mode 100644 index 00000000000..b11426c74bd --- /dev/null +++ b/Ports/vitetris/patches/workaround.patch @@ -0,0 +1,10 @@ +diff --git a/src/input/select.h b/src/input/select.h +index 093bb77..48aad37 100644 +--- a/src/input/select.h ++++ b/src/input/select.h +@@ -1,4 +1,5 @@ + #include "../config.h" ++#include + #if HAVE_SYS_SELECT_H + #include + #elif __DJGPP__