mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-10 02:45:15 +00:00
52 lines
1.9 KiB
Bash
52 lines
1.9 KiB
Bash
#! /bin/bash
|
|
|
|
# libva
|
|
# Source: https://github.com/intel/libva/releases/download/2.18.0/libva-2.18.0.tar.bz2
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: libdrm
|
|
# Recommended: Mesa
|
|
# Optional: wayland-Protocols
|
|
|
|
# If optimizing, use these flags
|
|
export CFLAGS="-march=native -mtune=native -pipe "
|
|
export CFLAGS+="-O3 -Ofast -falign-functions=32 "
|
|
export CFLAGS+="-ffat-lto-objects -flto=4 -fno-semantic-interposition "
|
|
export CFLAGS+="-mprefer-vector-width=256 "
|
|
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--localstatedir=/var --disable-static $BUILDTRUPLE &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
sudo -SE make DESTDIR=$BUILD install &&
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
libva: libva (Video Acceleration API)
|
|
libva:
|
|
libva: The main motivation for VAAPI (Video Acceleration API) is to enable
|
|
libva: hardware accelerated video decode/encode at various entry-points (VLD,
|
|
libva: IDCT, Motion Compensation etc.) for the prevailing coding standards
|
|
libva: today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3)
|
|
libva:
|
|
libva: Website: http://www.splitted-desktop.com/~gbeauchesne/
|
|
libva:
|
|
libva:
|
|
libva:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libva-2.18.0-$PSUFFIX &&
|
|
sudo -S rm -rf ${BUILD}/*
|