Ticket #28935: ffmpeg-0.6.3_1-asflags-mmx_patch-Portfile.diff
File ffmpeg-0.6.3_1-asflags-mmx_patch-Portfile.diff, 1.9 KB (added by daitakahashi, 13 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 … … 53 54 rmd160 623bf7c60ad7dd4febdac5ae5ef12566fb8dbf38 54 55 55 56 patchfiles patch-libswscale-swscale.h.diff \ 56 patch-Makefile.diff 57 patch-Makefile.diff \ 58 patch-ffmpeg-0.6-PIC_fix.diff 57 59 58 60 depends_build port:pkgconfig \ 59 61 port:gmake \ … … 107 109 108 110 #add --enable-libopenjpeg when problems with openjpeg.h are resolved 109 111 110 if {$build_arch != ""} {111 configure.args-append --arch=${build_arch}112 }113 114 112 test.run yes 115 113 116 114 # 117 115 # configure isn't autoconf and they do use a dep cache 118 116 # 119 117 120 universal_variant no 118 if { [variant_isset universal] } { 119 configure.universal_args-delete --disable-dependency-tracking 120 121 foreach arch ${universal_archs_supported} { 122 lappend merger_configure_args($arch) --arch=${arch} 123 lappend merger_configure_env($arch) ASFLAGS='-arch ${arch}' 124 } 125 } else { 126 configure.args-append --arch=${configure.build_arch} 127 configure.env-append ASFLAGS='-arch ${configure.build_arch}' 128 } 121 129 122 130 post-destroot { 123 131 file mkdir ${destroot}${prefix}/share/doc/${name} … … 127 135 } 128 136 } 129 137 130 platform darwin 10 {131 # ticket #20938 -- disable mmx for 32 bit intel only132 if { $build_arch == "i386" } {133 # swscale is no longer GPL only134 configure.args-delete --enable-swscale135 if { ![variant_isset no_mmx] } {136 configure.args-append --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3 --disable-amd3dnow --disable-amd3dnowext137 }138 }139 }140 141 138 platform powerpc { 142 139 # absence of altivec is not automatically detected 143 140 if {[exec sysctl -n hw.vectorunit] == 0} {