# -*- 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 91586 2012-04-06 08:40:46Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           qt4 1.0

github.setup        nowrep QupZilla 1.2.0 v
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/

checksums           rmd160  0ef5c4e224a6627bb58f43fe52dad3f21f931cf9 \
                    sha256  2be583e9aca11aba19070ca7a128772649e3d2ed5da032128f4b451e71fddc31

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}
}
