Date: Sunday, April 10, 2022 @ 10:29:28 Author: dbermond Revision: 1184183
archrelease: copy trunk to community-x86_64 Added: intel-media-sdk/repos/community-x86_64/PKGBUILD (from rev 1184182, intel-media-sdk/trunk/PKGBUILD) Deleted: intel-media-sdk/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 130 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 65 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-10 10:29:03 UTC (rev 1184182) +++ PKGBUILD 2022-04-10 10:29:28 UTC (rev 1184183) @@ -1,65 +0,0 @@ -# Maintainer: Daniel Bermond <dberm...@archlinux.org> - -pkgbase=intel-media-sdk -pkgname=('intel-media-sdk' 'libmfx') -pkgver=22.1.0 -pkgrel=1 -pkgdesc='API to access hardware-accelerated video on Intel Gen graphics hardware platforms' -arch=('x86_64') -url='https://software.intel.com/en-us/media-sdk/' -license=('MIT') -makedepends=('libdrm' 'libva' 'wayland' 'intel-media-driver' - 'cmake' 'libpciaccess' 'libx11' 'libxcb' 'python') -source=("https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${pkgver}.tar.gz" - '010-intel-media-sdk-fix-reproducible-build.patch'::'https://github.com/Intel-Media-SDK/MediaSDK/commit/f6925886f27a39eed2e43c5b7b6c342d00f7a970.patch') -sha256sums=('5ed1d22b5c5a05d3e848e43caa2b3966dbfb7f74281a646e6d0774a0621a9b8b' - 'f1d8a4edf953cfec1516f1a8383c5ee033245aba16cfae0bc79b7de1a6365fcc') - -prepare() { - patch -d "MediaSDK-intel-mediasdk-${pkgver}" -Np1 -i "${srcdir}/010-intel-media-sdk-fix-reproducible-build.patch" -} - -build() { - export CFLAGS+=' -ffat-lto-objects' - export CXXFLAGS+=' -ffat-lto-objects' - cmake -B build -S "MediaSDK-intel-mediasdk-${pkgver}" \ - -DBUILD_ALL:BOOL='ON' \ - -DBUILD_TOOLS:BOOL='ON' \ - -DCMAKE_BUILD_TYPE:STRING='None' \ - -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ - -DENABLE_ITT:BOOL='OFF' \ - -DENABLE_OPENCL:BOOL='OFF' \ - -DENABLE_WAYLAND:BOOL='ON' \ - -DENABLE_X11_DRI3:BOOL='ON' \ - -DMFX_APPS_DIR='/usr/lib/mfx' \ - -Wno-dev - make -C build -} - -check() { - make -C build test -} - -package_intel-media-sdk() { - depends=('libdrm' 'libva' 'wayland' "libmfx=${pkgver}" 'intel-media-driver') - - make -C build DESTDIR="$pkgdir" install - ln -s mfx/samples/libcttmetrics.so "${pkgdir}/usr/lib/libcttmetrics.so" - install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" - - # remove core component libmfx - [ -d 'libmfx' ] && rm -rf libmfx - mkdir -p libmfx/{include,lib/pkgconfig} - mv "${pkgdir}/usr/include/mfx" libmfx/include - mv "${pkgdir}/usr/lib/libmfx.so"* libmfx/lib - mv "${pkgdir}/usr/lib/pkgconfig/"{,lib}mfx.pc libmfx/lib/pkgconfig - rm -d "${pkgdir}/usr/include" -} - -package_libmfx() { - pkgdesc='Intel Media SDK dispatcher library' - depends=('gcc-libs') - - mv libmfx "${pkgdir}/usr" - install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" -} Copied: intel-media-sdk/repos/community-x86_64/PKGBUILD (from rev 1184182, intel-media-sdk/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-10 10:29:28 UTC (rev 1184183) @@ -0,0 +1,65 @@ +# Maintainer: Daniel Bermond <dberm...@archlinux.org> + +pkgbase=intel-media-sdk +pkgname=('intel-media-sdk' 'libmfx') +pkgver=22.3.0 +pkgrel=1 +pkgdesc='API to access hardware-accelerated video on Intel Gen graphics hardware platforms' +arch=('x86_64') +url='https://software.intel.com/en-us/media-sdk/' +license=('MIT') +makedepends=('libdrm' 'libva' 'wayland' 'intel-media-driver' + 'cmake' 'libpciaccess' 'libx11' 'libxcb' 'python') +source=("https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${pkgver}.tar.gz" + '010-intel-media-sdk-fix-reproducible-build.patch'::'https://github.com/Intel-Media-SDK/MediaSDK/commit/f6925886f27a39eed2e43c5b7b6c342d00f7a970.patch') +sha256sums=('e1e74229f409e969b70c2b35b1955068de3d40db85ecc42bd6ff501468bc76d7' + 'f1d8a4edf953cfec1516f1a8383c5ee033245aba16cfae0bc79b7de1a6365fcc') + +prepare() { + patch -d "MediaSDK-intel-mediasdk-${pkgver}" -Np1 -i "${srcdir}/010-intel-media-sdk-fix-reproducible-build.patch" +} + +build() { + export CFLAGS+=' -ffat-lto-objects' + export CXXFLAGS+=' -ffat-lto-objects' + cmake -B build -S "MediaSDK-intel-mediasdk-${pkgver}" \ + -DBUILD_ALL:BOOL='ON' \ + -DBUILD_TOOLS:BOOL='ON' \ + -DCMAKE_BUILD_TYPE:STRING='None' \ + -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ + -DENABLE_ITT:BOOL='OFF' \ + -DENABLE_OPENCL:BOOL='OFF' \ + -DENABLE_WAYLAND:BOOL='ON' \ + -DENABLE_X11_DRI3:BOOL='ON' \ + -DMFX_APPS_DIR='/usr/lib/mfx' \ + -Wno-dev + make -C build +} + +check() { + make -C build test +} + +package_intel-media-sdk() { + depends=('libdrm' 'libva' 'wayland' "libmfx=${pkgver}" 'intel-media-driver') + + make -C build DESTDIR="$pkgdir" install + ln -s mfx/samples/libcttmetrics.so "${pkgdir}/usr/lib/libcttmetrics.so" + install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" + + # remove core component libmfx + [ -d 'libmfx' ] && rm -rf libmfx + mkdir -p libmfx/{include,lib/pkgconfig} + mv "${pkgdir}/usr/include/mfx" libmfx/include + mv "${pkgdir}/usr/lib/libmfx.so"* libmfx/lib + mv "${pkgdir}/usr/lib/pkgconfig/"{,lib}mfx.pc libmfx/lib/pkgconfig + rm -d "${pkgdir}/usr/include" +} + +package_libmfx() { + pkgdesc='Intel Media SDK dispatcher library' + depends=('gcc-libs') + + mv libmfx "${pkgdir}/usr" + install -D -m644 "MediaSDK-intel-mediasdk-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +}