Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add intel-media-driver recipe #27596

Merged
merged 17 commits into from
Nov 3, 2024
10 changes: 10 additions & 0 deletions recipes/intel-media-driver/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set -ex

mkdir build
pushd build

cmake ${CMAKE_ARGS} ..

make -j${CPU_COUNT}

make install
48 changes: 48 additions & 0 deletions recipes/intel-media-driver/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
context:
name: intel-media-driver
version: "24.3.4"

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://github.com/intel/media-driver/archive/refs/tags/intel-media-${{ version }}.tar.gz
sha256: 58978f9ee4981532e60be2f2768673b1f3825db09971ebb98fbd7e8819cab6eb

build:
skip:
- win
- osx
number: 0

requirements:
build:
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
- ${{ stdlib('c') }}
- cmake
- make
host:
- libva
- intel-gmmlib
run_exports:
- ${{ pin_subpackage('intel-media-driver', upper_bound='x.x') }}

tests:
- script:
- test -f ${PREFIX}/lib/dri/iHD_drv_video.so

about:
homepage: https://github.com/intel/media-driver
summary: 'Intel(R) Media Driver for VAAPI'
description: |
The Intel(R) Media Driver for VAAPI is a new VA-API (Video Acceleration
API) user mode driver supporting hardware accelerated decoding, encoding,
and video post processing for GEN based graphics hardware.
license: MIT
license_file: LICENSE.md

extra:
recipe-maintainers:
- hmaarrfk
12 changes: 12 additions & 0 deletions recipes/libvpl-tools/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set -ex

mkdir build
pushd build

cmake ${CMAKE_ARGS} \
-DENABLE_WAYLAND=OFF \
..

make -j${CPU_COUNT}

make install
67 changes: 67 additions & 0 deletions recipes/libvpl-tools/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
context:
name: libvpl-tools
version: "1.2.0"

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://github.com/intel/libvpl-tools/archive/refs/tags/v${{ version }}.tar.gz
sha256: b6768982abdef340eb14764499d9cb7201b1c74d319f93f3ffb07c980e04f7fa

build:
skip:
- win
- osx
number: 0

requirements:
build:
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
- ${{ stdlib('c') }}
- cmake
- make
host:
- libvpl
- libdrm
- libpciaccess
# - wayland

tests:
- script:
- system_analyzer -help
- metrics_monitor -help
# The following commands return error on -help
# So "grep" for something useful
- test -x ${PREFIX}/bin/val-surface-sharing
- val-surface-sharing -help | grep Usage
- test -x ${PREFIX}/bin/vpl-import-export
- vpl-import-export -help | grep Usage
- test -x ${PREFIX}/bin/vpl-inspect
- vpl-inspect -help | grep Usage
- test -x ${PREFIX}/bin/sample_decode
- sample_decode -help | grep Usage
- test -x ${PREFIX}/bin/sample_vpp
- sample_vpp -help | grep Usage
- test -x ${PREFIX}/bin/sample_encode
- sample_encode -help | grep Usage
- test -x ${PREFIX}/bin/sample_multi_transcode
- sample_multi_transcode -help | grep Usage

about:
homepage: https://github.com/intel/media-driver
summary: 'Intel® Video Processing Library (Intel® VPL)'
description: |
Intel® Video Processing Library (Intel® VPL) provides access to hardware
accelerated video decode, encode, and processing capabilities on Intel®
GPUs to support AI visual inference, media delivery, cloud gaming, and
virtual desktop infrastructure use cases.

license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- hmaarrfk
13 changes: 13 additions & 0 deletions recipes/libvpl/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set -ex

mkdir build
pushd build

cmake ${CMAKE_ARGS} ..

make -j${CPU_COUNT}

make install

# Don't install the examples
rm -rf ${PREFIX}/share/vpl/examples
51 changes: 51 additions & 0 deletions recipes/libvpl/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
context:
name: libvpl
version: "2.13.0"

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://github.com/intel/libvpl/archive/refs/tags/v${{ version }}.tar.gz
sha256: 1c740e2b58f7853f56b618bdb7d4a7e5d37f8c1a9b30105a0b79ba80873e1cbd

build:
skip:
- win
- osx
number: 0

requirements:
build:
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
- ${{ stdlib('c') }}
- cmake
- make
host:
- libva
- intel-media-driver
run_exports:
- ${{ pin_subpackage('libvpl', upper_bound='x.x') }}

tests:
- script:
- test -f ${PREFIX}/lib/libvpl.so
- test -f ${PREFIX}/include/vpl/mfx.h

about:
homepage: https://github.com/intel/media-driver
summary: 'Intel® Video Processing Library (Intel® VPL)'
description: |
Intel® Video Processing Library (Intel® VPL) provides access to hardware
accelerated video decode, encode, and processing capabilities on Intel®
GPUs to support AI visual inference, media delivery, cloud gaming, and
virtual desktop infrastructure use cases.

license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- hmaarrfk