From b3c6dbcd91d6b04795c02c2b95757ef9344d813e Mon Sep 17 00:00:00 2001
From: Tibor Nagy <xnagytibor@gmail.com>
Date: Thu, 29 Nov 2018 02:39:18 +0100
Subject: [PATCH] Add sopwith recipe

---
 recipes/sopwith/recipe.sh | 40 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 recipes/sopwith/recipe.sh

diff --git a/recipes/sopwith/recipe.sh b/recipes/sopwith/recipe.sh
new file mode 100644
index 000000000..9f75db60e
--- /dev/null
+++ b/recipes/sopwith/recipe.sh
@@ -0,0 +1,40 @@
+VERSION=1.8.4
+TAR=https://sourceforge.net/projects/sdl-sopwith/files/sdl_sopwith/$VERSION/sopwith-$VERSION.tar.gz
+BUILD_DEPENDS=(sdl liborbital libiconv)
+
+function recipe_version {
+    echo "$VERSION"
+    skip=1
+}
+
+function recipe_update {
+    echo "skipping update"
+    skip=1
+}
+
+function recipe_build {
+    wget -O autotools/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
+    sysroot="${PWD}/../sysroot"
+    export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
+    export LDFLAGS="-L$sysroot/lib"
+
+    ./configure --host=${HOST} --prefix='' --with-sdl-prefix="$sysroot"
+    make
+    skip=1
+}
+
+function recipe_test {
+    echo "skipping test"
+    skip=1
+}
+
+function recipe_clean {
+    make clean
+    skip=1
+}
+
+function recipe_stage {
+    dest="$(realpath $1)"
+    make DESTDIR="$dest" install
+    skip=1
+}
-- 
GitLab