Ticket #21070: x264-asm-snow-leopard.diff

File x264-asm-snow-leopard.diff, 1.2 KB (added by dave@…, 15 years ago)

Patch to enable ASM on Snow Leopard.

  • Portfile

     
    55PortGroup               muniversal 1.0
    66
    77name            x264
    8 version         20090810
     8version         20090904
    99revision        1
    1010categories      multimedia
    1111platforms       darwin
     
    2020master_sites    ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
    2121distname        ${name}-snapshot-${version}-2245
    2222
    23 checksums           md5     6671b66a0a83769c54ba9cd10ad598d8 \
    24                     sha1    26abd8c1dc05dae04f99b33a689e4ee7debd9126 \
    25                     rmd160  f8297dcb4a43207f5c03165a2320425a640ff4d7
     23checksums           md5     a12bbc4cc5100514080cf5537d22c13e \
     24                    sha1    f308510f68dcb250c8819eba1e18bfd73545d292 \
     25                    rmd160  fa239182e36e8a104c8d2d0c731b7438bfa50402
    2626
    2727
    2828use_bzip2       yes
     
    3636            return -code error "incompatible Xcode version"
    3737        }
    3838    }
     39    # asm works with a 64-bit snow leopard build
     40    if {"darwin" == ${os.platform} && 10 == ${os.major}} {
     41        depends_build-append    port:yasm
     42        configure.args-delete   --disable-asm
     43        configure.args-append   --host=x86_64-apple-darwin10
     44    }
    3945}
    4046
    4147configure.args \