#!/bin/sh
#
# Copyright 2023-2026 Sasa Ostrouska <saxa@droplinegnome.org>
# Available under the terms of the GNU GPL.
#

NAME="fdk-aac"
VERSION="2.0.3"
REVISION="1"

PKG_SOURCEURL='https://github.com/mstorsjo/${NAME}/archive/refs/tags/v${VERSION}.tar.gz'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
cxxflags
prepare
analyzesource
# We have to generate configure.
spewdo "cd ${PKG_SRCROOT}; ./autogen.sh"

configure
make
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
