From: | "Luca Barbato (lu_zero)" <lu_zero@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/x264: x264-0.0.20111220.ebuild ChangeLog |
Date: | Wed, 21 Dec 2011 23:05:20 |
Message-Id: | 20111221230511.7B5EB20034@flycatcher.gentoo.org |
1 | lu_zero 11/12/21 23:05:11 |
2 | |
3 | Modified: ChangeLog |
4 | Added: x264-0.0.20111220.ebuild |
5 | Log: |
6 | New version using the 120 api |
7 | |
8 | (Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.64 media-libs/x264/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?rev=1.64&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?rev=1.64&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?r1=1.63&r2=1.64 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v |
20 | retrieving revision 1.63 |
21 | retrieving revision 1.64 |
22 | diff -u -r1.63 -r1.64 |
23 | --- ChangeLog 19 Dec 2011 17:16:55 -0000 1.63 |
24 | +++ ChangeLog 21 Dec 2011 23:05:11 -0000 1.64 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for media-libs/x264 |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.63 2011/12/19 17:16:55 aballier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.64 2011/12/21 23:05:11 lu_zero Exp $ |
30 | + |
31 | +*x264-0.0.20111220 (21 Dec 2011) |
32 | + |
33 | + 21 Dec 2011; Luca Barbato <lu_zero@g.o> +x264-0.0.20111220.ebuild: |
34 | + New version using the 120 api |
35 | |
36 | *x264-0.0.20111218 (19 Dec 2011) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 media-libs/x264/x264-0.0.20111220.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/x264-0.0.20111220.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/x264-0.0.20111220.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: x264-0.0.20111220.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2011 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/media-libs/x264/x264-0.0.20111220.ebuild,v 1.1 2011/12/21 23:05:11 lu_zero Exp $ |
51 | |
52 | EAPI=4 |
53 | |
54 | if [ "${PV#9999}" != "${PV}" ] ; then |
55 | V_ECLASS="git-2" |
56 | else |
57 | V_ECLASS="versionator" |
58 | fi |
59 | |
60 | inherit multilib toolchain-funcs flag-o-matic ${V_ECLASS} |
61 | |
62 | if [ "${PV#9999}" = "${PV}" ]; then |
63 | MY_P="x264-snapshot-$(get_version_component_range 3)-2245" |
64 | fi |
65 | DESCRIPTION="A free library for encoding X264/AVC streams" |
66 | HOMEPAGE="http://www.videolan.org/developers/x264.html" |
67 | if [ "${PV#9999}" != "${PV}" ] ; then |
68 | EGIT_REPO_URI="git://git.videolan.org/x264.git" |
69 | SRC_URI="" |
70 | else |
71 | SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2" |
72 | fi |
73 | |
74 | LICENSE="GPL-2" |
75 | SLOT="0" |
76 | if [ "${PV#9999}" != "${PV}" ]; then |
77 | KEYWORDS="" |
78 | else |
79 | KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
80 | fi |
81 | IUSE="10bit custom-cflags debug +interlaced pic static-libs +threads" |
82 | |
83 | RDEPEND="" |
84 | DEPEND="amd64? ( >=dev-lang/yasm-0.6.2 ) |
85 | x86? ( >=dev-lang/yasm-0.6.2 ) |
86 | x86-fbsd? ( >=dev-lang/yasm-0.6.2 )" |
87 | |
88 | if [ "${PV#9999}" = "${PV}" ]; then |
89 | S="${WORKDIR}/${MY_P}" |
90 | fi |
91 | |
92 | DOCS="AUTHORS doc/*.txt" |
93 | |
94 | src_configure() { |
95 | tc-export CC |
96 | |
97 | local myconf="" |
98 | use 10bit && myconf+=" --bit-depth=10" |
99 | use debug && myconf+=" --enable-debug" |
100 | use interlaced || myconf+=" --disable-interlaced" |
101 | use static-libs && myconf+=" --enable-static" |
102 | use threads || myconf+=" --disable-thread" |
103 | |
104 | # let upstream pick the optimization level by default |
105 | use custom-cflags || filter-flags -O? |
106 | |
107 | if use x86 && use pic; then |
108 | myconf+=" --disable-asm" |
109 | fi |
110 | |
111 | ./configure \ |
112 | --prefix="${EPREFIX}"/usr \ |
113 | --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
114 | --disable-cli \ |
115 | --disable-avs \ |
116 | --disable-lavf \ |
117 | --disable-swscale \ |
118 | --disable-ffms \ |
119 | --disable-gpac \ |
120 | --enable-pic \ |
121 | --enable-shared \ |
122 | --host="${CHOST}" \ |
123 | ${myconf} || die |
124 | |
125 | # this is a nasty workaround for bug #376925 as upstream doesn't like us |
126 | # fiddling with their CFLAGS |
127 | if use custom-cflags; then |
128 | local cflags |
129 | cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')" |
130 | cflags="${cflags//$(get-flag O)/}" |
131 | cflags="${cflags//-O? /$(get-flag O) }" |
132 | cflags="${cflags//-g /}" |
133 | sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak |
134 | fi |
135 | } |