Ticket #23860: Portfile

File Portfile, 2.1 KB (added by wickedguitar6@…, 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: Portfile 58954 2009-10-07 19:18:29Z jmr@macports.org $
3
4PortSystem 1.0
5PortGroup               muniversal 1.0
6PortGroup               xcodeversion 1.0
7
8name            x264
9version         20100224
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     bd6be1d6a28475a0cffc58ba4c9d111f \
25                    sha1    6d79b91b6c37905f8116c731dc82a761abbfb4b6 \
26                    rmd160  dda2aca4914020232ae281f2497732f9b9c6df03
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
48
49configure.cflags-append -I. -fno-common -read_only_relocs suppress
50
51destroot.args   DIR_INSTALL=${destroot}${prefix}
52
53build.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
61variant asm description {enable intel assembler optimizations (experimental)} {
62}
63
64livecheck.type  none