Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/x264-encoder: ChangeLog x264-encoder-0.0.20130731.ebuild
Date: Thu, 01 Aug 2013 17:41:12
Message-Id: 20130801174109.4008C2171C@flycatcher.gentoo.org
1 aballier 13/08/01 17:41:09
2
3 Modified: ChangeLog
4 Added: x264-encoder-0.0.20130731.ebuild
5 Log:
6 new snapshot matching lib
7
8 (Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.73 media-video/x264-encoder/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/x264-encoder/ChangeLog?rev=1.73&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/x264-encoder/ChangeLog?rev=1.73&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/x264-encoder/ChangeLog?r1=1.72&r2=1.73
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v
20 retrieving revision 1.72
21 retrieving revision 1.73
22 diff -u -r1.72 -r1.73
23 --- ChangeLog 26 Jun 2013 04:40:11 -0000 1.72
24 +++ ChangeLog 1 Aug 2013 17:41:09 -0000 1.73
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-video/x264-encoder
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v 1.72 2013/06/26 04:40:11 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v 1.73 2013/08/01 17:41:09 aballier Exp $
30 +
31 +*x264-encoder-0.0.20130731 (01 Aug 2013)
32 +
33 + 01 Aug 2013; Alexis Ballier <aballier@g.o>
34 + +x264-encoder-0.0.20130731.ebuild:
35 + new snapshot matching lib
36
37 26 Jun 2013; Patrick McLean <chutzpah@g.o>
38 x264-encoder-0.0.20130506.ebuild, x264-encoder-9999.ebuild:
39
40
41
42 1.1 media-video/x264-encoder/x264-encoder-0.0.20130731.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20130731.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20130731.ebuild?rev=1.1&content-type=text/plain
46
47 Index: x264-encoder-0.0.20130731.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20130731.ebuild,v 1.1 2013/08/01 17:41:09 aballier Exp $
52
53 EAPI=5
54
55 inherit flag-o-matic multilib toolchain-funcs
56
57 DESCRIPTION="A free commandline encoder for X264/AVC streams"
58 HOMEPAGE="http://www.videolan.org/developers/x264.html"
59 if [[ ${PV} == 9999 ]]; then
60 inherit git-2
61 EGIT_REPO_URI="git://git.videolan.org/x264.git"
62 SRC_URI=""
63 else
64 inherit versionator
65 MY_P="x264-snapshot-$(get_version_component_range 3)-2245"
66 SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
67 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 S="${WORKDIR}/${MY_P}"
69 fi
70
71 LICENSE="GPL-2"
72 SLOT="0"
73 IUSE="10bit avs custom-cflags ffmpeg ffmpegsource +interlaced mp4 +threads"
74
75 REQUIRED_USE="ffmpegsource? ( ffmpeg )"
76
77 RDEPEND="ffmpeg? ( virtual/ffmpeg )
78 ~media-libs/x264-${PV}[10bit=,interlaced=,threads=]
79 ffmpegsource? ( media-libs/ffmpegsource )
80 mp4? ( >=media-video/gpac-0.4.1_pre20060122 )"
81
82 ASM_DEP=">=dev-lang/yasm-1.2.0"
83 DEPEND="${RDEPEND}
84 amd64? ( ${ASM_DEP} )
85 x86? ( ${ASM_DEP} )
86 x86-fbsd? ( ${ASM_DEP} )
87 virtual/pkgconfig"
88
89 src_configure() {
90 tc-export CC
91
92 # let upstream pick the optimization level by default
93 use custom-cflags || filter-flags -O?
94
95 ./configure \
96 --prefix="${EPREFIX}"/usr \
97 --libdir="${EPREFIX}"/usr/$(get_libdir) \
98 --system-libx264 \
99 --host="${CHOST}" \
100 $(usex 10bit "--bit-depth=10" "") \
101 $(usex avs "" "--disable-avs") \
102 $(usex ffmpeg "" "--disable-lavf --disable-swscale") \
103 $(usex ffmpegsource "" "--disable-ffms") \
104 $(usex interlaced "" "--disable-interlaced") \
105 $(usex mp4 "" "--disable-gpac") \
106 $(usex threads "" "--disable-thread") || die
107
108 # this is a nasty workaround for bug #376925 for x264 that also applies
109 # here, needed because as upstream doesn't like us fiddling with their CFLAGS
110 if use custom-cflags; then
111 local cflags
112 cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')"
113 cflags="${cflags//$(get-flag O)/}"
114 cflags="${cflags//-O? /$(get-flag O) }"
115 cflags="${cflags//-g /}"
116 sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak
117 fi
118 }