# -*- 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                aget
version             0.4.1
revision            1
categories          net
platforms           darwin
maintainers         nomaintainer
license             BSD

description         multithreaded HTTP download accelerator

long_description    Aget is a multithreaded HTTP download accelerator, \
                    similar to the Win32 Project Flashget.

homepage            http://www.enderunix.org/aget/
master_sites        ${homepage}

checksums           rmd160  4a23d722b0e4d6c632c40006aa5e67d5acfd4b88 \
                    sha256  d17393c7f44aab38028ae71f14b572ba1839b6e085fb2092b6ebe68bc931df4d

patchfiles          patch-Head.c

post-patch {
    reinplace "s| -pthread||" ${worksrcpath}/Makefile
}

use_configure       no

variant universal {}

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

destroot {
    xinstall -s -m 755 ${worksrcpath}/aget ${destroot}${prefix}/bin
}

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