2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 08:40:10 -07:00
repo/extra/intel-media-driver/build

21 lines
429 B
Plaintext
Raw Normal View History

#!/bin/sh -e
export DESTDIR="$1"
2020-01-29 10:42:59 -07:00
sed -i 's/SHARED/STATIC/' gmmlib/Source/GmmLib/CMakeLists.txt
cd media
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBS_DIR_GMMLIB="$OLDPWD/gmmlib/Source/GmmLib" \
-DINSTALL_DRIVER_SYSCONF=OFF \
-DRUN_TEST_SUITE=OFF
cmake --build build
cmake --install build
rm -rf "$1/usr/include/igdgmm" \
"$1/usr/lib/pkgconfig/igdgmm.pc"