Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/x264: x264-9999.ebuild ChangeLog
Date: Sat, 28 May 2011 06:30:19
Message-Id: 20110528063009.02F3E20054@flycatcher.gentoo.org
1 radhermit 11/05/28 06:30:08
2
3 Modified: ChangeLog
4 Added: x264-9999.ebuild
5 Log:
6 Import live ebuild from the multimedia overlay (requested by Nikoli).
7
8 (Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.50 media-libs/x264/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?rev=1.50&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?rev=1.50&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/ChangeLog?r1=1.49&r2=1.50
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v
20 retrieving revision 1.49
21 retrieving revision 1.50
22 diff -u -r1.49 -r1.50
23 --- ChangeLog 27 Apr 2011 17:20:07 -0000 1.49
24 +++ ChangeLog 28 May 2011 06:30:08 -0000 1.50
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.49 2011/04/27 17:20:07 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.50 2011/05/28 06:30:08 radhermit Exp $
30 +
31 +*x264-9999 (28 May 2011)
32 +
33 + 28 May 2011; Tim Harder <radhermit@g.o> +x264-9999.ebuild:
34 + Import live ebuild from the multimedia overlay (requested by Nikoli).
35
36 *x264-0.0.20110426 (27 Apr 2011)
37
38
39
40
41 1.1 media-libs/x264/x264-9999.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/x264-9999.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/x264/x264-9999.ebuild?rev=1.1&content-type=text/plain
45
46 Index: x264-9999.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-9999.ebuild,v 1.1 2011/05/28 06:30:08 radhermit 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 ${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://ftp.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="debug +threads pic static-libs"
82
83 RDEPEND=""
84 ASM_DEP=">=dev-lang/yasm-0.6.2"
85 DEPEND="
86 amd64? ( ${ASM_DEP} )
87 x86? ( ${ASM_DEP} )
88 x86-fbsd? ( ${ASM_DEP} )
89 "
90 if [ "${PV#9999}" = "${PV}" ] ; then
91 S=${WORKDIR}/${MY_P}
92 fi
93 DOCS="AUTHORS doc/*.txt"
94
95 src_configure() {
96 tc-export CC
97
98 local myconf=""
99 use debug && myconf+=" --enable-debug"
100 use static-libs && myconf+=" --enable-static"
101 use threads || myconf+=" --disable-thread"
102
103 if use x86 && use pic; then
104 myconf+=" --disable-asm"
105 fi
106
107 ./configure \
108 --prefix="${EPREFIX}"/usr \
109 --libdir="${EPREFIX}"/usr/$(get_libdir) \
110 --disable-cli \
111 --disable-avs \
112 --disable-lavf \
113 --disable-swscale \
114 --disable-ffms \
115 --disable-gpac \
116 --enable-pic \
117 --enable-shared \
118 --extra-asflags="${ASFLAGS}" \
119 --extra-cflags="${CFLAGS}" \
120 --extra-ldflags="${LDFLAGS}" \
121 --host="${CHOST}" \
122 ${myconf} \
123 || die
124 }