source: trunk/dports/multimedia/x264/Portfile @ 84414

Last change on this file since 84414 was 84414, checked in by jmr@…, 6 years ago

x264: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
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 84414 2011-09-26 08:45:50Z jmr@macports.org $
3
4PortSystem 1.0
5PortGroup               muniversal 1.0
6PortGroup               xcodeversion 1.0
7
8name            x264
9version         20110628
10categories      multimedia
11license         GPL-2+
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    http://download.videolan.org/pub/videolan/x264/snapshots/ \
22                ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
23distname        ${name}-snapshot-${version}-2245
24
25checksums           md5     346149b211b35832957cf843e10cb0f4 \
26                    sha1    e9f4696d18f26e28808a190a6ddc63f19028f77c \
27                    rmd160  07c86d5318dd02a2268ca2ec3fa6e51177a078ee
28
29use_bzip2       yes
30
31minimum_xcodeversions {9 3.1}
32
33configure.args   --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    if {$build_arch == "i386"} {
45        configure.args-append   --host=i686-apple-darwin${os.major}
46    } else {
47        configure.args-append   --host=${build_arch}-apple-darwin${os.major}
48    }
49    eval configure.ldflags-append ${configure.cc_archflags}
50}
51foreach arch ${universal_archs} {
52    if {$arch == "i386"} {
53        set merger_configure_args(${arch}) --host=i686-apple-darwin${os.major}
54    } else {
55        set merger_configure_args(${arch}) --host=${arch}-apple-darwin${os.major}
56    }
57}
58configure.universal_args-delete --disable-dependency-tracking
59
60platform darwin 8 {
61    # https://trac.macports.org/ticket/24893
62    if {$build_arch == "i386" && ![variant_isset universal]} {
63        configure.cflags-append -msse2
64    }
65    set merger_configure_cflags(i386) -msse2
66}
67
68# sets its own optflags
69configure.optflags
70configure.cflags-append -I. -fno-common -read_only_relocs suppress
71
72destroot.args   DIR_INSTALL=${destroot}${prefix}
73
74build.target    default
75
76#
77# intel assembler optimizations using yasm continue
78# to exhibit problems in some cases (see #19835)
79# disable by default but can be enabled using +asm variant for the adventurous
80#
81
82variant asm description {enable intel assembler optimizations (experimental)} {
83}
84
85livecheck.type  none
Note: See TracBrowser for help on using the repository browser.