# -*- 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.10 v
github.tarball_from archive
name                mediainfolib
revision            0
categories          multimedia devel
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  e9d262a33b516059293de312c5276b01aa3faa24 \
                    sha256  3985db56d18d504b0852c1485cfa9dbaf2733876058e9b8dc1b1411ebeba225d \
                    size    3322415

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
