Skip to content

Commit

Permalink
gkbuilds: add json-c-0.17
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
  • Loading branch information
benkohler committed May 23, 2024
1 parent f973903 commit 92b9792
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions gkbuilds/json-c-0.17.gkbuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 92b9792

Please sign in to comment.