# -*- 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 84512 2011-09-27 14:19:06Z snc@macports.org $

PortSystem 1.0
PortGroup       qt4 1.0

name		qtpfsgui
version		1.9.3
revision        2
categories	aqua graphics
maintainers	gmail.com:clubjuggler openmaintainer
description	GUI for HDR imaging workflow
long_description Qtpfsgui is an open source graphical user interface \
                application that aims to provide a workflow for HDR imaging.
platforms	darwin
homepage	http://qtpfsgui.sourceforge.net/
master_sites	sourceforge

depends_lib-append \
    port:exiv2 port:openexr \
    port:ilmbase port:fftw-3-single port:tiff

checksums       md5     5a6421391e373c912e4a793e131151c8 \
                sha1    adf037c54f55be50d931fa484cca169c01d0384d \
                rmd160  5188b2f1679d6788358067fe761d0c72c475bfe9

patchfiles      patch-project.pro.diff

# set arch type(s); done is a stage to make sure the 'options
# qt_arch_types' is evaluated -after- +universal (if selected).
pre-configure {
    configure.pre_args  CONFIG+="${qt_arch_types}"
}

configure.args  APPLICATIONS_DIR="${applications_dir}" \
                DOCDIR="${prefix}/share/doc/${name}" \
                PREFIX="${prefix}" CONFIG+="release" \
                LOCALSOFT="${prefix}"
configure.cmd   ${qt_qmake_cmd}
configure.post_args
configure.universal_args

# allow ccache, if specified by the user
pre-build {
    if {[tbool configure.ccache]} {
        build.post_args "CCACHE=ccache"
    }
}

universal_variant   yes
