Changeset 72606


Ignore:
Timestamp:
Oct 21, 2010, 12:42:46 PM (9 years ago)
Author:
michaelld@…
Message:

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

Location:
trunk/dports/aqua/qtpfsgui
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/qtpfsgui/Portfile

    r69985 r72606  
     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
    12# $Id$
    23
    34PortSystem 1.0
     5PortGroup       qt4 1.0
    46
    57name            qtpfsgui
    68version         1.9.3
    7 revision        1
     9revision        2
    810categories      aqua graphics
    911maintainers     gmail.com:clubjuggler openmaintainer
     
    1416homepage        http://qtpfsgui.sourceforge.net/
    1517master_sites    sourceforge
    16 patchfiles      patch-app-path.diff
    1718
    18 depends_lib     port:qt4-mac port:exiv2 port:openexr \
    19                 port:ilmbase port:fftw-3-single port:tiff
     19depends_lib-append \
     20    port:exiv2 port:openexr \
     21    port:ilmbase port:fftw-3-single port:tiff
    2022
    2123checksums       md5     5a6421391e373c912e4a793e131151c8 \
    2224                sha1    adf037c54f55be50d931fa484cca169c01d0384d \
    2325                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}
    2453
    2554configure.pre_args  PREFIX="${prefix}"
     
    2857                    QMAKE_CC="\${CC}" \
    2958                    QMAKE_CXX="\${CXX}"
    30 configure.cmd   "LOCALSOFT=${prefix} ${prefix}/libexec/qt4-mac/bin/qmake"
    31 destroot.destdir INSTALL_ROOT=${destroot}
     59configure.cmd   "LOCALSOFT=${prefix} ${qt_qmake_cmd}"
Note: See TracChangeset for help on using the changeset viewer.