Ticket #62023: patch-portfile-fix-lipo-archs.diff
File patch-portfile-fix-lipo-archs.diff, 1.2 KB (added by kencu (Ken), 4 years ago) |
---|
-
Portfile
old new 174 174 175 175 variant universal { 176 176 post-patch { 177 178 # first null out any existing lipo extract archs 179 reinplace \ 180 "s|LIPO_32BIT_FLAGS=\".*\"|LIPO_32BIT_FLAGS=\"\"|" \ 181 ${worksrcpath}/configure 182 177 183 set universal_arch_flags {} 178 184 set arch_run_32bit {} 185 set lipo_32bit_flags {} 179 186 foreach arch ${universal_archs} { 180 187 lappend universal_arch_flags -arch ${arch} 181 188 if {${arch} eq "i386" || ${arch} eq "ppc"} { 182 189 lappend arch_run_32bit -${arch} 190 lappend lipo_32bit_flags -extract ${arch} 183 191 } 184 192 } 185 193 reinplace \ … … 189 197 reinplace \ 190 198 "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \ 191 199 ${worksrcpath}/configure 200 reinplace \ 201 "s|LIPO_32BIT_FLAGS=\".*\"|LIPO_32BIT_FLAGS=\"${lipo_32bit_flags}\"|" \ 202 ${worksrcpath}/configure 192 203 } 193 204 } 194 205 if {${configure.sdkroot} ne ""} {