This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
intel-media-driver-non-free/debian/rules
Ward Nakchbandi (Cosmic Fusion) 7672e13e00
Update rules
2023-10-27 15:12:05 +03:00

25 lines
653 B
Makefile
Executable File

#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS=future=+lfs
export DEB_CFLAGS_MAINT_APPEND = -Wno-error
%:
dh $@ -Scmake+ninja
override_dh_auto_configure:
dh_auto_configure -- \
-DINSTALL_DRIVER_SYSCONF=OFF \
-DENABLE_KERNELS=ON \
-DENABLE_NONFREE_KERNELS=ON \
-DBUILD_CMRTLIB=OFF \
-DARCH=$(DEB_HOST_ARCH_BITS) \
-DMEDIA_BUILD_FATAL_WARNINGS=OFF
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
# Requires Broadwell or newer, so check for SSE 4.2 support at least.
if grep -q sse4_2 /proc/cpuinfo && grep -q GenuineIntel /proc/cpuinfo; then dh_auto_test; fi
endif