#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2015-2016, 2026 InterGenJLU
#
# libde265 1.0.16 — Open source H.265/HEVC video decoder
# BLFS 13.0

configure() {
    set -e
    # Remove development-only tools per BLFS
    sed '/tools/d' -i Makefile.am
    ./autogen.sh

    ./configure --prefix=/usr         \
                --disable-sherlock265 \
                --disable-static
}

build() {
    set -e
    make -j${IGOS_JOBS}
}

do_install() {
    set -e
    make DESTDIR="$DESTDIR" install
}
