forked from robbat2/genkernel
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |