mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
#! /bin/bash
|
|
|
|
# x265
|
|
# Source: https://anduin.linuxfromscratch.org/BLFS/x265/x265-20230215.tar.xz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: CMake
|
|
# Recommended: NASM
|
|
# Optional: numactl
|
|
|
|
case $(uname -m) in
|
|
i686) export ECONF="-DENABLE_ASSEMBLY=OFF" ;;
|
|
esac &&
|
|
|
|
mkdir bld &&
|
|
cd bld &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ${ECONF} ../source &&
|
|
read -p "Compile?" && make -j2 &&
|
|
unset ECONF &&
|
|
sudo -S 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------------------------------------------------------|
|
|
x265: x265 (H265/HEVC video encoder)
|
|
x265:
|
|
x265: x265 is free software library and application for encoding video
|
|
x265: streams into the H.265/MPEG-H HEVC compression format.
|
|
x265:
|
|
x265:
|
|
x265:
|
|
x265: Project URL: https://bitbucket.org/multicoreware/x265
|
|
x265:
|
|
x265:
|
|
x265:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/x265-2023.2.15-$PSUFFIX &&
|
|
sudo -S rm -rf ${BUILD}/*
|