# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup xcodeversion 1.0
maintainers {devans @dbevans} openmaintainer
description x264 - a free h264/avc encoder
long_description x264 is a free library for encoding H264/AVC video streams. \
The code is written by Laurent Aimar, Eric Petit(OS X), Min \
Chen (vfw/nasm), Justin Clay(vfw), Måns Rullgård and Loren \
Merritt from scratch. It is released under the terms of the \
homepage http://www.videolan.org/x264.html
master_sites http://ftp.videolan.org/pub/videolan/x264/snapshots/
distname ${name}-snapshot-${version}-2245-stable
checksums rmd160 e22257528fea7490df1b3c4b21a15df9fb801833 \
sha256 91143276d18414f1c94ecdc472b063c874308833d57d7353f15286372ba4ba68 \
minimum_xcodeversions {9 3.1}
configure.args --enable-pic \
# as of this build (148) asm optimizations are believed to work with x86_64 Snow Leopard and up
# please file a ticket if you have evidence to the contrary
# i386 clang build issues remain which break i386 build when asm optimizations are enabled
# assert configure option --disable-asm for all i386 builds
# see https://mailman.videolan.org/pipermail/x264-devel/2014-February/010371.html, #42672.
if {${os.platform} eq "darwin" && ${build_arch} ne "" && ![variant_isset universal]} {
if {${build_arch} eq "i386"} {
configure.args-append --host=i686-apple-darwin${os.major} \
configure.args-append --host=${build_arch}-apple-darwin${os.major}
configure.ldflags-append {*}${configure.cc_archflags}
foreach arch ${universal_archs} {
set merger_configure_args(${arch}) "--host=i686-apple-darwin${os.major} --disable-asm"