# $Id: Portfile 56938 2009-09-03 17:24:27Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               xcode 1.0

name                    quickascii
version                 1.0.5
revision                1
maintainers             ryandesign openmaintainer
categories              multimedia
homepage                http://quickascii.sourceforge.net/
master_sites            sourceforge

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

universal_variant       no

extract.suffix          .tgz

patchfiles-append       patch-qtplyr.c.diff

xcode.destroot.path     ${prefix}/bin

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

livecheck.distname      ${name}-all

pre-fetch {
    if {"darwin" != ${os.platform}} {
        ui_error "${name} requires Mac OS X."
        return -code error "incompatible operating system"
    }
    if {${os.major} > 9} {
        ui_error "${name} ${version} is not compatible with Mac OS X 10.6 or later."
        return -code error "incompatible Mac OS X version"
    }
}
