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

name                    quickascii
version                 1.0.5
revision                1
checksums               rmd160  689e3bcdeb2b8808da62d1efc14904e3158f4c98 \
                        sha256  de23e0fbe932aa2cfd3886b1cf629eebdc5c1d34d32ac4284453191d58b5e092 \
                        size    24338

maintainers             {ryandesign @ryandesign} openmaintainer
platforms               macosx
categories              multimedia
license                 BSD Permissive
homepage                http://quickascii.sourceforge.net/
master_sites            sourceforge:project/quickascii/quickascii-all/${version}
supported_archs         i386 ppc

description             a movie player and picture viewer for the command line

long_description        QuickASCII is ${description}, powered by QuickTime.

extract.suffix          .tgz

post-extract {
    copy ${filespath}/Makefile ${worksrcpath}
    system -W ${worksrcpath} "make clean"
}

patchfiles-append       patch-commands.c.diff
patchfiles-append       patch-qtplyr.c.diff

use_configure           no

variant universal {}

build.args              CC="${configure.cc} [get_canonical_archflags cc]"

destroot {
    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -W ${worksrcpath} \
        INFO.txt \
        LICENSE.txt \
        ${docdir}
}

livecheck.type      sourceforge
livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
