summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJaan <jaan_veersoo@hotmail.com>2021-03-20 23:34:53 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-21 09:33:35 +0100
commit226e063207f69048c1698537e70e699cad5115e8 (patch)
treec30b3fded2afb45bb4d721483d006b4fb1fe9aa5 /Ports
parent0a911178cea4fcfb462eb7e256c51ed75756c7c8 (diff)
downloadserenity-226e063207f69048c1698537e70e699cad5115e8.zip
Ports: vitetris
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/vitetris/package.sh11
-rw-r--r--Ports/vitetris/patches/workaround.patch10
3 files changed, 22 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index 2be4deacce..ba462df3e1 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 0000000000..395bbbf7a3
--- /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 0000000000..b11426c74b
--- /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 <sys/time.h>
+ #if HAVE_SYS_SELECT_H
+ #include <sys/select.h>
+ #elif __DJGPP__