From 8b56ce4a032e3ce9363b09b79b2e94a6c5a1b33b Mon Sep 17 00:00:00 2001
From: Tibor Nagy <xnagytibor@gmail.com>
Date: Mon, 4 Dec 2017 04:27:18 +0100
Subject: [PATCH] Add mdp recipe

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

diff --git a/recipes/mdp/recipe.sh b/recipes/mdp/recipe.sh
new file mode 100644
index 000000000..c24965373
--- /dev/null
+++ b/recipes/mdp/recipe.sh
@@ -0,0 +1,40 @@
+GIT=https://github.com/visit1985/mdp.git
+BUILD_DEPENDS=(ncursesw)
+DEPENDS="terminfo"
+
+function recipe_version {
+    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+    skip=1
+}
+
+function recipe_update {
+    echo "skipping update"
+    skip=1
+}
+
+function recipe_build {
+    sysroot="${PWD}/../sysroot"
+    export CC="${HOST}-gcc"
+    export LD="${HOST}-ld"
+    export CFLAGS="-I$sysroot/include -I$sysroot/include/ncursesw"
+    export LDFLAGS="-L$sysroot/lib"
+
+    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" PREFIX="" install
+    skip=1
+}
-- 
GitLab