# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        pkuvcl davs2 1.7
revision            0
categories          multimedia
license             GPL-2
maintainers         nomaintainer
description         Open-source decoder of AVS2-P2/IEEE1857.4 video coding standard
long_description    {*}${description}
checksums           rmd160  5c662413e7d7aa37ddda31411f61f119e744f627 \
                    sha256  b697d0b376a1c7f7eda3a4cc6d29707c8154c4774358303653f0a9727f923cc8 \
                    size    534311
github.tarball_from archive

worksrcdir          ${worksrcpath}/build/linux

compiler.cxx_standard   2011

configure.args-append \
                    --bit-depth=8 \
                    --disable-opencl \
                    --enable-lto \
                    --enable-pic \
                    --enable-shared \
                    --system-libdavs2

if {${configure.build_arch} in [list i386 x86_64]} {
    depends_build-append \
                    port:nasm
    build.env-append \
                    AS=${prefix}/bin/nasm
}
