Ticket #54151: Portfile.diff

File Portfile.diff, 826 bytes (added by detlevd (Detlev Droege), 7 years ago)

Diff to fix problem with non-universal qt4-mac installations, now limited to variant qt4, using system -W ...

  • (a) Portfile vs. (b) Portfile_0.4.5_1

    a b  
    8686
    8787default_variants +dbus +portaudio
    8888
     89post-configure { # work around strange qmake problem if not universal, see https://trac.macports.org/ticket/54151#comment:6
     90    if {[variant_isset qt4] && ![variant_isset universal]} {
     91        system -W ${worksrcpath}     "PATH=${qt_bins_dir}:$env(PATH) qmake -o qjackctl.mak qjackctl.pro"
     92        system -W ${worksrcpath}/src "PATH=${qt_bins_dir}:$env(PATH) qmake -o qjackctl.mak src.pro"
     93        reinplace "s@-arch *-Xarch_x86_64@-Xarch_x86_64@" ${worksrcpath}/src/qjackctl.mak
     94    }
     95}
     96
    8997post-destroot {
    9098    # move the created .app to MacPorts' applications directory ...
    9199    move ${destroot}${prefix}/bin/qjackctl.app ${destroot}${applications_dir}