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

# normally update mediainfo port at the same time
github.setup        MediaArea MediaInfoLib 25.10 v
github.tarball_from archive
checksums           rmd160  ac87edd35037a4e91a47ec9c703fdafe31efe3e6 \
                    sha256  e4b2b82f3df8d2c190643d1705ee35c3102674954858d02a2e2b42840f0f07aa \
                    size    3187266

name                mediainfolib
description         Supplies technical and tag information about a video or audio file
long_description    {*}${description}
homepage            https://mediaarea.net
categories          devel multimedia
maintainers         {makr @mohd-akram} openmaintainer
license             BSD

# make pkg-config act like on Linux, no '-I/opt/local/include' in cflags
configure.env-append \
                    PKG_CONFIG_SYSTEM_INCLUDE_PATH=${prefix}/include

# cascade of errors if no autoreconf
use_autoreconf      yes
autoreconf.args-append \
                    --force --install
configure.args      --with-libcurl

# otherwise may find headers from libmd, maybe others
configure.cppflags-delete \
                    -I${prefix}/include

depends_build-append \
                    path:bin/pkg-config:pkgconfig
depends_lib-append  port:curl \
                    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}
