New version using the 118 api
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 19 Oct 2011 16:40:42 +0000 (16:40 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 19 Oct 2011 16:40:42 +0000 (16:40 +0000)
Package-Manager: portage-2.1.10.28/cvs/Linux x86_64

media-video/x264-encoder/ChangeLog
media-video/x264-encoder/Manifest
media-video/x264-encoder/x264-encoder-0.0.20111017.ebuild [new file with mode: 0644]

index d5c9f8ed2e70ef3141e580aa509b1f0bdcdb7218..ec1dc16cf23847dc49b6600d4e00e509e055ca20 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for media-video/x264-encoder
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v 1.59 2011/09/07 23:47:21 chutzpah Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v 1.60 2011/10/19 16:40:42 lu_zero Exp $
+
+*x264-encoder-0.0.20111017 (19 Oct 2011)
+
+  19 Oct 2011; Luca Barbato <lu_zero@gentoo.org>
+  +x264-encoder-0.0.20111017.ebuild:
+  New version using the 118 api
 
 *x264-encoder-0.0.20110825-r1 (07 Sep 2011)
 
index 48897f03c235aeb5d8784a78f9a208a00e6d35fa..fa3e90d07d2be53e303a5d27afecf5d051e93c2e 100644 (file)
@@ -1,29 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
 AUX x264-encoder-nolib-20110425.patch 1547 RMD160 ace0273445d751bf1b538abad364e3b738dad21c SHA1 2cdb96488785f1f355018d0b6727b3bd373d43a6 SHA256 124955cb5322d5f40771669798217991826dbc1f8ca9daac821d672238011c88
 AUX x264-encoder-nostrip.patch 433 RMD160 81c3893b1a02839da38f34484c794996855fab5e SHA1 42c0807d6f2f13f848409d9545994c8b66338c8c SHA256 1210914cc52de908b840775ab8e4a107d95aeced690c2f115320d31e587a2ffa
 DIST x264-snapshot-20110426-2245.tar.bz2 495607 RMD160 3104b39f695a08c8199298eb89d5c500ffebfb45 SHA1 b2aa061648354aa80adeeba33819d8b961185dbc SHA256 2610ea30eb8857f7b8933137f8994f83243038fd8e336343e3422a5f25459fcc
 DIST x264-snapshot-20110825-2245-stable.tar.bz2 516879 RMD160 4f1e00ddd170c75c6d3e140085358ff95c8e861f SHA1 0e8fff6252397d453b0f38cc0fdaf9699558194d SHA256 ab0ed4046a36093f00dfa572d7234c59cec5f6cb674d8bb0fe4e6bdd7604efa0
+DIST x264-snapshot-20111017-2245.tar.bz2 525683 RMD160 c8758e99017bdb7c70991e0ba35c4c79e3b34232 SHA1 8a007bbe5720f74ecbcf9f4fb71ad8cc6bd974d4 SHA256 b1b9450835ffece5079c9167d92c20486b97bb14fc33b34b1faf7443728d4c2e
 EBUILD x264-encoder-0.0.20110426.ebuild 1601 RMD160 662ea7c2892182b8f34c9dea40a4b2311716e145 SHA1 7c02087be895a085e1735feb9429fe19b0984346 SHA256 02761fcfe6dc5ba24bd994c5d9a74c95bb5e41633f52096f8b7d05374069ed70
 EBUILD x264-encoder-0.0.20110825-r1.ebuild 2480 RMD160 8e7bf4f9877f2c6bb77fb307d3e9d9031a7637bf SHA1 92fa203a559060e0274e3fafd2613c46840ceb25 SHA256 cdd24a42c93ba69ab28031511f5f50f5722816244c90118b81672fda22ccdc55
+EBUILD x264-encoder-0.0.20111017.ebuild 2469 RMD160 b060bb2fd3222d8e9fa90afb83968b3dd54dae29 SHA1 068d06c7ce39be7946de686c37c309d7e1ca386c SHA256 744af0015a80589d12a2ea946243d1441b345248eadc5f4ea4a7ab95278dcdea
 EBUILD x264-encoder-9999.ebuild 1978 RMD160 9d8918893284f4dbc6b2472c6f214f17c740cf28 SHA1 7e55d81845b0bb522e12088840bf1630053a81a7 SHA256 b81858a1841906def5447eb36e385eec6d1ad00a6c484a9e4eb7955a09ee09db
-MISC ChangeLog 10209 RMD160 ea16e8099600eace57e15f190fd2d933abaedea3 SHA1 582eed3ab609d8fd28f67fcf6e86d3a826a1eeea SHA256 77b333db97cd320a1c4125c51ca07d804ee68c66b55149ae2df4ecd17b97d5eb
+MISC ChangeLog 10369 RMD160 632af4deb5c5146d6eb51a8e7728a00a3c6c7801 SHA1 315076018427fc6cb1d2c1d5c7f8afce77502f63 SHA256 58dc6d26e4051239bd710b42ee282932507b4bb8d762293f5401f14055f3383c
 MISC metadata.xml 518 RMD160 3440b9fcbcb5cf3ae84df312121c234cd798893d SHA1 7807975d69297fe975731d8626323abaeacb05e2 SHA256 3c234897ff680a5fe89179bd8da788695cee616a856c0e9fbc20eb6c388b01b5
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
-
-iQIcBAEBCAAGBQJOaAKPAAoJEHy/RO9cNQiD9yYQAKzG8NABMMJej0UWJ1K3IdhB
-bY1rqlLfb1z0aYAfs/QYA2WPaQ+NTcL7tf7uYhzxDI6d5LaNyoE/DWEX4h/BHJvr
-RQA9kt554lak2rcGJiW788sHSQcC0Z+fbA4glXXlZGBoNTBJMJlGTp3Aefx+F9lY
-o/0SSQaJrq/VlGkcC4gTXqIptY5ozqeW/IuR3lANDKQr/aZdB2fl58IX4g7+zbV0
-50EDuSngqzGugyhZnHhCvZ+9K3nlmLj/1gZdajacafZqNYFw6q3a86XcylB9PWoZ
-Z6UH3YSNNcLqCj1ePazflIq+3vKrZDKrGkkgLL7rf/to0tqbXZxO9Mt55LJfX2xP
-hjO+4vB9aFPJauK+1M760JGuGAuGjx2pXYrAZlutlYakGpV4T67wEXkpfWVC4gVn
-XoSv7n7eOoWFB1wL5E257kyUOxG9hSzpnnOZMbIhpdbYdI08iJRK/hFeGrhp1Jbd
-PScBAxn1eIWUyUE4l3mdawkMzO2Iv7fbzYD4fLcdOhCrS99YxMeiOLfUAlFYtbet
-0I7Yt0NShZIXrNNX93eh3787maNUyQUfpCj2/qzo8XLVp53obnq+VEb+VFR1PvP1
-7hEwAsr7+hRyZz0zde0GMgTE4OmLniAggOrClHEAtldiNLowtbDZNflcAWdj4GRt
-zDsDH/B/Im8+NJ9bTvv4
-=oDbn
------END PGP SIGNATURE-----
diff --git a/media-video/x264-encoder/x264-encoder-0.0.20111017.ebuild b/media-video/x264-encoder/x264-encoder-0.0.20111017.ebuild
new file mode 100644 (file)
index 0000000..2275150
--- /dev/null
@@ -0,0 +1,85 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20111017.ebuild,v 1.1 2011/10/19 16:40:42 lu_zero Exp $
+
+EAPI=4
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+       V_ECLASS="git-2"
+else
+       V_ECLASS="versionator"
+fi
+
+inherit flag-o-matic multilib toolchain-funcs ${V_ECLASS}
+
+if [ "${PV#9999}" = "${PV}" ] ; then
+       MY_P="x264-snapshot-$(get_version_component_range 3)-2245"
+fi
+DESCRIPTION="A free commandline encoder for X264/AVC streams"
+HOMEPAGE="http://www.videolan.org/developers/x264.html"
+if [ "${PV#9999}" != "${PV}" ] ; then
+       EGIT_REPO_URI="git://git.videolan.org/x264.git"
+       SRC_URI=""
+else
+       SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+if [ "${PV#9999}" != "${PV}" ] ; then
+       KEYWORDS=""
+else
+       KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+fi
+IUSE="10bit custom-cflags debug ffmpeg ffmpegsource +interlaced mp4 +threads"
+
+REQUIRED_USE="ffmpegsource? ( ffmpeg )"
+
+RDEPEND="ffmpeg? ( virtual/ffmpeg )
+       ffmpegsource? ( media-libs/ffmpegsource )
+       mp4? ( >=media-video/gpac-0.4.1_pre20060122 )"
+
+DEPEND="${RDEPEND}
+       amd64? ( >=dev-lang/yasm-0.6.2 )
+       x86? ( >=dev-lang/yasm-0.6.2 )
+       x86-fbsd? ( >=dev-lang/yasm-0.6.2 )
+       dev-util/pkgconfig"
+
+if [ "${PV#9999}" = "${PV}" ] ; then
+       S=${WORKDIR}/${MY_P}
+fi
+
+src_configure() {
+       tc-export CC
+
+       local myconf=""
+       use 10bit && myconf+=" --bit-depth=10"
+       use debug && myconf+=" --enable-debug"
+       use ffmpeg || myconf+=" --disable-lavf --disable-swscale"
+       use ffmpegsource || myconf+=" --disable-ffms"
+       use interlaced || myconf+=" --disable-interlaced"
+       use mp4 || myconf+=" --disable-gpac"
+       use threads || myconf+=" --disable-thread"
+
+       # let upstream pick the optimization level by default
+       use custom-cflags || filter-flags -O?
+
+       ./configure \
+               --prefix="${EPREFIX}"/usr \
+               --libdir="${EPREFIX}"/usr/$(get_libdir) \
+               --disable-avs \
+               --system-libx264 \
+               --host="${CHOST}" \
+               ${myconf} || die
+
+       # this is a nasty workaround for bug #376925 for x264 that also applies
+       # here, needed because as upstream doesn't like us fiddling with their CFLAGS
+       if use custom-cflags; then
+               local cflags
+               cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')"
+               cflags="${cflags//$(get-flag O)/}"
+               cflags="${cflags//-O? /$(get-flag O) }"
+               cflags="${cflags//-g /}"
+               sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak
+       fi
+}