Ticket #21222: Portfile.diff
File Portfile.diff, 2.4 KB (added by Veence (Vincent), 15 years ago) |
---|
-
Portfile
old new 43 43 patch-Mac-PythonLauncher-Makefile.in.diff \ 44 44 patch-Mac-Tools-Doc-setup.py.diff \ 45 45 patch-readlinefix.diff \ 46 patch-64bit.diff 46 patch-64bit.diff \ 47 patch-universal-flags.diff 47 48 48 49 depends_lib port:gettext port:zlib port:openssl port:tk \ 49 50 port:sqlite3 port:db46 port:ncurses port:gdbm \ … … 130 131 post-patch { 131 132 set universal_arch_flags {} 132 133 set arch_run_32bit {} 134 set archtype 0 133 135 foreach arch ${universal_archs} { 134 136 lappend universal_arch_flags -arch ${arch} 135 137 if { ${arch}=="i386" || ${arch}=="ppc" } { 136 138 lappend arch_run_32bit -${arch} 139 set archtype [expr ${archtype} | 32] 140 } else { 141 set archtype [expr ${archtype} | 64] 137 142 } 138 143 } 139 reinplace \ 140 "s|UNIVERSAL_ARCH_FLAGS=\".*\"|UNIVERSAL_ARCH_FLAGS=\"${universal_arch_flags}\"|" \ 141 ${worksrcpath}/configure 144 142 145 if {${os.major} >= 9} { 143 146 reinplace \ 144 145 147 "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \ 148 ${worksrcpath}/configure 146 149 } 150 151 if {${archtype} == 32} { 152 # Pure 32-bit build 153 configure.args-append '--with-universal-archs="32 bit"' 154 } else { 155 # 64-bit or mixed build 156 if {${archtype} == 64} { 157 configure.args-append '--with-universal-archs="64 bit"' 158 } else { 159 configure.args-append '--with-universal-archs="all"' 160 } 161 configure.args-append '--disable-toolbox-glue' 162 system "cd ${worksrcpath} && patch < ${filespath}/patch-Makefileprein.diff" 163 } 164 165 configure.args-append \ 166 --with-universal-arch-flags="${universal_arch_flags}" 147 167 } 168 148 169 if {${macosx_version} == "10.4" && ${os.arch} == "powerpc"} { 149 170 configure.args-append --enable-universalsdk=${developer_dir}/SDKs/MacOSX10.4u.sdk 150 171 } else { 151 configure.args-append --enable-universalsdk=/172 configure.args-append --enable-universalsdk=/ 152 173 } 153 174 } 154 175