# -*- 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: Portfile 80854 2011-07-19 06:15:13Z ryandesign@macports.org $

PortSystem          1.0

name                uzbl
version             2011.07.17
categories          www
platforms           darwin
maintainers         ryandesign openmaintainer

description         Uzbl Web Browser

long_description    ${name} is a web browser that adheres to the UNIX philosophy.

homepage            http://www.uzbl.org/
master_sites        https://github.com/Dieterbe/uzbl/tarball/${version}

checksums           sha1    ed51f7d954f04c82396af4753a47dbc5f026f4f7 \
                    rmd160  277ad0910595dc743b989494c880040564228c09

depends_build       port:pkgconfig

depends_lib         port:gtk2 \
                    port:webkit-gtk \
                    port:libsoup

post-extract {
    move [glob ${workpath}/*] ${worksrcpath}
}

use_configure       no

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

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

eval destroot.args  ${build.args}

livecheck.type      regex
livecheck.url       https://github.com/Dieterbe/uzbl/downloads
livecheck.regex     {tarball/([0-9.]+)"}
