# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 72606 2010-10-21 12:42:46Z michaelld@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 post-patch { # set ARCHES in project.pro (per the second patchfile), set MP_ARCHES "" if {[variant_exists universal] && [variant_isset universal]} { # build for universal, as defined by the local user set MP_ARCHES ${universal_archs} } else { # build arch specific set MP_ARCHES ${build_arch} } array set macports_to_qt_build_arch { ppc ppc i386 x86 ppc64 ppc64 x86_64 x86_64 } set QT_ARCHES "" foreach arch ${MP_ARCHES} { set this_arch_in_qt $macports_to_qt_build_arch($arch) lappend QT_ARCHES ${this_arch_in_qt} } set ARCHES [join ${QT_ARCHES} " "] reinplace "s|@@ARCHES@@|${ARCHES}|g" ${worksrcpath}/project.pro } configure.pre_args PREFIX="${prefix}" configure.args APPLICATIONS_DIR="${applications_dir}" \ DOCDIR="${prefix}/share/doc/${name}" \ QMAKE_CC="\${CC}" \ QMAKE_CXX="\${CXX}" configure.cmd "LOCALSOFT=${prefix} ${qt_qmake_cmd}"