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

PortSystem              1.0

name                    quickascii
version                 1.0.5
revision                1
maintainers             ryandesign openmaintainer
platforms               macosx
categories              multimedia
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.

checksums               md5     df5d7452fdf51fb53db54351bab58f8d \
                        sha1    9a796a5d235a1e9b156ae96e69bd59455adc3e83 \
                        rmd160  689e3bcdeb2b8808da62d1efc14904e3158f4c98

extract.suffix          .tgz

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

patchfiles-append       patch-qtplyr.c.diff

use_configure           no
eval configure.universal_archs ${supported_archs}

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.args              CC="${configure.cc} ${archflags}"

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}