# -*- 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 106238 2013-05-20 06:59:15Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           qt4 1.0

github.setup        QupZilla qupzilla 1.4.3 v
revision            1
name                QupZilla
categories          www
platforms           darwin
maintainers         ryandesign openmaintainer
license             GPL-3+

description         fast lightweight web browser made with QtWebKit

long_description    QupZilla is a ${description}. QupZilla has all the \
                    standard features you expect from a web browser, \
                    including bookmarks, history, tabbed browsing, RSS \
                    feeds, ad blocking, Flash blocking, and an SSL \
                    certificate manager.

homepage            http://www.qupzilla.com/

# 1.4.3 was stealth-updated 2013-05-10 (#39154)
dist_subdir         ${name}/${version}_1

checksums           rmd160  df2e891869f988cec27e470f8bc6bf1fb1ab202f \
                    sha256  aa41d87d722e8f74afa647a659278a7fae29c3faad150f4e7e5d93cb4ec96fd3

configure.cmd       ${prefix}/bin/qmake
configure.pre_args
configure.universal_args

variant universal {}

build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
                    LINK="${configure.cxx} [get_canonical_archflags cxx]" \
                    QUPZILLA_PREFIX=${prefix}/

destroot {
    system -W ${worksrcpath} "./scripts/macdeploy.sh true"
    copy ${worksrcpath}/bin/QupZilla.app ${destroot}${applications_dir}
}
