Ticket #28935: ffmpeg-Portfile.2.diff
File ffmpeg-Portfile.2.diff, 2.5 KB (added by daitakahashi, 14 years ago) |
---|
-
Portfile
old new 3 3 4 4 PortSystem 1.0 5 5 PortGroup xcodeversion 1.0 6 PortGroup muniversal 1.0 6 7 7 8 name ffmpeg 8 9 conflicts ffmpeg-devel … … 119 120 120 121 #add --enable-libopenjpeg when problems with openjpeg.h are resolved 121 122 122 if {$build_arch != ""} {123 configure.args-append --arch=${build_arch}124 }125 126 123 test.run yes 127 124 128 125 # 129 126 # configure isn't autoconf and they do use a dep cache 130 127 # 131 128 132 universal_variant no 129 if { [variant_isset universal] } { 130 configure.universal_args-delete --disable-dependency-tracking 131 132 foreach arch ${universal_archs_supported} { 133 lappend merger_configure_args($arch) --arch=${arch} 134 } 135 } else { 136 configure.args-append --arch=${configure.build_arch} 137 } 133 138 134 139 post-destroot { 135 140 file mkdir ${destroot}${prefix}/share/doc/${name} … … 139 144 } 140 145 } 141 146 147 set disable_mmx_config_args {--disable-mmx --disable-mmx2 \ 148 --disable-sse --disable-ssse3 \ 149 --disable-amd3dnow --disable-amd3dnowext} 150 142 151 platform darwin 10 { 143 152 # ticket #20938 -- disable mmx for 32 bit intel only 144 if { $build_arch == "i386" } { 153 # universal variant implicitly includes 32 bit intel 154 if { [variant_isset universal] || ${configure.build_arch} == "i386" } { 145 155 # swscale is no longer GPL only 146 156 configure.args-delete --enable-swscale 157 158 # restore swscale for architectures other than 32 bit intel 159 foreach arch ${universal_archs_supported} { 160 if { $arch != "i386" } { 161 lappend merger_configure_args($arch) --enable-swscale 162 } 163 } 164 147 165 if { ![variant_isset no_mmx] } { 148 configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext 166 if { [variant_isset universal] } { 167 eval lappend merger_configure_args(i386) ${disable_mmx_config_args} 168 } else { 169 eval configure.args-append ${disable_mmx_config_args} 170 } 149 171 } 150 172 } 151 173 } … … 158 180 } 159 181 160 182 variant no_mmx description {disable all x86 asm optimizations} { 161 configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext183 eval configure.args-append ${disable_mmx_config_args} 162 184 } 163 185 164 186 variant no_gpl description {disallow use of GPL code, license will be LGPL} {