aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2024-05-23 14:11:50 -0500
committerBen Kohler <bkohler@gentoo.org>2024-05-23 14:11:50 -0500
commit92b9792b8c644fdccff00d25d5be32448498b987 (patch)
treee7edf656bc1884e3a79a408a1129401bea5af011 /gkbuilds
parentdefaults/software.sh: fix srcdir for new bcache-tools (diff)
downloadgenkernel-92b9792b8c644fdccff00d25d5be32448498b987.tar.gz
genkernel-92b9792b8c644fdccff00d25d5be32448498b987.tar.bz2
genkernel-92b9792b8c644fdccff00d25d5be32448498b987.zip
gkbuilds: add json-c-0.17
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r--gkbuilds/json-c-0.17.gkbuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/gkbuilds/json-c-0.17.gkbuild b/gkbuilds/json-c-0.17.gkbuild
new file mode 100644
index 0000000..9d89852
--- /dev/null
+++ b/gkbuilds/json-c-0.17.gkbuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+src_configure() {
+ mkdir ../${P}_build
+ cd ../${P}_build
+
+ gkexec "cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_APPS=OFF \
+ -DDISABLE_EXTRA_LIBS=ON \
+ -DDISABLE_WERROR=ON \
+ -DENABLE_RDRAND=no \
+ -DENABLE_THREADING=no \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ ../${P}"
+}
+
+src_compile() {
+ cd ../${P}_build
+ gkmake
+}
+
+src_install() {
+ cd ../${P}_build
+ gkmake DESTDIR="${D}" install
+}