| 38 | # muniversal non-merging required for apr-util (see below) but it breaks libtool |
| 39 | if {[variant_isset universal] && ${os.arch}=="i386"} { |
| 40 | set merger_dont_diff "${prefix}/share/apr-1/build/apr_rules.mk \ |
| 41 | ${prefix}/share/apr-1/build/libtool" |
| 42 | } |
| 43 | |
| 44 | # We need arch specific rules.mk and libtool for apr-util. Also fix pesky libtool |
| 45 | # "unable to infer tagged configuration" when using -m32/64 switches |
| 46 | if {[variant_isset universal] && ${os.arch}=="i386"} { |
| 47 | post-install { |
| 48 | system "chmod 755 ${prefix}/bin/apr-1-config" |
| 49 | reinplace "s|/libtool|/i386-libtool --tag=CC|g" \ |
| 50 | "${prefix}/share/apr-1/build/i386-apr_rules.mk" |
| 51 | reinplace "s|/libtool|/x86_64-libtool --tag=CC|g" \ |
| 52 | "${prefix}/share/apr-1/build/x86_64-apr_rules.mk" |
| 53 | |
| 54 | # Copy i386 libtool for ports depending on apr-util and fix tag error |
| 55 | system "cp ${prefix}/share/apr-1/build/i386-libtool \ |
| 56 | ${prefix}/share/apr-1/build/libtool" |
| 57 | reinplace "s| -m32||g" "${prefix}/share/apr-1/build/libtool" |
| 58 | system "chmod 755 ${prefix}/share/apr-1/build/libtool" |
| 59 | } |
| 60 | } |
| 61 | |