# -*- 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.2 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  f6358bbaf20d077190f833a9ec8029ef94cd1b5e \
                    sha256  8906001546f6e67f3e941adf887e89e91b331c1fdfbf0e39aa7a17cacf47610a \
                    size    40269

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
