# -*- 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
PortGroup           legacysupport   1.1
PortGroup           makefile        1.0

github.setup        panzi mediaextract 1.2.1 v
github.tarball_from archive
revision            0

description         \
    Extracts media files (AVI, Ogg, Wave, PNG, ...) that are embedded within \
    other files.

long_description    {*}${description}

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  6143c198c7766cf2e96d1b4a46cf90fca09bac5b \
                    sha256  df1b18659e448d31f264ba24f24a6414c41bfefcde84352f7065534c2f5d57f1 \
                    size    40042

depends_build-append \
                    port:help2man

# The Makefile installs into $(PREFIX) directly and never consults DESTDIR, so
# the prefix has to carry the staging directory itself. Telling the portgroup
# there is no DESTDIR support makes it pass PREFIX=$(DESTDIR)${prefix} for the
# destroot phase, which composes with the DESTDIR it already sets.
makefile.has_destdir no

build.pre_args      builddir all
build.post_args-append \
                    BUILD_TYPE=release

use_parallel_build  no

destroot.post_args-append \
                    BUILD_TYPE=release
