Gentoo Archives: gentoo-commits

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: ChangeLog x264-0.0.20120707.ebuild
Date: Sun, 08 Jul 2012 17:27:29
Message-Id: 20120708172719.2BB7120063@flycatcher.gentoo.org
1 lu_zero 12/07/08 17:27:19
2
3 Modified: ChangeLog
4 Added: x264-0.0.20120707.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.74 media-libs/x264/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?rev=1.74&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?rev=1.74&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?r1=1.73&r2=1.74
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v
20 retrieving revision 1.73
21 retrieving revision 1.74
22 diff -u -r1.73 -r1.74
23 --- ChangeLog 15 May 2012 13:12:19 -0000 1.73
24 +++ ChangeLog 8 Jul 2012 17:27:19 -0000 1.74
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/x264
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.73 2012/05/15 13:12:19 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.74 2012/07/08 17:27:19 lu_zero Exp $
30 +
31 +*x264-0.0.20120707 (08 Jul 2012)
32 +
33 + 08 Jul 2012; Luca Barbato <lu_zero@g.o> +x264-0.0.20120707.ebuild:
34 + version bump
35
36 15 May 2012; Alexis Ballier <aballier@g.o> x264-0.0.20120327.ebuild,
37 x264-9999.ebuild:
38
39
40
41 1.1 media-libs/x264/x264-0.0.20120707.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/x264-0.0.20120707.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/x264-0.0.20120707.ebuild?rev=1.1&content-type=text/plain
45
46 Index: x264-0.0.20120707.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.20120707.ebuild,v 1.1 2012/07/08 17:27:19 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 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
80 fi
81 IUSE="10bit custom-cflags debug +interlaced pic static-libs +threads"
82
83 RDEPEND=""
84 DEPEND="amd64? ( >=dev-lang/yasm-1 )
85 x86? ( >=dev-lang/yasm-1 )
86 x86-fbsd? ( >=dev-lang/yasm-1 )"
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 }