2021-01-27 18:13:48 +01:00
|
|
|
# Description: Unit testing framework
|
2023-02-18 14:07:38 +01:00
|
|
|
# URL: https://cmocka.org/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2017-05-24 14:58:17 +09:00
|
|
|
|
|
|
|
name=cmocka
|
2023-02-24 10:27:07 +01:00
|
|
|
version=1.1.7
|
2023-02-18 14:07:38 +01:00
|
|
|
release=1
|
2017-05-24 14:58:17 +09:00
|
|
|
source=(https://cmocka.org/files/1.1/$name-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2023-02-18 14:07:38 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2020-11-19 19:23:50 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-11-22 11:30:07 +01:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-19 19:23:50 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D UNIT_TESTING=On
|
2023-02-18 14:07:38 +01:00
|
|
|
cmake --build build -j ${JOBS:-1}
|
2020-07-10 22:54:29 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2017-05-24 14:58:17 +09:00
|
|
|
}
|