Ticket #24224: x264-2009-10-18.portfile

File x264-2009-10-18.portfile, 2.2 KB (added by davidfavor (David Favor), 15 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem 1.0
5PortGroup               muniversal 1.0
6PortGroup               xcodeversion 1.0
7
8name            x264
9version         20091018
10revision        2
11categories      multimedia
12platforms       darwin
13maintainers     devans openmaintainer
14description     x264 - a free h264/avc encoder
15long_description x264 is a free library for encoding H264/AVC video streams. \
16                The code is written by Laurent Aimar, Eric Petit(OS X), Min \
17                Chen (vfw/nasm), Justin Clay(vfw), MÃ¥ns RullgÃ¥rd and Loren \
18                Merritt from scratch. It is released under the terms of the \
19                GPL license.
20homepage        http://www.videolan.org/x264.html
21master_sites    ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
22distname        ${name}-snapshot-${version}-2245
23
24checksums           md5     b51877566d9672a58af8df1359f2c10e \
25                    sha1    80a2f5c77183e02c031b52d6717ad8a9a67318d2 \
26                    rmd160  512634bd0f318df16426fd4624fbc00ecfbc3868
27
28use_bzip2       yes
29
30minimum_xcodeversions {9 3.1}
31
32configure.args   --enable-pthread \
33                 --enable-pic \
34                 --enable-shared \
35                 --disable-asm
36
37# asm works with a 64-bit snow leopard build
38
39if {[variant_isset asm] || ("darwin" == ${os.platform} && 10 == ${os.major} && "x86_64" == $build_arch && ![variant_isset universal])} {
40        depends_build-append    port:yasm
41        configure.args-delete   --disable-asm
42}
43if {${os.platform} == "darwin" && $build_arch != "" && ![variant_isset universal]} {
44    configure.args-append   --host=${build_arch}-apple-darwin${os.major}
45    eval configure.ldflags-append ${configure.cc_archflags}
46}
47
48configure.cflags-append -I. -fno-common -read_only_relocs suppress
49
50destroot.args   DIR_INSTALL=${destroot}${prefix}
51
52build.target    default
53
54#
55# intel assembler optimizations using yasm continue
56# to exhibit problems in some cases (see #19835)
57# disable by default but can be enabled using +asm variant for the adventurous
58#
59
60variant asm description {enable intel assembler optimizations (experimental)} {
61}
62
63livecheck.type  none