# $Id$

PortSystem          1.0

name                cws2fws-pl
version             0.0.1
revision            1
categories          multimedia
maintainers         nomaintainer
description         Flash format 6+ decompressor
long_description    ${description}
platforms           darwin
supported_archs     noarch
homepage            http://zefonseca.com/cws2fws/
master_sites        http://zefonseca.com/cws2fws/release/
distfiles           cws2fws

depends_run         port:p5.12-io-compress

checksums           rmd160  733a7fa884771c4a5d66eaafc5d89c867048ca20

extract {
    file mkdir ${worksrcpath}
    copy "${distpath}/cws2fws" "${worksrcpath}/cws2fws.pl"
}

patch {
    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.12|" "${worksrcpath}/cws2fws.pl"
}

use_configure       no

build {}

destroot {
    xinstall -m 0755 "${worksrcpath}/cws2fws.pl" "${destroot}${prefix}/bin/cws2fws.pl"
}

livecheck.type      none