# -*- 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

# update along with mediainfo
github.setup        MediaArea MediaInfoLib 26.01 v
github.tarball_from archive
name                mediainfolib
revision            1
categories          devel multimedia
license             BSD
maintainers         {makr @mohd-akram} openmaintainer

description         technical and tag data for video and audio files

long_description    MediaInfo(Lib) is a convenient unified display of the most \
                    relevant technical and tag data for video and audio files.

homepage            https://mediaarea.net/en/MediaInfo

checksums           rmd160  ba06cdbfe9f4d99fa76ea4c630fcaac570b862eb \
                    sha256  941daa01fce4595bd7b56c4d2db166f58e2bb2362dcb9636b952ee29b64db986 \
                    size    3222584

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:curl \
                    port:tinyxml2 \
                    port:zenlib \
                    port:zlib

worksrcdir          ${worksrcdir}/Project/GNU/Library

compiler.cxx_standard   2011

# see https://trac.macports.org/ticket/67223
compiler.blacklist-append   {clang < 900}

use_autoreconf      yes

configure.args      --enable-static \
                    --with-libcurl \
                    --with-libtinyxml2
