52 | | configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib" |
| 52 | configure.post_args LFLAGS="-F${frameworks_dir} -L${prefix}/lib" |
| 53 | |
| 54 | variant universal { |
| 55 | configure.universal_args |
| 56 | configure.post_args LFLAGS="-F${frameworks_dir} -L${prefix}/lib \ |
| 57 | ${configure.universal_ldflags}" |
| 58 | configure.post_args-append CFLAGS="${configure.universal_cflags}" |
| 59 | configure.post_args-append CXXFLAGS="${configure.universal_cxxflags}" |
| 60 | |
| 61 | } |
| 62 | |
| 63 | post-configure { |
| 64 | if {[variant_isset universal]} { |
| 65 | set conflags "" |
| 66 | foreach arch ${configure.universal_archs} { |
| 67 | if {${arch} == "i386"} {append conflags "x86 "} else { |
| 68 | if {${arch} == "ppc64"} {append conflags "ppc_64 "} else { |
| 69 | append conflags ${arch} " " |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | set profiles [exec find ${worksrcpath} -name "*.pro"] |
| 75 | foreach profile ${profiles} { |
| 76 | reinplace -E "s|^(CONFIG\[ \\t].*)|\\1 ${conflags}|" ${profile} |
| 77 | |
| 78 | # Cures an isolated case |
| 79 | system "cd ${worksrcpath}/designer && \ |
| 80 | ${qt_dir}/bin/qmake -spec ${qt_dir}/mkspecs/macx-g++ -macx \ |
| 81 | -o Makefile python.pro" |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |