30 lines
999 B
Plaintext
30 lines
999 B
Plaintext
|
# Description: A library of various helper routines and frameworks used by many of the lab's software
|
||
|
# URL: https://github.com/KarypisLab/GKlib
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Depends on:
|
||
|
|
||
|
name=gklib
|
||
|
version=20230327
|
||
|
_commit=8bd6bad750b2b0d90800c632cf18e8ee93ad72d7
|
||
|
release=1
|
||
|
source=(https://github.com/KarypisLab/GKlib/archive/$_commit/$name-$_commit.tar.gz
|
||
|
gklib-5.1.1_p20230327-multilib.patch
|
||
|
gklib-5.1.1_p20230327-respect-user-flags.patch)
|
||
|
renames=($name-$version.tar.gz SKIP SKIP)
|
||
|
|
||
|
build() {
|
||
|
patch -Np1 -d GKlib-* -i $SRC/gklib-5.1.1_p20230327-respect-user-flags.patch
|
||
|
patch -Np1 -d GKlib-* -i $SRC/gklib-5.1.1_p20230327-multilib.patch
|
||
|
|
||
|
cmake -S GKlib-* -B build -G Ninja \
|
||
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
||
|
-D CMAKE_BUILD_TYPE=Release \
|
||
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
|
||
|
-D NO_X86=ON \
|
||
|
-Wno-dev
|
||
|
cmake --build build
|
||
|
DESTDIR=$PKG cmake --install build
|
||
|
}
|