2022-12-19 17:17:39 +01:00
|
|
|
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
2022-03-07 13:13:36 +01:00
|
|
|
;;; Copyright © 2022 Jelle Licht <jlicht@fsfe.org>
|
|
|
|
|
|
|
|
(define-module (nongnu packages video)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages video)
|
|
|
|
#:use-module (guix build utils)
|
|
|
|
#:use-module (guix build-system cmake)
|
2023-07-30 16:06:43 +02:00
|
|
|
#:use-module (guix gexp)
|
2022-03-07 13:13:36 +01:00
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix packages)
|
2023-07-30 16:07:50 +02:00
|
|
|
#:use-module (guix utils)
|
2022-03-07 13:13:36 +01:00
|
|
|
#:use-module ((guix licenses) #:prefix license:))
|
|
|
|
|
|
|
|
(define-public gmmlib
|
|
|
|
(package
|
|
|
|
(name "gmmlib")
|
2023-07-30 14:37:16 +02:00
|
|
|
(version "22.3.9")
|
2022-03-07 13:13:36 +01:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/intel/gmmlib")
|
|
|
|
(commit (string-append "intel-gmmlib-" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-07-30 14:37:16 +02:00
|
|
|
"0m88lxlqqs5wdk4icf2ahbigr0q87j1c0damq7q0r55h72pf6zyv"))))
|
2022-03-07 13:13:36 +01:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
;; Tests are run as part of the normal build step
|
|
|
|
'(#:tests? #f))
|
|
|
|
(home-page "https://github.com/intel/gmmlib")
|
|
|
|
(synopsis "Intel Graphics Memory Management Library")
|
|
|
|
(description
|
|
|
|
"This package provides device specific and buffer management for the
|
|
|
|
Intel Graphics Compute Runtime for OpenCL and the Intel Media Driver
|
|
|
|
for VAAPI.")
|
|
|
|
(license license:expat)))
|
2022-03-07 13:14:32 +01:00
|
|
|
|
|
|
|
(define-public intel-media-driver
|
|
|
|
(package
|
|
|
|
(name "intel-media-driver")
|
2023-07-30 14:38:07 +02:00
|
|
|
(version "23.3.0")
|
2022-03-07 13:14:32 +01:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/intel/media-driver")
|
|
|
|
(commit (string-append "intel-media-" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-07-30 14:38:07 +02:00
|
|
|
"1zh6zgfyp14zlnd6jvhqz9q5rlyk7cb3nam791slh0h7r5f0iimm"))))
|
2022-03-07 13:14:32 +01:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs (list libva gmmlib))
|
|
|
|
(native-inputs (list pkg-config))
|
|
|
|
(arguments
|
2023-07-30 16:06:43 +02:00
|
|
|
(list #:tests? #f ;Tests are run as part of the normal build step
|
|
|
|
#:configure-flags
|
|
|
|
#~(list "-DENABLE_NONFREE_KERNELS=OFF"
|
|
|
|
(string-append "-DLIBVA_DRIVERS_PATH="
|
|
|
|
#$output "/lib/dri"))))
|
2022-03-07 13:14:32 +01:00
|
|
|
;; XXX Because of <https://issues.guix.gnu.org/issue/22138>, we need to add
|
|
|
|
;; this to all VA-API back ends instead of once to libva.
|
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "LIBVA_DRIVERS_PATH")
|
|
|
|
(files '("lib/dri")))))
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux"))
|
|
|
|
(home-page "https://github.com/intel/media-driver")
|
|
|
|
(synopsis "Intel Media Driver for VAAPI")
|
|
|
|
(description
|
|
|
|
"This package provides a VA-API user mode driver supporting hardware
|
|
|
|
accelerated decoding, encoding, and video post processing for the GEN based
|
|
|
|
graphics hardware.")
|
|
|
|
(license (list license:expat license:bsd-3))))
|
2023-07-30 16:07:50 +02:00
|
|
|
|
|
|
|
(define-public intel-media-driver/nonfree
|
|
|
|
(package
|
|
|
|
(inherit intel-media-driver)
|
|
|
|
(name "intel-media-driver-nonfree")
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments intel-media-driver)
|
|
|
|
((#:configure-flags flags #~'())
|
|
|
|
#~(cons "-DENABLE_NONFREE_KERNELS=ON"
|
|
|
|
(delete "-DENABLE_NONFREE_KERNELS=OFF" #$flags)))))
|
|
|
|
(synopsis
|
|
|
|
(string-append
|
|
|
|
(package-synopsis intel-media-driver)
|
|
|
|
" with nonfree kernels"))
|
|
|
|
(description
|
|
|
|
(string-append
|
|
|
|
(package-description intel-media-driver)
|
|
|
|
" This build of intel-media-driver includes nonfree blobs to fully enable the
|
|
|
|
video decode capabilities of supported Intel GPUs."))))
|