From 699ae792acbfe1a60a7d5c8afcc9e9ea0db9dfa3 Mon Sep 17 00:00:00 2001
From: Tim Biermann <tbier@posteo.de>
Date: Tue, 3 Nov 2020 20:58:38 +0000
Subject: [PATCH] yajl: updated cmake syntax

---
 yajl/.signature | 4 ++--
 yajl/Pkgfile    | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/yajl/.signature b/yajl/.signature
index 50ef5d63e..1efc3ef1e 100644
--- a/yajl/.signature
+++ b/yajl/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF399+WBP5GMsSLoxJ0ctgrHv+cYIqosL5aR0G5QyAwOU2295f27wAwyUeYDFV0/x8SNrapGIKi/uEatRJEF4LHgU=
-SHA256 (Pkgfile) = 1e2b8e280d05942c6cbaa8e620f85f559c383e35a361a46dc52914f2b3073467
+RWSagIOpLGJF3+s4T19FDj+7c9eJyWZTBLsno88vZm41HrDJybxY7Imcmjvup9wQCCC39Xezyxl5tQtvi3LmUl0Enc77J/sGIwQ=
+SHA256 (Pkgfile) = 1157f7ff0e83f685e07d13db08fd0c767926100fffee26da62057895df8cebf9
 SHA256 (.footprint) = a12a3cd23e0ffa9ef413dd7d8d801472c0b67d9f53dae0d996713ea0eaca8686
 SHA256 (yajl-2.1.0.tar.gz) = 3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a
diff --git a/yajl/Pkgfile b/yajl/Pkgfile
index abca072c7..ac65586c2 100644
--- a/yajl/Pkgfile
+++ b/yajl/Pkgfile
@@ -9,8 +9,10 @@ release=1
 source=(https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz)
 
 build() {
-  cmake -S$name-$version -Bbuild \
-    -DCMAKE_INSTALL_PREFIX=/usr
+  [[ -e /usr/bin/ninja ]] && PKGMK_YAJL_OPTIONS=' -GNinja'
+  cmake -S$name-$version -Bbuild $PKGMK_YAJL_OPTIONS \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -Wno-dev
   cmake --build build
   DESTDIR=$PKG cmake --install build
 }