Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 51 lines (39 sloc) 1.35 KB
#! /bin/sh
set -e
PKG=libheif
VERSION=1.6.0
HEIFSRC=https://github.com/strukturag/libheif/releases/download/v$VERSION/libheif-$VERSION.tar.gz
BUILD=0
DE265VERSION=1.0.3
DE265SRC=https://github.com/strukturag/libde265/releases/download/v$DE265VERSION/libde265-$DE265VERSION.tar.gz
PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
LD_LIBRARY_PATH=$PREFIX/lib\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH}
if [ -d $PREFIX/.compatlibs ]; then LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
export LD_LIBRARY_PATH
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
cd $PREFIX/build
(
test -e libde265-$DE265VERSION.tar.gz || wget --no-verbose $DE265SRC
test -d libde265-$DE265VERSION || tar -xf libde265-$DE265VERSION.tar.gz
cd libde265-$DE265VERSION
./configure --prefix=$PREFIX --disable-sherlock265
nice -12 make -j $(nproc) || make
make install
)
(
test -e libheif-$VERSION.tar.gz || wget --no-verbose $HEIFSRC
test -d libheif-$VERSION || tar -xf libheif-$VERSION.tar.gz
cd libheif-$VERSION
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
./configure --prefix=$PREFIX --disable-gdk-pixbuf --disable-go
nice -12 make -j $(nproc) || make
make install
)
exit