X264 version 20090810 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 20090810

      View the most recent changes for the x264 port at: x264.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for x264.
      The raw portfile for x264 20090810 is located here:
      http://x264.darwinports.com/dports/multimedia/x264/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/x264


      # -*- 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
      The x264 Portfile 58954 2009-10-07 19:18:29Z jmr macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0
      PortGroup xcodeversion 1.0

      Name: x264
      Version: 20090810
      Revision: 2
      Category: multimedia
      Platform: darwin
      Maintainers: devans 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 GPL license.
      Homepage: http://www.videolan.org/x264.html
      Master Sites: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
      distname ${name}-snapshot-${version}-2245

      Checksums: md5 6671b66a0a83769c54ba9cd10ad598d8 sha1 26abd8c1dc05dae04f99b33a689e4ee7debd9126 rmd160 f8297dcb4a43207f5c03165a2320425a640ff4d7

      use_bzip2 yes

      minimum_xcodeversions {9 3.1}

      configure.args --enable-pthread --enable-pic --enable-shared --disable-asm

      # asm works with a 64-bit snow leopard build

      if {[variant_isset asm] || ("darwin" == ${os.platform} && 10 == ${os.major} && "x86_64" == $build_arch && ![variant_isset universal])} {
      depends_build-append port:yasm
      configure.args-delete --disable-asm
      }
      if {${os.platform} == "darwin" && $build_arch != "" && ![variant_isset universal]} {
      configure.args-append --host=${build_arch}-apple-darwin${os.major}
      eval configure.ldflags-append ${configure.cc_archflags}
      }


      configure.cflags-append -I. -fno-common -read_only_relocs suppress

      destroot.args DIR_INSTALL=${destroot}${prefix}

      build.target default

      #
      # intel assembler optimizations using yasm continue
      # to exhibit problems in some cases (see #19835)
      # disable by default but can be enabled using +asm variant for the adventurous
      #

      Variant: asm description {enable intel assembler optimizations (experimental)} {
      }

      livecheck.type none

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/x264
      % sudo port install x264
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching x264
      ---> Verifying checksum for x264
      ---> Extracting x264
      ---> Configuring x264
      ---> Building x264 with target all
      ---> Staging x264 into destroot
      ---> Installing x264
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using x264 with these commands:
      %  man x264
      % apropos x264
      % which x264
      % locate x264

     Where to find more information:

    Darwin Ports



    Lightbox this page.