86 | | --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \ |
87 | | --with-macosx-version-min=10.6 |
| 86 | --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \ |
| 87 | --with-macosx-version-min=10.6 |
| 88 | |
| 89 | universal_variant yes |
| 90 | variant universal { |
| 91 | configure.args-append --enable-universal_binary |
| 92 | |
| 93 | #removing single arch target |
| 94 | configure.cppflags-delete -arch ${configure.build_arch} |
| 95 | |
| 96 | #enabling the following breaks a cpp test while configuring |
| 97 | #it's not needed as archs are hardcoded in configure script |
| 98 | # configure.cppflags-append "-arch [join ${universal_archs} \ -arch\ ]" |
| 99 | |
| 100 | #removing hardcoded ppc target as it won't build with XCode 4.1 |
| 101 | #this is required due the use of --enable-universal_binary |
| 102 | #it could stay out of universal variant as ppc platform isn't supported in darwin 11 |
| 103 | post-patch { |
| 104 | reinplace -- "s|-arch ppc ||" ${worksrcpath}/../configure |
| 105 | } |
| 106 | } |