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: Portfile 58954 2009-10-07 19:18:29Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup muniversal 1.0 |
---|
6 | PortGroup xcodeversion 1.0 |
---|
7 | |
---|
8 | name x264 |
---|
9 | version 20100224 |
---|
10 | revision 2 |
---|
11 | categories multimedia |
---|
12 | platforms darwin |
---|
13 | maintainers devans openmaintainer |
---|
14 | description x264 - a free h264/avc encoder |
---|
15 | long_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. |
---|
20 | homepage http://www.videolan.org/x264.html |
---|
21 | master_sites ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ |
---|
22 | distname ${name}-snapshot-${version}-2245 |
---|
23 | |
---|
24 | checksums md5 bd6be1d6a28475a0cffc58ba4c9d111f \ |
---|
25 | sha1 6d79b91b6c37905f8116c731dc82a761abbfb4b6 \ |
---|
26 | rmd160 dda2aca4914020232ae281f2497732f9b9c6df03 |
---|
27 | |
---|
28 | use_bzip2 yes |
---|
29 | |
---|
30 | minimum_xcodeversions {9 3.1} |
---|
31 | |
---|
32 | configure.args --enable-pthread \ |
---|
33 | --enable-pic \ |
---|
34 | --enable-shared \ |
---|
35 | --disable-asm |
---|
36 | |
---|
37 | # asm works with a 64-bit snow leopard build |
---|
38 | |
---|
39 | if {[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 | } |
---|
43 | if {${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 | |
---|
48 | |
---|
49 | configure.cflags-append -I. -fno-common -read_only_relocs suppress |
---|
50 | |
---|
51 | destroot.args DIR_INSTALL=${destroot}${prefix} |
---|
52 | |
---|
53 | build.target default |
---|
54 | |
---|
55 | # |
---|
56 | # intel assembler optimizations using yasm continue |
---|
57 | # to exhibit problems in some cases (see #19835) |
---|
58 | # disable by default but can be enabled using +asm variant for the adventurous |
---|
59 | # |
---|
60 | |
---|
61 | variant asm description {enable intel assembler optimizations (experimental)} { |
---|
62 | } |
---|
63 | |
---|
64 | livecheck.type none |
---|