source: trunk/dports/aqua/qtpfsgui/Portfile @ 72606

Last change on this file since 72606 was 72606, checked in by michaelld@…, 9 years ago

Changes to use qt4 portgroup.
Fix building for the specified ARCH and/or +universal.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 72606 2010-10-21 12:42:46Z michaelld@macports.org $
3
4PortSystem 1.0
5PortGroup       qt4 1.0
6
7name            qtpfsgui
8version         1.9.3
9revision        2
10categories      aqua graphics
11maintainers     gmail.com:clubjuggler openmaintainer
12description     GUI for HDR imaging workflow
13long_description Qtpfsgui is an open source graphical user interface \
14                application that aims to provide a workflow for HDR imaging.
15platforms       darwin
16homepage        http://qtpfsgui.sourceforge.net/
17master_sites    sourceforge
18
19depends_lib-append \
20    port:exiv2 port:openexr \
21    port:ilmbase port:fftw-3-single port:tiff
22
23checksums       md5     5a6421391e373c912e4a793e131151c8 \
24                sha1    adf037c54f55be50d931fa484cca169c01d0384d \
25                rmd160  5188b2f1679d6788358067fe761d0c72c475bfe9
26
27patchfiles      patch-project.pro.diff
28
29post-patch {
30    # set ARCHES in project.pro (per the second patchfile),
31    set MP_ARCHES ""
32    if {[variant_exists universal] && [variant_isset universal]} {
33        # build for universal, as defined by the local user
34        set MP_ARCHES ${universal_archs}
35    } else {
36        # build arch specific
37        set MP_ARCHES ${build_arch}
38    }
39    array set macports_to_qt_build_arch {
40        ppc     ppc
41        i386    x86
42        ppc64   ppc64
43        x86_64  x86_64
44    }
45    set QT_ARCHES ""
46    foreach arch ${MP_ARCHES} {
47        set this_arch_in_qt $macports_to_qt_build_arch($arch)
48        lappend QT_ARCHES ${this_arch_in_qt}
49    }
50    set ARCHES [join ${QT_ARCHES} " "]
51    reinplace "s|@@ARCHES@@|${ARCHES}|g" ${worksrcpath}/project.pro
52}
53
54configure.pre_args  PREFIX="${prefix}"
55configure.args      APPLICATIONS_DIR="${applications_dir}" \
56                    DOCDIR="${prefix}/share/doc/${name}" \
57                    QMAKE_CC="\${CC}" \
58                    QMAKE_CXX="\${CXX}"
59configure.cmd   "LOCALSOFT=${prefix} ${qt_qmake_cmd}"
Note: See TracBrowser for help on using the repository browser.